mirror of
https://github.com/copyrighttxt/watrbx-game-engine.git
synced 2026-09-04 20:57:49 +00:00
19913 lines
669 KiB
Plaintext
19913 lines
669 KiB
Plaintext
<roblox xmlns:xmime="http://www.w3.org/2005/05/xmlmime" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://www.watrbx.wtf/roblox.xsd" version="4">
|
|
<External>null</External>
|
|
<External>nil</External>
|
|
<Item class="Workspace" referent="RBX0">
|
|
<Properties>
|
|
<Ref name="CurrentCamera">RBX1</Ref>
|
|
<double name="DistributedGameTime">0</double>
|
|
<CoordinateFrame name="ModelInPrimary">
|
|
<X>0</X>
|
|
<Y>0</Y>
|
|
<Z>0</Z>
|
|
<R00>1</R00>
|
|
<R01>0</R01>
|
|
<R02>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">null</Ref>
|
|
</Properties>
|
|
<Item class="IntValue" referent="RBX2">
|
|
<Properties>
|
|
<string name="Name">Result</string>
|
|
<int name="Value">0</int>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="Camera" referent="RBX1">
|
|
<Properties>
|
|
<Ref name="CameraSubject">null</Ref>
|
|
<token name="CameraType">0</token>
|
|
<CoordinateFrame name="CoordinateFrame">
|
|
<X>-17.4564018</X>
|
|
<Y>45.2832985</Y>
|
|
<Z>26.9888191</Z>
|
|
<R00>0.864403844</R00>
|
|
<R01>0.262855351</R01>
|
|
<R02>-0.428617477</R02>
|
|
<R10>-0</R10>
|
|
<R11>0.852464437</R11>
|
|
<R12>0.522785187</R12>
|
|
<R20>0.502798021</R20>
|
|
<R21>-0.451897532</R21>
|
|
<R22>0.736873627</R22>
|
|
</CoordinateFrame>
|
|
<float name="FieldOfView">70</float>
|
|
<CoordinateFrame name="Focus">
|
|
<X>-8.88405228</X>
|
|
<Y>34.8275948</Y>
|
|
<Z>12.2513466</Z>
|
|
<R00>1</R00>
|
|
<R01>0</R01>
|
|
<R02>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>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="IntValue" referent="RBX3">
|
|
<Properties>
|
|
<string name="Name">StopTime</string>
|
|
<int name="Value">5</int>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="Script" referent="RBX4">
|
|
<Properties>
|
|
<bool name="Disabled">false</bool>
|
|
<Content name="LinkedSource"><null></null></Content>
|
|
<string name="Name">TestScript</string>
|
|
<ProtectedString name="Source">-- Add this script
|
|
-- Add an IntValue called Results (leave value at 0)
|
|
-- Add an IntValue called StopTime (set to desired wall clock simulation time)
|
|
-- make sure the part being measured is called CheckPart and is a direct child of the Workspace
|
|
|
|
|
|
print("Testing success conditions after model runs for ", Workspace.StopTime.Value - 1, " seconds of real time...")
|
|
print("(Note: one second shorter than the test harness allows)")
|
|
|
|
maxVelocityMagGoal = 0.001
|
|
minYPositionGoal = 5.5
|
|
|
|
-- measure success conditions 1 second before the test harness stops the simulation
|
|
start = tick()
|
|
while tick()-start < Workspace.StopTime.Value - 1 do
|
|
	wait()
|
|
end
|
|
|
|
print("Max Velocity Mag = ", Workspace.Model.TestZombie.Head.Velocity.magnitude)
|
|
print("Max Velocity Mag Goal = ", maxVelocityMagGoal)
|
|
|
|
print("Min Y Position = ", Workspace.Model.TestZombie.Head.Position.y)
|
|
print("Min Y Position Goal = ", minYPositionGoal )
|
|
|
|
A = Workspace.Model.TestZombie.Head.Velocity.magnitude < maxVelocityMagGoal
|
|
B = Workspace.Model.TestZombie.Head.Position.y > minYPositionGoal
|
|
success = A and B
|
|
|
|
if success
|
|
then
|
|
	Workspace.Result.Value = 1
|
|
else
|
|
	Workspace.Result.Value = -1
|
|
end
|
|
|
|
print(Workspace.Result.Value)</ProtectedString>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="Terrain" referent="RBX5">
|
|
<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>-2</X>
|
|
<Y>126</Y>
|
|
<Z>-2</Z>
|
|
<R00>1</R00>
|
|
<R01>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>
|
|
<string name="ClusterGridV2"></string>
|
|
<float name="Elasticity">0.5</float>
|
|
<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>
|
|
<token name="Material">256</token>
|
|
<string name="Name">Terrain</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>
|
|
<Vector3 name="size">
|
|
<X>2044</X>
|
|
<Y>252</Y>
|
|
<Z>2044</Z>
|
|
</Vector3>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="WedgePart" referent="RBX6">
|
|
<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>20.5</X>
|
|
<Y>8.40000057</Y>
|
|
<Z>6.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">true</bool>
|
|
<float name="Elasticity">0.5</float>
|
|
<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>
|
|
<token name="Material">256</token>
|
|
<string name="Name">Wedge</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>
|
|
<token name="formFactorRaw">1</token>
|
|
<Vector3 name="size">
|
|
<X>57</X>
|
|
<Y>8.40000057</Y>
|
|
<Z>5</Z>
|
|
</Vector3>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="Model" referent="RBX7">
|
|
<Properties>
|
|
<CoordinateFrame name="ModelInPrimary">
|
|
<X>0</X>
|
|
<Y>0</Y>
|
|
<Z>0</Z>
|
|
<R00>1</R00>
|
|
<R01>0</R01>
|
|
<R02>0</R02>
|
|
<R10>0</R10>
|
|
<R11>1</R11>
|
|
<R12>0</R12>
|
|
<R20>0</R20>
|
|
<R21>0</R21>
|
|
<R22>1</R22>
|
|
</CoordinateFrame>
|
|
<string name="Name">Model</string>
|
|
<Ref name="PrimaryPart">null</Ref>
|
|
</Properties>
|
|
<Item class="Model" referent="RBX8">
|
|
<Properties>
|
|
<CoordinateFrame name="ModelInPrimary">
|
|
<X>0</X>
|
|
<Y>0</Y>
|
|
<Z>0</Z>
|
|
<R00>1</R00>
|
|
<R01>0</R01>
|
|
<R02>0</R02>
|
|
<R10>0</R10>
|
|
<R11>1</R11>
|
|
<R12>0</R12>
|
|
<R20>0</R20>
|
|
<R21>0</R21>
|
|
<R22>1</R22>
|
|
</CoordinateFrame>
|
|
<string name="Name">TestZombie</string>
|
|
<Ref name="PrimaryPart">null</Ref>
|
|
</Properties>
|
|
<Item class="Part" referent="RBX9">
|
|
<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>8.83551025</X>
|
|
<Y>23.9651184</Y>
|
|
<Z>-30.7298489</Z>
|
|
<R00>-0.454648674</R00>
|
|
<R01>-0.540302277</R01>
|
|
<R02>-0.708073378</R02>
|
|
<R10>0.291926563</R10>
|
|
<R11>-0.841470957</R11>
|
|
<R12>0.454648674</R12>
|
|
<R20>-0.841470957</R20>
|
|
<R21>0</R21>
|
|
<R22>0.540302277</R22>
|
|
</CoordinateFrame>
|
|
<bool name="CanCollide">true</bool>
|
|
<float name="Elasticity">0.5</float>
|
|
<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>
|
|
<token name="Material">256</token>
|
|
<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>4.07127958e-025</X>
|
|
<Y>3.33696291e-022</Y>
|
|
<Z>6.94702468e-025</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>3.64807103e-020</X>
|
|
<Y>0.00686328812</Y>
|
|
<Z>3.67023398e-020</Z>
|
|
</Vector3>
|
|
<token name="formFactorRaw">0</token>
|
|
<token name="shape">1</token>
|
|
<Vector3 name="size">
|
|
<X>2</X>
|
|
<Y>1</Y>
|
|
<Z>1</Z>
|
|
</Vector3>
|
|
</Properties>
|
|
<Item class="SpecialMesh" referent="RBX10">
|
|
<Properties>
|
|
<token name="LODX">2</token>
|
|
<token name="LODY">2</token>
|
|
<Content name="MeshId"><null></null></Content>
|
|
<token name="MeshType">0</token>
|
|
<string name="Name">Mesh</string>
|
|
<Vector3 name="Offset">
|
|
<X>0</X>
|
|
<Y>0</Y>
|
|
<Z>0</Z>
|
|
</Vector3>
|
|
<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>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="Decal" referent="RBX11">
|
|
<Properties>
|
|
<token name="Face">5</token>
|
|
<string name="Name">face</string>
|
|
<float name="Shiny">20</float>
|
|
<float name="Specular">0</float>
|
|
<Content name="Texture"><null></null></Content>
|
|
<float name="Transparency">0</float>
|
|
</Properties>
|
|
</Item>
|
|
</Item>
|
|
<Item class="Part" referent="RBX12">
|
|
<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>9.64596367</X>
|
|
<Y>25.2273254</Y>
|
|
<Z>-30.7298489</Z>
|
|
<R00>-0.454648674</R00>
|
|
<R01>-0.540302277</R01>
|
|
<R02>-0.708073378</R02>
|
|
<R10>0.291926563</R10>
|
|
<R11>-0.841470957</R11>
|
|
<R12>0.454648674</R12>
|
|
<R20>-0.841470957</R20>
|
|
<R21>0</R21>
|
|
<R22>0.540302277</R22>
|
|
</CoordinateFrame>
|
|
<bool name="CanCollide">true</bool>
|
|
<float name="Elasticity">0.5</float>
|
|
<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>
|
|
<token name="Material">256</token>
|
|
<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>4.07127958e-025</X>
|
|
<Y>3.33696291e-022</Y>
|
|
<Z>6.94702468e-025</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>3.64798347e-020</X>
|
|
<Y>0.00686328812</Y>
|
|
<Z>3.64324075e-020</Z>
|
|
</Vector3>
|
|
<token name="formFactorRaw">0</token>
|
|
<token name="shape">1</token>
|
|
<Vector3 name="size">
|
|
<X>2</X>
|
|
<Y>2</Y>
|
|
<Z>1</Z>
|
|
</Vector3>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="Part" referent="RBX13">
|
|
<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>10.9538927</X>
|
|
<Y>26.7643032</Y>
|
|
<Z>-30.3091125</Z>
|
|
<R00>-0.454648674</R00>
|
|
<R01>-0.540302277</R01>
|
|
<R02>-0.708073378</R02>
|
|
<R10>0.291926563</R10>
|
|
<R11>-0.841470957</R11>
|
|
<R12>0.454648674</R12>
|
|
<R20>-0.841470957</R20>
|
|
<R21>0</R21>
|
|
<R22>0.540302277</R22>
|
|
</CoordinateFrame>
|
|
<bool name="CanCollide">false</bool>
|
|
<float name="Elasticity">0.5</float>
|
|
<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>
|
|
<token name="Material">256</token>
|
|
<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>4.07127958e-025</X>
|
|
<Y>3.33696291e-022</Y>
|
|
<Z>6.94702468e-025</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>3.66191662e-020</X>
|
|
<Y>0.00686328812</Y>
|
|
<Z>3.59965835e-020</Z>
|
|
</Vector3>
|
|
<token name="formFactorRaw">0</token>
|
|
<token name="shape">1</token>
|
|
<Vector3 name="size">
|
|
<X>1</X>
|
|
<Y>2</Y>
|
|
<Z>1</Z>
|
|
</Vector3>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="Part" referent="RBX14">
|
|
<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>10.4992437</X>
|
|
<Y>27.0562305</Y>
|
|
<Z>-31.1505852</Z>
|
|
<R00>-0.454648674</R00>
|
|
<R01>-0.540302277</R01>
|
|
<R02>-0.708073378</R02>
|
|
<R10>0.291926563</R10>
|
|
<R11>-0.841470957</R11>
|
|
<R12>0.454648674</R12>
|
|
<R20>-0.841470957</R20>
|
|
<R21>0</R21>
|
|
<R22>0.540302277</R22>
|
|
</CoordinateFrame>
|
|
<bool name="CanCollide">false</bool>
|
|
<float name="Elasticity">0.5</float>
|
|
<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>
|
|
<token name="Material">256</token>
|
|
<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>4.07127958e-025</X>
|
|
<Y>3.33696291e-022</Y>
|
|
<Z>6.94702468e-025</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>3.63381671e-020</X>
|
|
<Y>0.00686328812</Y>
|
|
<Z>3.61484164e-020</Z>
|
|
</Vector3>
|
|
<token name="formFactorRaw">0</token>
|
|
<token name="shape">1</token>
|
|
<Vector3 name="size">
|
|
<X>1</X>
|
|
<Y>2</Y>
|
|
<Z>1</Z>
|
|
</Vector3>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="Humanoid" referent="RBX15">
|
|
<Properties>
|
|
<float name="Health">100</float>
|
|
<float name="MaxHealth">100</float>
|
|
<string name="Name">Humanoid</string>
|
|
<token name="NameOcclusion">0</token>
|
|
<float name="WalkSpeed">16</float>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="Part" referent="RBX16">
|
|
<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">29</int>
|
|
<CoordinateFrame name="CFrame">
|
|
<X>10.4118223</X>
|
|
<Y>24.1413765</Y>
|
|
<Z>-29.737793</Z>
|
|
<R00>0.708073378</R00>
|
|
<R01>-0.540302277</R01>
|
|
<R02>-0.454648674</R02>
|
|
<R10>-0.454648674</R10>
|
|
<R11>-0.841470957</R11>
|
|
<R12>0.291926563</R12>
|
|
<R20>-0.540302277</R20>
|
|
<R21>0</R21>
|
|
<R22>-0.841470957</R22>
|
|
</CoordinateFrame>
|
|
<bool name="CanCollide">true</bool>
|
|
<float name="Elasticity">0.5</float>
|
|
<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>
|
|
<token name="Material">256</token>
|
|
<string name="Name">zarm</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>4.07127958e-025</X>
|
|
<Y>3.33696291e-022</Y>
|
|
<Z>6.94702468e-025</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>3.68116343e-020</X>
|
|
<Y>0.00686328812</Y>
|
|
<Z>3.61764016e-020</Z>
|
|
</Vector3>
|
|
<token name="formFactorRaw">0</token>
|
|
<token name="shape">1</token>
|
|
<Vector3 name="size">
|
|
<X>2</X>
|
|
<Y>1</Y>
|
|
<Z>1</Z>
|
|
</Vector3>
|
|
</Properties>
|
|
<Item class="Script" referent="RBX17">
|
|
<Properties>
|
|
<bool name="Disabled">false</bool>
|
|
<Content name="LinkedSource"><null></null></Content>
|
|
<string name="Name">Script</string>
|
|
<ProtectedString name="Source">wait(1)
|
|
owner=script.Parent.Parent.Name
|
|
|
|
function onTouched(part)
|
|
	if part.Parent ~= nil then
|
|
		local h = part.Parent:findFirstChild("Humanoid")
|
|
			if h~=nil then
|
|
				if cantouch~=0 then
|
|
					if h.Parent.Name~=owner then
|
|
						
|
|
						if h.Parent:findFirstChild("zarm")~=nil then return end
|
|
|
|
						cantouch=0
|
|
|
|
						local larm=h.Parent:findFirstChild("Left Arm")
|
|
						local rarm=h.Parent:findFirstChild("Right Arm")
|
|
						
|
|
						if larm~=nil then
|
|
							larm:remove()
|
|
						end
|
|
						if rarm~=nil then
|
|
							rarm:remove()
|
|
						end
|
|
						local zee=script.Parent.Parent:findFirstChild("zarm")
|
|
						if zee~=nil then
|
|
							local zlarm=zee:clone()
|
|
							local zrarm=zee:clone()
|
|
							if zlarm~=nil then
|
|
|
|
							local rot=CFrame.new(0, 0, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
|
|
								zlarm.CFrame=h.Parent.Torso.CFrame * CFrame.new(Vector3.new(-1.5,0.5,-0.5)) * rot
|
|
								zrarm.CFrame=h.Parent.Torso.CFrame * CFrame.new(Vector3.new(1.5,0.5,-0.5)) * rot
|
|
								zlarm.Parent=h.Parent
|
|
								zrarm.Parent=h.Parent
|
|
								zlarm:makeJoints()
|
|
								zrarm:makeJoints()
|
|
								zlarm.Anchored=false
|
|
								zrarm.Anchored=false
|
|
								wait(0.1)
|
|
								h.Parent.Head.Color=zee.Color
|
|
							else print("no zee"); return end
|
|
						end
|
|
						wait(1)
|
|
						cantouch=1
|
|
					end
|
|
				end
|
|
			end
|
|
	end
|
|
end
|
|
|
|
script.Parent.Touched:connect(onTouched)</ProtectedString>
|
|
</Properties>
|
|
</Item>
|
|
</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">0</token>
|
|
<token name="BottomSurfaceInput">0</token>
|
|
<int name="BrickColor">29</int>
|
|
<CoordinateFrame name="CFrame">
|
|
<X>9.04787636</X>
|
|
<Y>25.0171547</Y>
|
|
<Z>-32.262207</Z>
|
|
<R00>0.708073378</R00>
|
|
<R01>-0.540302277</R01>
|
|
<R02>-0.454648674</R02>
|
|
<R10>-0.454648674</R10>
|
|
<R11>-0.841470957</R11>
|
|
<R12>0.291926563</R12>
|
|
<R20>-0.540302277</R20>
|
|
<R21>0</R21>
|
|
<R22>-0.841470957</R22>
|
|
</CoordinateFrame>
|
|
<bool name="CanCollide">true</bool>
|
|
<float name="Elasticity">0.5</float>
|
|
<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>
|
|
<token name="Material">256</token>
|
|
<string name="Name">zarm</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>4.07127958e-025</X>
|
|
<Y>3.33696291e-022</Y>
|
|
<Z>6.94702468e-025</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>3.59686371e-020</X>
|
|
<Y>0.00686328812</Y>
|
|
<Z>3.66319002e-020</Z>
|
|
</Vector3>
|
|
<token name="formFactorRaw">0</token>
|
|
<token name="shape">1</token>
|
|
<Vector3 name="size">
|
|
<X>2</X>
|
|
<Y>1</Y>
|
|
<Z>1</Z>
|
|
</Vector3>
|
|
</Properties>
|
|
<Item class="Script" referent="RBX19">
|
|
<Properties>
|
|
<bool name="Disabled">false</bool>
|
|
<Content name="LinkedSource"><null></null></Content>
|
|
<string name="Name">Script</string>
|
|
<ProtectedString name="Source">wait(1)
|
|
owner=script.Parent.Parent.Name
|
|
|
|
function onTouched(part)
|
|
	if part.Parent ~= nil then
|
|
		local h = part.Parent:findFirstChild("Humanoid")
|
|
			if h~=nil then
|
|
				if cantouch~=0 then
|
|
					if h.Parent.Name~=owner then
|
|
						
|
|
						if h.Parent:findFirstChild("zarm")~=nil then return end
|
|
|
|
						cantouch=0
|
|
|
|
						local larm=h.Parent:findFirstChild("Left Arm")
|
|
						local rarm=h.Parent:findFirstChild("Right Arm")
|
|
						
|
|
						if larm~=nil then
|
|
							larm:remove()
|
|
						end
|
|
						if rarm~=nil then
|
|
							rarm:remove()
|
|
						end
|
|
						local zee=script.Parent.Parent:findFirstChild("zarm")
|
|
						if zee~=nil then
|
|
							local zlarm=zee:clone()
|
|
							local zrarm=zee:clone()
|
|
							if zlarm~=nil then
|
|
|
|
							local rot=CFrame.new(0, 0, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
|
|
								zlarm.CFrame=h.Parent.Torso.CFrame * CFrame.new(Vector3.new(-1.5,0.5,-0.5)) * rot
|
|
								zrarm.CFrame=h.Parent.Torso.CFrame * CFrame.new(Vector3.new(1.5,0.5,-0.5)) * rot
|
|
								zlarm.Parent=h.Parent
|
|
								zrarm.Parent=h.Parent
|
|
								zlarm:makeJoints()
|
|
								zrarm:makeJoints()
|
|
								zlarm.Anchored=false
|
|
								zrarm.Anchored=false
|
|
								wait(0.1)
|
|
								h.Parent.Head.Color=zee.Color
|
|
							else print("no zee"); return end
|
|
						end
|
|
						wait(1)
|
|
						cantouch=1
|
|
					end
|
|
				end
|
|
			end
|
|
	end
|
|
end
|
|
|
|
script.Parent.Touched:connect(onTouched)</ProtectedString>
|
|
</Properties>
|
|
</Item>
|
|
</Item>
|
|
<Item class="ObjectValue" referent="RBX20">
|
|
<Properties>
|
|
<string name="Name">IsNZ</string>
|
|
<Ref name="Value">null</Ref>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="IntValue" referent="RBX21">
|
|
<Properties>
|
|
<string name="Name">Mode</string>
|
|
<int name="Value">0</int>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="Script" referent="RBX22">
|
|
<Properties>
|
|
<bool name="Disabled">false</bool>
|
|
<Content name="LinkedSource"><null></null></Content>
|
|
<string name="Name">Script</string>
|
|
<ProtectedString name="Source">local larm = script.Parent:FindFirstChild("Left Arm")
|
|
local rarm = script.Parent:FindFirstChild("Right Arm")
|
|
|
|
function findNearestTorso(pos)
|
|
	local list = game.Workspace:children()
|
|
	local torso = nil
|
|
	local dist = 1000
|
|
	local temp = nil
|
|
	local human = nil
|
|
	local temp2 = nil
|
|
	for x = 1, #list do
|
|
		temp2 = list[x]
|
|
		if (temp2.className == "Model") and (temp2 ~= script.Parent) then
|
|
			temp = temp2:findFirstChild("Right Arm")
|
|
			human = temp2:findFirstChild("Humanoid")
|
|
			if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then
|
|
				if (temp.Position - pos).magnitude < dist then
|
|
					torso = temp
|
|
					dist = (temp.Position - pos).magnitude
|
|
				end
|
|
			end
|
|
		end
|
|
	end
|
|
	return torso
|
|
end
|
|
|
|
|
|
|
|
|
|
while true do
|
|
	wait(math.random(1,5))
|
|
	local target = findNearestTorso(script.Parent.Torso.Position)
|
|
	if target ~= nil then
|
|
		script.Parent.Humanoid:MoveTo(target.Position, target)
|
|
	end
|
|
|
|
end
|
|
</ProtectedString>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="Script" referent="RBX23">
|
|
<Properties>
|
|
<bool name="Disabled">false</bool>
|
|
<Content name="LinkedSource"><null></null></Content>
|
|
<string name="Name">Health</string>
|
|
<ProtectedString name="Source">function waitForChild(parent, childName)
|
|
	while true do
|
|
		local child = parent:findFirstChild(childName)
|
|
		if child then
|
|
			return child
|
|
		end
|
|
		parent.ChildAdded:wait()
|
|
	end
|
|
end
|
|
|
|
-- declarations
|
|
|
|
local Figure = script.Parent
|
|
local Head = waitForChild(Figure, "Head")
|
|
local Humanoid = waitForChild(Figure, "Humanoid")
|
|
Humanoid.Health=500
|
|
-- regeneration
|
|
while true do
|
|
	local s = wait(4)
|
|
	local health = Humanoid.Health
|
|
	if health > 0 and health < Humanoid.MaxHealth then
|
|
		health = health + 0.08 * s * Humanoid.MaxHealth
|
|
		if health * 1.05 < Humanoid.MaxHealth then
|
|
			Humanoid.Health = health
|
|
		else
|
|
			Humanoid.Health = Humanoid.MaxHealth
|
|
		end
|
|
	end
|
|
end
|
|
</ProtectedString>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="Script" referent="RBX24">
|
|
<Properties>
|
|
<bool name="Disabled">false</bool>
|
|
<Content name="LinkedSource"><null></null></Content>
|
|
<string name="Name">Respawn</string>
|
|
<ProtectedString name="Source">name="Humanoid"
|
|
|
|
robo=script.Parent:clone()
|
|
|
|
while true do
|
|
	wait(1)
|
|
	if script.Parent.Humanoid.Health<1 then
|
|
		robot=robo:clone()
|
|
		robot.Parent=script.Parent.Parent
|
|
		robot:makeJoints()
|
|
		script.Parent:remove()
|
|
	end
|
|
end
|
|
		
|
|
|
|
|
|
</ProtectedString>
|
|
</Properties>
|
|
</Item>
|
|
</Item>
|
|
<Item class="Model" referent="RBX25">
|
|
<Properties>
|
|
<CoordinateFrame name="ModelInPrimary">
|
|
<X>0</X>
|
|
<Y>0</Y>
|
|
<Z>0</Z>
|
|
<R00>1</R00>
|
|
<R01>0</R01>
|
|
<R02>0</R02>
|
|
<R10>0</R10>
|
|
<R11>1</R11>
|
|
<R12>0</R12>
|
|
<R20>0</R20>
|
|
<R21>0</R21>
|
|
<R22>1</R22>
|
|
</CoordinateFrame>
|
|
<string name="Name">Zombie</string>
|
|
<Ref name="PrimaryPart">null</Ref>
|
|
</Properties>
|
|
<Item class="Part" referent="RBX26">
|
|
<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">29</int>
|
|
<CoordinateFrame name="CFrame">
|
|
<X>8.83551025</X>
|
|
<Y>15.1651163</Y>
|
|
<Z>-30.7298489</Z>
|
|
<R00>-0.454648674</R00>
|
|
<R01>-0.540302277</R01>
|
|
<R02>-0.708073378</R02>
|
|
<R10>0.291926563</R10>
|
|
<R11>-0.841470957</R11>
|
|
<R12>0.454648674</R12>
|
|
<R20>-0.841470957</R20>
|
|
<R21>0</R21>
|
|
<R22>0.540302277</R22>
|
|
</CoordinateFrame>
|
|
<bool name="CanCollide">true</bool>
|
|
<float name="Elasticity">0.5</float>
|
|
<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>
|
|
<token name="Material">256</token>
|
|
<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>4.07127958e-025</X>
|
|
<Y>3.33696291e-022</Y>
|
|
<Z>6.94702468e-025</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>3.64807103e-020</X>
|
|
<Y>0.00686328812</Y>
|
|
<Z>3.67023398e-020</Z>
|
|
</Vector3>
|
|
<token name="formFactorRaw">0</token>
|
|
<token name="shape">1</token>
|
|
<Vector3 name="size">
|
|
<X>2</X>
|
|
<Y>1</Y>
|
|
<Z>1</Z>
|
|
</Vector3>
|
|
</Properties>
|
|
<Item class="SpecialMesh" referent="RBX27">
|
|
<Properties>
|
|
<token name="LODX">2</token>
|
|
<token name="LODY">2</token>
|
|
<Content name="MeshId"><null></null></Content>
|
|
<token name="MeshType">0</token>
|
|
<string name="Name">Mesh</string>
|
|
<Vector3 name="Offset">
|
|
<X>0</X>
|
|
<Y>0</Y>
|
|
<Z>0</Z>
|
|
</Vector3>
|
|
<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>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="Decal" referent="RBX28">
|
|
<Properties>
|
|
<token name="Face">5</token>
|
|
<string name="Name">face</string>
|
|
<float name="Shiny">20</float>
|
|
<float name="Specular">0</float>
|
|
<Content name="Texture"><null></null></Content>
|
|
<float name="Transparency">0</float>
|
|
</Properties>
|
|
</Item>
|
|
</Item>
|
|
<Item class="Part" referent="RBX29">
|
|
<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>9.64596367</X>
|
|
<Y>16.4273224</Y>
|
|
<Z>-30.7298489</Z>
|
|
<R00>-0.454648674</R00>
|
|
<R01>-0.540302277</R01>
|
|
<R02>-0.708073378</R02>
|
|
<R10>0.291926563</R10>
|
|
<R11>-0.841470957</R11>
|
|
<R12>0.454648674</R12>
|
|
<R20>-0.841470957</R20>
|
|
<R21>0</R21>
|
|
<R22>0.540302277</R22>
|
|
</CoordinateFrame>
|
|
<bool name="CanCollide">true</bool>
|
|
<float name="Elasticity">0.5</float>
|
|
<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>
|
|
<token name="Material">256</token>
|
|
<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>4.07127958e-025</X>
|
|
<Y>3.33696291e-022</Y>
|
|
<Z>6.94702468e-025</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>3.64798347e-020</X>
|
|
<Y>0.00686328812</Y>
|
|
<Z>3.64324075e-020</Z>
|
|
</Vector3>
|
|
<token name="formFactorRaw">0</token>
|
|
<token name="shape">1</token>
|
|
<Vector3 name="size">
|
|
<X>2</X>
|
|
<Y>2</Y>
|
|
<Z>1</Z>
|
|
</Vector3>
|
|
</Properties>
|
|
</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">0</token>
|
|
<token name="BottomSurfaceInput">0</token>
|
|
<int name="BrickColor">192</int>
|
|
<CoordinateFrame name="CFrame">
|
|
<X>10.9538927</X>
|
|
<Y>17.9643002</Y>
|
|
<Z>-30.3091125</Z>
|
|
<R00>-0.454648674</R00>
|
|
<R01>-0.540302277</R01>
|
|
<R02>-0.708073378</R02>
|
|
<R10>0.291926563</R10>
|
|
<R11>-0.841470957</R11>
|
|
<R12>0.454648674</R12>
|
|
<R20>-0.841470957</R20>
|
|
<R21>0</R21>
|
|
<R22>0.540302277</R22>
|
|
</CoordinateFrame>
|
|
<bool name="CanCollide">false</bool>
|
|
<float name="Elasticity">0.5</float>
|
|
<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>
|
|
<token name="Material">256</token>
|
|
<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>4.07127958e-025</X>
|
|
<Y>3.33696291e-022</Y>
|
|
<Z>6.94702468e-025</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>3.66191662e-020</X>
|
|
<Y>0.00686328812</Y>
|
|
<Z>3.59965835e-020</Z>
|
|
</Vector3>
|
|
<token name="formFactorRaw">0</token>
|
|
<token name="shape">1</token>
|
|
<Vector3 name="size">
|
|
<X>1</X>
|
|
<Y>2</Y>
|
|
<Z>1</Z>
|
|
</Vector3>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="Part" referent="RBX31">
|
|
<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>10.4992437</X>
|
|
<Y>18.2562275</Y>
|
|
<Z>-31.1505852</Z>
|
|
<R00>-0.454648674</R00>
|
|
<R01>-0.540302277</R01>
|
|
<R02>-0.708073378</R02>
|
|
<R10>0.291926563</R10>
|
|
<R11>-0.841470957</R11>
|
|
<R12>0.454648674</R12>
|
|
<R20>-0.841470957</R20>
|
|
<R21>0</R21>
|
|
<R22>0.540302277</R22>
|
|
</CoordinateFrame>
|
|
<bool name="CanCollide">false</bool>
|
|
<float name="Elasticity">0.5</float>
|
|
<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>
|
|
<token name="Material">256</token>
|
|
<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>4.07127958e-025</X>
|
|
<Y>3.33696291e-022</Y>
|
|
<Z>6.94702468e-025</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>3.63381671e-020</X>
|
|
<Y>0.00686328812</Y>
|
|
<Z>3.61484164e-020</Z>
|
|
</Vector3>
|
|
<token name="formFactorRaw">0</token>
|
|
<token name="shape">1</token>
|
|
<Vector3 name="size">
|
|
<X>1</X>
|
|
<Y>2</Y>
|
|
<Z>1</Z>
|
|
</Vector3>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="Humanoid" referent="RBX32">
|
|
<Properties>
|
|
<float name="Health">100</float>
|
|
<float name="MaxHealth">100</float>
|
|
<string name="Name">Humanoid</string>
|
|
<token name="NameOcclusion">0</token>
|
|
<float name="WalkSpeed">16</float>
|
|
</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">0</token>
|
|
<token name="BottomSurfaceInput">0</token>
|
|
<int name="BrickColor">29</int>
|
|
<CoordinateFrame name="CFrame">
|
|
<X>10.4118223</X>
|
|
<Y>15.3413725</Y>
|
|
<Z>-29.737793</Z>
|
|
<R00>0.708073378</R00>
|
|
<R01>-0.540302277</R01>
|
|
<R02>-0.454648674</R02>
|
|
<R10>-0.454648674</R10>
|
|
<R11>-0.841470957</R11>
|
|
<R12>0.291926563</R12>
|
|
<R20>-0.540302277</R20>
|
|
<R21>0</R21>
|
|
<R22>-0.841470957</R22>
|
|
</CoordinateFrame>
|
|
<bool name="CanCollide">true</bool>
|
|
<float name="Elasticity">0.5</float>
|
|
<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>
|
|
<token name="Material">256</token>
|
|
<string name="Name">zarm</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>4.07127958e-025</X>
|
|
<Y>3.33696291e-022</Y>
|
|
<Z>6.94702468e-025</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>3.68116343e-020</X>
|
|
<Y>0.00686328812</Y>
|
|
<Z>3.61764016e-020</Z>
|
|
</Vector3>
|
|
<token name="formFactorRaw">0</token>
|
|
<token name="shape">1</token>
|
|
<Vector3 name="size">
|
|
<X>2</X>
|
|
<Y>1</Y>
|
|
<Z>1</Z>
|
|
</Vector3>
|
|
</Properties>
|
|
<Item class="Script" referent="RBX34">
|
|
<Properties>
|
|
<bool name="Disabled">false</bool>
|
|
<Content name="LinkedSource"><null></null></Content>
|
|
<string name="Name">Script</string>
|
|
<ProtectedString name="Source">wait(1)
|
|
owner=script.Parent.Parent.Name
|
|
|
|
function onTouched(part)
|
|
	if part.Parent ~= nil then
|
|
		local h = part.Parent:findFirstChild("Humanoid")
|
|
			if h~=nil then
|
|
				if cantouch~=0 then
|
|
					if h.Parent.Name~=owner then
|
|
						
|
|
						if h.Parent:findFirstChild("zarm")~=nil then return end
|
|
|
|
						cantouch=0
|
|
|
|
						local larm=h.Parent:findFirstChild("Left Arm")
|
|
						local rarm=h.Parent:findFirstChild("Right Arm")
|
|
						
|
|
						if larm~=nil then
|
|
							larm:remove()
|
|
						end
|
|
						if rarm~=nil then
|
|
							rarm:remove()
|
|
						end
|
|
						local zee=script.Parent.Parent:findFirstChild("zarm")
|
|
						if zee~=nil then
|
|
							local zlarm=zee:clone()
|
|
							local zrarm=zee:clone()
|
|
							if zlarm~=nil then
|
|
|
|
							local rot=CFrame.new(0, 0, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
|
|
								zlarm.CFrame=h.Parent.Torso.CFrame * CFrame.new(Vector3.new(-1.5,0.5,-0.5)) * rot
|
|
								zrarm.CFrame=h.Parent.Torso.CFrame * CFrame.new(Vector3.new(1.5,0.5,-0.5)) * rot
|
|
								zlarm.Parent=h.Parent
|
|
								zrarm.Parent=h.Parent
|
|
								zlarm:makeJoints()
|
|
								zrarm:makeJoints()
|
|
								zlarm.Anchored=false
|
|
								zrarm.Anchored=false
|
|
								wait(0.1)
|
|
								h.Parent.Head.Color=zee.Color
|
|
							else print("no zee"); return end
|
|
						end
|
|
						wait(1)
|
|
						cantouch=1
|
|
					end
|
|
				end
|
|
			end
|
|
	end
|
|
end
|
|
|
|
script.Parent.Touched:connect(onTouched)</ProtectedString>
|
|
</Properties>
|
|
</Item>
|
|
</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">29</int>
|
|
<CoordinateFrame name="CFrame">
|
|
<X>9.04787636</X>
|
|
<Y>16.2171516</Y>
|
|
<Z>-32.262207</Z>
|
|
<R00>0.708073378</R00>
|
|
<R01>-0.540302277</R01>
|
|
<R02>-0.454648674</R02>
|
|
<R10>-0.454648674</R10>
|
|
<R11>-0.841470957</R11>
|
|
<R12>0.291926563</R12>
|
|
<R20>-0.540302277</R20>
|
|
<R21>0</R21>
|
|
<R22>-0.841470957</R22>
|
|
</CoordinateFrame>
|
|
<bool name="CanCollide">true</bool>
|
|
<float name="Elasticity">0.5</float>
|
|
<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>
|
|
<token name="Material">256</token>
|
|
<string name="Name">zarm</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>4.07127958e-025</X>
|
|
<Y>3.33696291e-022</Y>
|
|
<Z>6.94702468e-025</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>3.59686371e-020</X>
|
|
<Y>0.00686328812</Y>
|
|
<Z>3.66319002e-020</Z>
|
|
</Vector3>
|
|
<token name="formFactorRaw">0</token>
|
|
<token name="shape">1</token>
|
|
<Vector3 name="size">
|
|
<X>2</X>
|
|
<Y>1</Y>
|
|
<Z>1</Z>
|
|
</Vector3>
|
|
</Properties>
|
|
<Item class="Script" referent="RBX36">
|
|
<Properties>
|
|
<bool name="Disabled">false</bool>
|
|
<Content name="LinkedSource"><null></null></Content>
|
|
<string name="Name">Script</string>
|
|
<ProtectedString name="Source">wait(1)
|
|
owner=script.Parent.Parent.Name
|
|
|
|
function onTouched(part)
|
|
	if part.Parent ~= nil then
|
|
		local h = part.Parent:findFirstChild("Humanoid")
|
|
			if h~=nil then
|
|
				if cantouch~=0 then
|
|
					if h.Parent.Name~=owner then
|
|
						
|
|
						if h.Parent:findFirstChild("zarm")~=nil then return end
|
|
|
|
						cantouch=0
|
|
|
|
						local larm=h.Parent:findFirstChild("Left Arm")
|
|
						local rarm=h.Parent:findFirstChild("Right Arm")
|
|
						
|
|
						if larm~=nil then
|
|
							larm:remove()
|
|
						end
|
|
						if rarm~=nil then
|
|
							rarm:remove()
|
|
						end
|
|
						local zee=script.Parent.Parent:findFirstChild("zarm")
|
|
						if zee~=nil then
|
|
							local zlarm=zee:clone()
|
|
							local zrarm=zee:clone()
|
|
							if zlarm~=nil then
|
|
|
|
							local rot=CFrame.new(0, 0, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
|
|
								zlarm.CFrame=h.Parent.Torso.CFrame * CFrame.new(Vector3.new(-1.5,0.5,-0.5)) * rot
|
|
								zrarm.CFrame=h.Parent.Torso.CFrame * CFrame.new(Vector3.new(1.5,0.5,-0.5)) * rot
|
|
								zlarm.Parent=h.Parent
|
|
								zrarm.Parent=h.Parent
|
|
								zlarm:makeJoints()
|
|
								zrarm:makeJoints()
|
|
								zlarm.Anchored=false
|
|
								zrarm.Anchored=false
|
|
								wait(0.1)
|
|
								h.Parent.Head.Color=zee.Color
|
|
							else print("no zee"); return end
|
|
						end
|
|
						wait(1)
|
|
						cantouch=1
|
|
					end
|
|
				end
|
|
			end
|
|
	end
|
|
end
|
|
|
|
script.Parent.Touched:connect(onTouched)</ProtectedString>
|
|
</Properties>
|
|
</Item>
|
|
</Item>
|
|
<Item class="ObjectValue" referent="RBX37">
|
|
<Properties>
|
|
<string name="Name">IsNZ</string>
|
|
<Ref name="Value">null</Ref>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="IntValue" referent="RBX38">
|
|
<Properties>
|
|
<string name="Name">Mode</string>
|
|
<int name="Value">0</int>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="Script" referent="RBX39">
|
|
<Properties>
|
|
<bool name="Disabled">false</bool>
|
|
<Content name="LinkedSource"><null></null></Content>
|
|
<string name="Name">Script</string>
|
|
<ProtectedString name="Source">local larm = script.Parent:FindFirstChild("Left Arm")
|
|
local rarm = script.Parent:FindFirstChild("Right Arm")
|
|
|
|
function findNearestTorso(pos)
|
|
	local list = game.Workspace:children()
|
|
	local torso = nil
|
|
	local dist = 1000
|
|
	local temp = nil
|
|
	local human = nil
|
|
	local temp2 = nil
|
|
	for x = 1, #list do
|
|
		temp2 = list[x]
|
|
		if (temp2.className == "Model") and (temp2 ~= script.Parent) then
|
|
			temp = temp2:findFirstChild("Right Arm")
|
|
			human = temp2:findFirstChild("Humanoid")
|
|
			if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then
|
|
				if (temp.Position - pos).magnitude < dist then
|
|
					torso = temp
|
|
					dist = (temp.Position - pos).magnitude
|
|
				end
|
|
			end
|
|
		end
|
|
	end
|
|
	return torso
|
|
end
|
|
|
|
|
|
|
|
|
|
while true do
|
|
	wait(math.random(1,5))
|
|
	local target = findNearestTorso(script.Parent.Torso.Position)
|
|
	if target ~= nil then
|
|
		script.Parent.Humanoid:MoveTo(target.Position, target)
|
|
	end
|
|
|
|
end
|
|
</ProtectedString>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="Script" referent="RBX40">
|
|
<Properties>
|
|
<bool name="Disabled">false</bool>
|
|
<Content name="LinkedSource"><null></null></Content>
|
|
<string name="Name">Health</string>
|
|
<ProtectedString name="Source">function waitForChild(parent, childName)
|
|
	while true do
|
|
		local child = parent:findFirstChild(childName)
|
|
		if child then
|
|
			return child
|
|
		end
|
|
		parent.ChildAdded:wait()
|
|
	end
|
|
end
|
|
|
|
-- declarations
|
|
|
|
local Figure = script.Parent
|
|
local Head = waitForChild(Figure, "Head")
|
|
local Humanoid = waitForChild(Figure, "Humanoid")
|
|
Humanoid.Health=500
|
|
-- regeneration
|
|
while true do
|
|
	local s = wait(4)
|
|
	local health = Humanoid.Health
|
|
	if health > 0 and health < Humanoid.MaxHealth then
|
|
		health = health + 0.08 * s * Humanoid.MaxHealth
|
|
		if health * 1.05 < Humanoid.MaxHealth then
|
|
			Humanoid.Health = health
|
|
		else
|
|
			Humanoid.Health = Humanoid.MaxHealth
|
|
		end
|
|
	end
|
|
end
|
|
</ProtectedString>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="Script" referent="RBX41">
|
|
<Properties>
|
|
<bool name="Disabled">false</bool>
|
|
<Content name="LinkedSource"><null></null></Content>
|
|
<string name="Name">Respawn</string>
|
|
<ProtectedString name="Source">name="Humanoid"
|
|
|
|
robo=script.Parent:clone()
|
|
|
|
while true do
|
|
	wait(1)
|
|
	if script.Parent.Humanoid.Health<1 then
|
|
		robot=robo:clone()
|
|
		robot.Parent=script.Parent.Parent
|
|
		robot:makeJoints()
|
|
		script.Parent:remove()
|
|
	end
|
|
end
|
|
		
|
|
|
|
|
|
</ProtectedString>
|
|
</Properties>
|
|
</Item>
|
|
</Item>
|
|
<Item class="Model" referent="RBX42">
|
|
<Properties>
|
|
<CoordinateFrame name="ModelInPrimary">
|
|
<X>0</X>
|
|
<Y>0</Y>
|
|
<Z>0</Z>
|
|
<R00>1</R00>
|
|
<R01>0</R01>
|
|
<R02>0</R02>
|
|
<R10>0</R10>
|
|
<R11>1</R11>
|
|
<R12>0</R12>
|
|
<R20>0</R20>
|
|
<R21>0</R21>
|
|
<R22>1</R22>
|
|
</CoordinateFrame>
|
|
<string name="Name">Zombie</string>
|
|
<Ref name="PrimaryPart">null</Ref>
|
|
</Properties>
|
|
<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">29</int>
|
|
<CoordinateFrame name="CFrame">
|
|
<X>29.5004578</X>
|
|
<Y>22.2975159</Y>
|
|
<Z>-31.7155228</Z>
|
|
<R00>1.49011612e-008</R00>
|
|
<R01>0</R01>
|
|
<R02>-0.999999881</R02>
|
|
<R10>1.49011612e-008</R10>
|
|
<R11>-0.99999994</R11>
|
|
<R12>0</R12>
|
|
<R20>-0.99999994</R20>
|
|
<R21>1.49011612e-008</R21>
|
|
<R22>1.49011612e-008</R22>
|
|
</CoordinateFrame>
|
|
<bool name="CanCollide">true</bool>
|
|
<float name="Elasticity">0.5</float>
|
|
<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>
|
|
<token name="Material">256</token>
|
|
<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>4.07127958e-025</X>
|
|
<Y>3.33696291e-022</Y>
|
|
<Z>6.94702468e-025</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>3.64808751e-020</X>
|
|
<Y>0.00686328812</Y>
|
|
<Z>3.64317968e-020</Z>
|
|
</Vector3>
|
|
<token name="formFactorRaw">0</token>
|
|
<token name="shape">1</token>
|
|
<Vector3 name="size">
|
|
<X>2</X>
|
|
<Y>1</Y>
|
|
<Z>1</Z>
|
|
</Vector3>
|
|
</Properties>
|
|
<Item class="SpecialMesh" referent="RBX44">
|
|
<Properties>
|
|
<token name="LODX">2</token>
|
|
<token name="LODY">2</token>
|
|
<Content name="MeshId"><null></null></Content>
|
|
<token name="MeshType">0</token>
|
|
<string name="Name">Mesh</string>
|
|
<Vector3 name="Offset">
|
|
<X>0</X>
|
|
<Y>0</Y>
|
|
<Z>0</Z>
|
|
</Vector3>
|
|
<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>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="Decal" referent="RBX45">
|
|
<Properties>
|
|
<token name="Face">5</token>
|
|
<string name="Name">face</string>
|
|
<float name="Shiny">20</float>
|
|
<float name="Specular">0</float>
|
|
<Content name="Texture"><null></null></Content>
|
|
<float name="Transparency">0</float>
|
|
</Properties>
|
|
</Item>
|
|
</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">192</int>
|
|
<CoordinateFrame name="CFrame">
|
|
<X>29.5004578</X>
|
|
<Y>23.7975159</Y>
|
|
<Z>-31.7155228</Z>
|
|
<R00>1.49011612e-008</R00>
|
|
<R01>0</R01>
|
|
<R02>-0.999999881</R02>
|
|
<R10>1.49011612e-008</R10>
|
|
<R11>-0.99999994</R11>
|
|
<R12>0</R12>
|
|
<R20>-0.99999994</R20>
|
|
<R21>1.49011612e-008</R21>
|
|
<R22>1.49011612e-008</R22>
|
|
</CoordinateFrame>
|
|
<bool name="CanCollide">true</bool>
|
|
<float name="Elasticity">0.5</float>
|
|
<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>
|
|
<token name="Material">256</token>
|
|
<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>4.07127958e-025</X>
|
|
<Y>3.33696291e-022</Y>
|
|
<Z>6.94702468e-025</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>3.64798347e-020</X>
|
|
<Y>0.00686328812</Y>
|
|
<Z>3.64324075e-020</Z>
|
|
</Vector3>
|
|
<token name="formFactorRaw">0</token>
|
|
<token name="shape">1</token>
|
|
<Vector3 name="size">
|
|
<X>2</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>29.5004578</X>
|
|
<Y>25.7975159</Y>
|
|
<Z>-31.2155228</Z>
|
|
<R00>1.49011612e-008</R00>
|
|
<R01>0</R01>
|
|
<R02>-0.999999881</R02>
|
|
<R10>1.49011612e-008</R10>
|
|
<R11>-0.99999994</R11>
|
|
<R12>0</R12>
|
|
<R20>-0.99999994</R20>
|
|
<R21>1.49011612e-008</R21>
|
|
<R22>1.49011612e-008</R22>
|
|
</CoordinateFrame>
|
|
<bool name="CanCollide">false</bool>
|
|
<float name="Elasticity">0.5</float>
|
|
<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>
|
|
<token name="Material">256</token>
|
|
<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>4.07127958e-025</X>
|
|
<Y>3.33696291e-022</Y>
|
|
<Z>6.94702468e-025</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>3.66452934e-020</X>
|
|
<Y>0.00686328812</Y>
|
|
<Z>3.64332218e-020</Z>
|
|
</Vector3>
|
|
<token name="formFactorRaw">0</token>
|
|
<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>29.5004578</X>
|
|
<Y>25.7975159</Y>
|
|
<Z>-32.2155228</Z>
|
|
<R00>1.49011612e-008</R00>
|
|
<R01>0</R01>
|
|
<R02>-0.999999881</R02>
|
|
<R10>1.49011612e-008</R10>
|
|
<R11>-0.99999994</R11>
|
|
<R12>0</R12>
|
|
<R20>-0.99999994</R20>
|
|
<R21>1.49011612e-008</R21>
|
|
<R22>1.49011612e-008</R22>
|
|
</CoordinateFrame>
|
|
<bool name="CanCollide">false</bool>
|
|
<float name="Elasticity">0.5</float>
|
|
<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>
|
|
<token name="Material">256</token>
|
|
<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>4.07127958e-025</X>
|
|
<Y>3.33696291e-022</Y>
|
|
<Z>6.94702468e-025</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>3.63115971e-020</X>
|
|
<Y>0.00686328812</Y>
|
|
<Z>3.64332218e-020</Z>
|
|
</Vector3>
|
|
<token name="formFactorRaw">0</token>
|
|
<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>
|
|
<float name="MaxHealth">100</float>
|
|
<string name="Name">Humanoid</string>
|
|
<token name="NameOcclusion">0</token>
|
|
<float name="WalkSpeed">16</float>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="Part" referent="RBX50">
|
|
<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">29</int>
|
|
<CoordinateFrame name="CFrame">
|
|
<X>30.0004578</X>
|
|
<Y>23.2975159</Y>
|
|
<Z>-30.2155228</Z>
|
|
<R00>0.999999881</R00>
|
|
<R01>0</R01>
|
|
<R02>1.49011612e-008</R02>
|
|
<R10>0</R10>
|
|
<R11>-0.99999994</R11>
|
|
<R12>1.49011612e-008</R12>
|
|
<R20>-1.49011612e-008</R20>
|
|
<R21>1.49011612e-008</R21>
|
|
<R22>-0.99999994</R22>
|
|
</CoordinateFrame>
|
|
<bool name="CanCollide">true</bool>
|
|
<float name="Elasticity">0.5</float>
|
|
<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>
|
|
<token name="Material">256</token>
|
|
<string name="Name">zarm</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>4.07127958e-025</X>
|
|
<Y>3.33696291e-022</Y>
|
|
<Z>6.94702468e-025</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>3.69807249e-020</X>
|
|
<Y>0.00686328812</Y>
|
|
<Z>3.62653558e-020</Z>
|
|
</Vector3>
|
|
<token name="formFactorRaw">0</token>
|
|
<token name="shape">1</token>
|
|
<Vector3 name="size">
|
|
<X>2</X>
|
|
<Y>1</Y>
|
|
<Z>1</Z>
|
|
</Vector3>
|
|
</Properties>
|
|
<Item class="Script" referent="RBX51">
|
|
<Properties>
|
|
<bool name="Disabled">false</bool>
|
|
<Content name="LinkedSource"><null></null></Content>
|
|
<string name="Name">Script</string>
|
|
<ProtectedString name="Source">wait(1)
|
|
owner=script.Parent.Parent.Name
|
|
|
|
function onTouched(part)
|
|
	if part.Parent ~= nil then
|
|
		local h = part.Parent:findFirstChild("Humanoid")
|
|
			if h~=nil then
|
|
				if cantouch~=0 then
|
|
					if h.Parent.Name~=owner then
|
|
						
|
|
						if h.Parent:findFirstChild("zarm")~=nil then return end
|
|
|
|
						cantouch=0
|
|
|
|
						local larm=h.Parent:findFirstChild("Left Arm")
|
|
						local rarm=h.Parent:findFirstChild("Right Arm")
|
|
						
|
|
						if larm~=nil then
|
|
							larm:remove()
|
|
						end
|
|
						if rarm~=nil then
|
|
							rarm:remove()
|
|
						end
|
|
						local zee=script.Parent.Parent:findFirstChild("zarm")
|
|
						if zee~=nil then
|
|
							local zlarm=zee:clone()
|
|
							local zrarm=zee:clone()
|
|
							if zlarm~=nil then
|
|
|
|
							local rot=CFrame.new(0, 0, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
|
|
								zlarm.CFrame=h.Parent.Torso.CFrame * CFrame.new(Vector3.new(-1.5,0.5,-0.5)) * rot
|
|
								zrarm.CFrame=h.Parent.Torso.CFrame * CFrame.new(Vector3.new(1.5,0.5,-0.5)) * rot
|
|
								zlarm.Parent=h.Parent
|
|
								zrarm.Parent=h.Parent
|
|
								zlarm:makeJoints()
|
|
								zrarm:makeJoints()
|
|
								zlarm.Anchored=false
|
|
								zrarm.Anchored=false
|
|
								wait(0.1)
|
|
								h.Parent.Head.Color=zee.Color
|
|
							else print("no zee"); return end
|
|
						end
|
|
						wait(1)
|
|
						cantouch=1
|
|
					end
|
|
				end
|
|
			end
|
|
	end
|
|
end
|
|
|
|
script.Parent.Touched:connect(onTouched)</ProtectedString>
|
|
</Properties>
|
|
</Item>
|
|
</Item>
|
|
<Item class="Part" referent="RBX52">
|
|
<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">29</int>
|
|
<CoordinateFrame name="CFrame">
|
|
<X>30.0004578</X>
|
|
<Y>23.2975159</Y>
|
|
<Z>-33.2155228</Z>
|
|
<R00>0.999999881</R00>
|
|
<R01>0</R01>
|
|
<R02>1.49011612e-008</R02>
|
|
<R10>0</R10>
|
|
<R11>-0.99999994</R11>
|
|
<R12>1.49011612e-008</R12>
|
|
<R20>-1.49011612e-008</R20>
|
|
<R21>1.49011612e-008</R21>
|
|
<R22>-0.99999994</R22>
|
|
</CoordinateFrame>
|
|
<bool name="CanCollide">true</bool>
|
|
<float name="Elasticity">0.5</float>
|
|
<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>
|
|
<token name="Material">256</token>
|
|
<string name="Name">zarm</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>4.07127958e-025</X>
|
|
<Y>3.33696291e-022</Y>
|
|
<Z>6.94702468e-025</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>3.5979636e-020</X>
|
|
<Y>0.00686328812</Y>
|
|
<Z>3.62653558e-020</Z>
|
|
</Vector3>
|
|
<token name="formFactorRaw">0</token>
|
|
<token name="shape">1</token>
|
|
<Vector3 name="size">
|
|
<X>2</X>
|
|
<Y>1</Y>
|
|
<Z>1</Z>
|
|
</Vector3>
|
|
</Properties>
|
|
<Item class="Script" referent="RBX53">
|
|
<Properties>
|
|
<bool name="Disabled">false</bool>
|
|
<Content name="LinkedSource"><null></null></Content>
|
|
<string name="Name">Script</string>
|
|
<ProtectedString name="Source">wait(1)
|
|
owner=script.Parent.Parent.Name
|
|
|
|
function onTouched(part)
|
|
	if part.Parent ~= nil then
|
|
		local h = part.Parent:findFirstChild("Humanoid")
|
|
			if h~=nil then
|
|
				if cantouch~=0 then
|
|
					if h.Parent.Name~=owner then
|
|
						
|
|
						if h.Parent:findFirstChild("zarm")~=nil then return end
|
|
|
|
						cantouch=0
|
|
|
|
						local larm=h.Parent:findFirstChild("Left Arm")
|
|
						local rarm=h.Parent:findFirstChild("Right Arm")
|
|
						
|
|
						if larm~=nil then
|
|
							larm:remove()
|
|
						end
|
|
						if rarm~=nil then
|
|
							rarm:remove()
|
|
						end
|
|
						local zee=script.Parent.Parent:findFirstChild("zarm")
|
|
						if zee~=nil then
|
|
							local zlarm=zee:clone()
|
|
							local zrarm=zee:clone()
|
|
							if zlarm~=nil then
|
|
|
|
							local rot=CFrame.new(0, 0, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
|
|
								zlarm.CFrame=h.Parent.Torso.CFrame * CFrame.new(Vector3.new(-1.5,0.5,-0.5)) * rot
|
|
								zrarm.CFrame=h.Parent.Torso.CFrame * CFrame.new(Vector3.new(1.5,0.5,-0.5)) * rot
|
|
								zlarm.Parent=h.Parent
|
|
								zrarm.Parent=h.Parent
|
|
								zlarm:makeJoints()
|
|
								zrarm:makeJoints()
|
|
								zlarm.Anchored=false
|
|
								zrarm.Anchored=false
|
|
								wait(0.1)
|
|
								h.Parent.Head.Color=zee.Color
|
|
							else print("no zee"); return end
|
|
						end
|
|
						wait(1)
|
|
						cantouch=1
|
|
					end
|
|
				end
|
|
			end
|
|
	end
|
|
end
|
|
|
|
script.Parent.Touched:connect(onTouched)</ProtectedString>
|
|
</Properties>
|
|
</Item>
|
|
</Item>
|
|
<Item class="ObjectValue" referent="RBX54">
|
|
<Properties>
|
|
<string name="Name">IsNZ</string>
|
|
<Ref name="Value">null</Ref>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="IntValue" referent="RBX55">
|
|
<Properties>
|
|
<string name="Name">Mode</string>
|
|
<int name="Value">0</int>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="Script" referent="RBX56">
|
|
<Properties>
|
|
<bool name="Disabled">false</bool>
|
|
<Content name="LinkedSource"><null></null></Content>
|
|
<string name="Name">Script</string>
|
|
<ProtectedString name="Source">local larm = script.Parent:FindFirstChild("Left Arm")
|
|
local rarm = script.Parent:FindFirstChild("Right Arm")
|
|
|
|
function findNearestTorso(pos)
|
|
	local list = game.Workspace:children()
|
|
	local torso = nil
|
|
	local dist = 1000
|
|
	local temp = nil
|
|
	local human = nil
|
|
	local temp2 = nil
|
|
	for x = 1, #list do
|
|
		temp2 = list[x]
|
|
		if (temp2.className == "Model") and (temp2 ~= script.Parent) then
|
|
			temp = temp2:findFirstChild("Right Arm")
|
|
			human = temp2:findFirstChild("Humanoid")
|
|
			if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then
|
|
				if (temp.Position - pos).magnitude < dist then
|
|
					torso = temp
|
|
					dist = (temp.Position - pos).magnitude
|
|
				end
|
|
			end
|
|
		end
|
|
	end
|
|
	return torso
|
|
end
|
|
|
|
|
|
|
|
|
|
while true do
|
|
	wait(math.random(1,5))
|
|
	local target = findNearestTorso(script.Parent.Torso.Position)
|
|
	if target ~= nil then
|
|
		script.Parent.Humanoid:MoveTo(target.Position, target)
|
|
	end
|
|
|
|
end
|
|
</ProtectedString>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="Script" referent="RBX57">
|
|
<Properties>
|
|
<bool name="Disabled">false</bool>
|
|
<Content name="LinkedSource"><null></null></Content>
|
|
<string name="Name">Health</string>
|
|
<ProtectedString name="Source">function waitForChild(parent, childName)
|
|
	while true do
|
|
		local child = parent:findFirstChild(childName)
|
|
		if child then
|
|
			return child
|
|
		end
|
|
		parent.ChildAdded:wait()
|
|
	end
|
|
end
|
|
|
|
-- declarations
|
|
|
|
local Figure = script.Parent
|
|
local Head = waitForChild(Figure, "Head")
|
|
local Humanoid = waitForChild(Figure, "Humanoid")
|
|
Humanoid.Health=500
|
|
-- regeneration
|
|
while true do
|
|
	local s = wait(4)
|
|
	local health = Humanoid.Health
|
|
	if health > 0 and health < Humanoid.MaxHealth then
|
|
		health = health + 0.08 * s * Humanoid.MaxHealth
|
|
		if health * 1.05 < Humanoid.MaxHealth then
|
|
			Humanoid.Health = health
|
|
		else
|
|
			Humanoid.Health = Humanoid.MaxHealth
|
|
		end
|
|
	end
|
|
end
|
|
</ProtectedString>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="Script" referent="RBX58">
|
|
<Properties>
|
|
<bool name="Disabled">false</bool>
|
|
<Content name="LinkedSource"><null></null></Content>
|
|
<string name="Name">Respawn</string>
|
|
<ProtectedString name="Source">name="Humanoid"
|
|
|
|
robo=script.Parent:clone()
|
|
|
|
while true do
|
|
	wait(1)
|
|
	if script.Parent.Humanoid.Health<1 then
|
|
		robot=robo:clone()
|
|
		robot.Parent=script.Parent.Parent
|
|
		robot:makeJoints()
|
|
		script.Parent:remove()
|
|
	end
|
|
end
|
|
		
|
|
|
|
|
|
</ProtectedString>
|
|
</Properties>
|
|
</Item>
|
|
</Item>
|
|
<Item class="Model" referent="RBX59">
|
|
<Properties>
|
|
<CoordinateFrame name="ModelInPrimary">
|
|
<X>0</X>
|
|
<Y>0</Y>
|
|
<Z>0</Z>
|
|
<R00>1</R00>
|
|
<R01>0</R01>
|
|
<R02>0</R02>
|
|
<R10>0</R10>
|
|
<R11>1</R11>
|
|
<R12>0</R12>
|
|
<R20>0</R20>
|
|
<R21>0</R21>
|
|
<R22>1</R22>
|
|
</CoordinateFrame>
|
|
<string name="Name">Zombie</string>
|
|
<Ref name="PrimaryPart">null</Ref>
|
|
</Properties>
|
|
<Item class="Part" referent="RBX60">
|
|
<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">29</int>
|
|
<CoordinateFrame name="CFrame">
|
|
<X>4.83551025</X>
|
|
<Y>31.5651093</Y>
|
|
<Z>-7.72984886</Z>
|
|
<R00>-0.454648674</R00>
|
|
<R01>-0.540302277</R01>
|
|
<R02>-0.708073378</R02>
|
|
<R10>0.291926563</R10>
|
|
<R11>-0.841470957</R11>
|
|
<R12>0.454648674</R12>
|
|
<R20>-0.841470957</R20>
|
|
<R21>0</R21>
|
|
<R22>0.540302277</R22>
|
|
</CoordinateFrame>
|
|
<bool name="CanCollide">true</bool>
|
|
<float name="Elasticity">0.5</float>
|
|
<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>
|
|
<token name="Material">256</token>
|
|
<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>4.07127958e-025</X>
|
|
<Y>3.33696291e-022</Y>
|
|
<Z>6.94702468e-025</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>3.64807103e-020</X>
|
|
<Y>0.00686328812</Y>
|
|
<Z>3.67023398e-020</Z>
|
|
</Vector3>
|
|
<token name="formFactorRaw">0</token>
|
|
<token name="shape">1</token>
|
|
<Vector3 name="size">
|
|
<X>2</X>
|
|
<Y>1</Y>
|
|
<Z>1</Z>
|
|
</Vector3>
|
|
</Properties>
|
|
<Item class="SpecialMesh" referent="RBX61">
|
|
<Properties>
|
|
<token name="LODX">2</token>
|
|
<token name="LODY">2</token>
|
|
<Content name="MeshId"><null></null></Content>
|
|
<token name="MeshType">0</token>
|
|
<string name="Name">Mesh</string>
|
|
<Vector3 name="Offset">
|
|
<X>0</X>
|
|
<Y>0</Y>
|
|
<Z>0</Z>
|
|
</Vector3>
|
|
<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>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="Decal" referent="RBX62">
|
|
<Properties>
|
|
<token name="Face">5</token>
|
|
<string name="Name">face</string>
|
|
<float name="Shiny">20</float>
|
|
<float name="Specular">0</float>
|
|
<Content name="Texture"><null></null></Content>
|
|
<float name="Transparency">0</float>
|
|
</Properties>
|
|
</Item>
|
|
</Item>
|
|
<Item class="Part" referent="RBX63">
|
|
<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>5.64596367</X>
|
|
<Y>32.8273163</Y>
|
|
<Z>-7.72984886</Z>
|
|
<R00>-0.454648674</R00>
|
|
<R01>-0.540302277</R01>
|
|
<R02>-0.708073378</R02>
|
|
<R10>0.291926563</R10>
|
|
<R11>-0.841470957</R11>
|
|
<R12>0.454648674</R12>
|
|
<R20>-0.841470957</R20>
|
|
<R21>0</R21>
|
|
<R22>0.540302277</R22>
|
|
</CoordinateFrame>
|
|
<bool name="CanCollide">true</bool>
|
|
<float name="Elasticity">0.5</float>
|
|
<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>
|
|
<token name="Material">256</token>
|
|
<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>4.07127958e-025</X>
|
|
<Y>3.33696291e-022</Y>
|
|
<Z>6.94702468e-025</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>3.64798347e-020</X>
|
|
<Y>0.00686328812</Y>
|
|
<Z>3.64324075e-020</Z>
|
|
</Vector3>
|
|
<token name="formFactorRaw">0</token>
|
|
<token name="shape">1</token>
|
|
<Vector3 name="size">
|
|
<X>2</X>
|
|
<Y>2</Y>
|
|
<Z>1</Z>
|
|
</Vector3>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="Part" referent="RBX64">
|
|
<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>6.95389271</X>
|
|
<Y>34.364296</Y>
|
|
<Z>-7.3091135</Z>
|
|
<R00>-0.454648674</R00>
|
|
<R01>-0.540302277</R01>
|
|
<R02>-0.708073378</R02>
|
|
<R10>0.291926563</R10>
|
|
<R11>-0.841470957</R11>
|
|
<R12>0.454648674</R12>
|
|
<R20>-0.841470957</R20>
|
|
<R21>0</R21>
|
|
<R22>0.540302277</R22>
|
|
</CoordinateFrame>
|
|
<bool name="CanCollide">false</bool>
|
|
<float name="Elasticity">0.5</float>
|
|
<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>
|
|
<token name="Material">256</token>
|
|
<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>4.07127958e-025</X>
|
|
<Y>3.33696291e-022</Y>
|
|
<Z>6.94702468e-025</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>3.66191662e-020</X>
|
|
<Y>0.00686328812</Y>
|
|
<Z>3.59965835e-020</Z>
|
|
</Vector3>
|
|
<token name="formFactorRaw">0</token>
|
|
<token name="shape">1</token>
|
|
<Vector3 name="size">
|
|
<X>1</X>
|
|
<Y>2</Y>
|
|
<Z>1</Z>
|
|
</Vector3>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="Part" referent="RBX65">
|
|
<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>6.49924374</X>
|
|
<Y>34.6562233</Y>
|
|
<Z>-8.15058422</Z>
|
|
<R00>-0.454648674</R00>
|
|
<R01>-0.540302277</R01>
|
|
<R02>-0.708073378</R02>
|
|
<R10>0.291926563</R10>
|
|
<R11>-0.841470957</R11>
|
|
<R12>0.454648674</R12>
|
|
<R20>-0.841470957</R20>
|
|
<R21>0</R21>
|
|
<R22>0.540302277</R22>
|
|
</CoordinateFrame>
|
|
<bool name="CanCollide">false</bool>
|
|
<float name="Elasticity">0.5</float>
|
|
<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>
|
|
<token name="Material">256</token>
|
|
<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>4.07127958e-025</X>
|
|
<Y>3.33696291e-022</Y>
|
|
<Z>6.94702468e-025</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>3.63381671e-020</X>
|
|
<Y>0.00686328812</Y>
|
|
<Z>3.61484164e-020</Z>
|
|
</Vector3>
|
|
<token name="formFactorRaw">0</token>
|
|
<token name="shape">1</token>
|
|
<Vector3 name="size">
|
|
<X>1</X>
|
|
<Y>2</Y>
|
|
<Z>1</Z>
|
|
</Vector3>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="Humanoid" referent="RBX66">
|
|
<Properties>
|
|
<float name="Health">100</float>
|
|
<float name="MaxHealth">100</float>
|
|
<string name="Name">Humanoid</string>
|
|
<token name="NameOcclusion">0</token>
|
|
<float name="WalkSpeed">16</float>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="Part" referent="RBX67">
|
|
<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">29</int>
|
|
<CoordinateFrame name="CFrame">
|
|
<X>6.41182232</X>
|
|
<Y>31.7413673</Y>
|
|
<Z>-6.73779345</Z>
|
|
<R00>0.708073378</R00>
|
|
<R01>-0.540302277</R01>
|
|
<R02>-0.454648674</R02>
|
|
<R10>-0.454648674</R10>
|
|
<R11>-0.841470957</R11>
|
|
<R12>0.291926563</R12>
|
|
<R20>-0.540302277</R20>
|
|
<R21>0</R21>
|
|
<R22>-0.841470957</R22>
|
|
</CoordinateFrame>
|
|
<bool name="CanCollide">true</bool>
|
|
<float name="Elasticity">0.5</float>
|
|
<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>
|
|
<token name="Material">256</token>
|
|
<string name="Name">zarm</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>4.07127958e-025</X>
|
|
<Y>3.33696291e-022</Y>
|
|
<Z>6.94702468e-025</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>3.68116343e-020</X>
|
|
<Y>0.00686328812</Y>
|
|
<Z>3.61764016e-020</Z>
|
|
</Vector3>
|
|
<token name="formFactorRaw">0</token>
|
|
<token name="shape">1</token>
|
|
<Vector3 name="size">
|
|
<X>2</X>
|
|
<Y>1</Y>
|
|
<Z>1</Z>
|
|
</Vector3>
|
|
</Properties>
|
|
<Item class="Script" referent="RBX68">
|
|
<Properties>
|
|
<bool name="Disabled">false</bool>
|
|
<Content name="LinkedSource"><null></null></Content>
|
|
<string name="Name">Script</string>
|
|
<ProtectedString name="Source">wait(1)
|
|
owner=script.Parent.Parent.Name
|
|
|
|
function onTouched(part)
|
|
	if part.Parent ~= nil then
|
|
		local h = part.Parent:findFirstChild("Humanoid")
|
|
			if h~=nil then
|
|
				if cantouch~=0 then
|
|
					if h.Parent.Name~=owner then
|
|
						
|
|
						if h.Parent:findFirstChild("zarm")~=nil then return end
|
|
|
|
						cantouch=0
|
|
|
|
						local larm=h.Parent:findFirstChild("Left Arm")
|
|
						local rarm=h.Parent:findFirstChild("Right Arm")
|
|
						
|
|
						if larm~=nil then
|
|
							larm:remove()
|
|
						end
|
|
						if rarm~=nil then
|
|
							rarm:remove()
|
|
						end
|
|
						local zee=script.Parent.Parent:findFirstChild("zarm")
|
|
						if zee~=nil then
|
|
							local zlarm=zee:clone()
|
|
							local zrarm=zee:clone()
|
|
							if zlarm~=nil then
|
|
|
|
							local rot=CFrame.new(0, 0, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
|
|
								zlarm.CFrame=h.Parent.Torso.CFrame * CFrame.new(Vector3.new(-1.5,0.5,-0.5)) * rot
|
|
								zrarm.CFrame=h.Parent.Torso.CFrame * CFrame.new(Vector3.new(1.5,0.5,-0.5)) * rot
|
|
								zlarm.Parent=h.Parent
|
|
								zrarm.Parent=h.Parent
|
|
								zlarm:makeJoints()
|
|
								zrarm:makeJoints()
|
|
								zlarm.Anchored=false
|
|
								zrarm.Anchored=false
|
|
								wait(0.1)
|
|
								h.Parent.Head.Color=zee.Color
|
|
							else print("no zee"); return end
|
|
						end
|
|
						wait(1)
|
|
						cantouch=1
|
|
					end
|
|
				end
|
|
			end
|
|
	end
|
|
end
|
|
|
|
script.Parent.Touched:connect(onTouched)</ProtectedString>
|
|
</Properties>
|
|
</Item>
|
|
</Item>
|
|
<Item class="Part" referent="RBX69">
|
|
<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">29</int>
|
|
<CoordinateFrame name="CFrame">
|
|
<X>5.04787636</X>
|
|
<Y>32.6171455</Y>
|
|
<Z>-9.26220608</Z>
|
|
<R00>0.708073378</R00>
|
|
<R01>-0.540302277</R01>
|
|
<R02>-0.454648674</R02>
|
|
<R10>-0.454648674</R10>
|
|
<R11>-0.841470957</R11>
|
|
<R12>0.291926563</R12>
|
|
<R20>-0.540302277</R20>
|
|
<R21>0</R21>
|
|
<R22>-0.841470957</R22>
|
|
</CoordinateFrame>
|
|
<bool name="CanCollide">true</bool>
|
|
<float name="Elasticity">0.5</float>
|
|
<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>
|
|
<token name="Material">256</token>
|
|
<string name="Name">zarm</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>4.07127958e-025</X>
|
|
<Y>3.33696291e-022</Y>
|
|
<Z>6.94702468e-025</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>3.59686403e-020</X>
|
|
<Y>0.00686328812</Y>
|
|
<Z>3.66319002e-020</Z>
|
|
</Vector3>
|
|
<token name="formFactorRaw">0</token>
|
|
<token name="shape">1</token>
|
|
<Vector3 name="size">
|
|
<X>2</X>
|
|
<Y>1</Y>
|
|
<Z>1</Z>
|
|
</Vector3>
|
|
</Properties>
|
|
<Item class="Script" referent="RBX70">
|
|
<Properties>
|
|
<bool name="Disabled">false</bool>
|
|
<Content name="LinkedSource"><null></null></Content>
|
|
<string name="Name">Script</string>
|
|
<ProtectedString name="Source">wait(1)
|
|
owner=script.Parent.Parent.Name
|
|
|
|
function onTouched(part)
|
|
	if part.Parent ~= nil then
|
|
		local h = part.Parent:findFirstChild("Humanoid")
|
|
			if h~=nil then
|
|
				if cantouch~=0 then
|
|
					if h.Parent.Name~=owner then
|
|
						
|
|
						if h.Parent:findFirstChild("zarm")~=nil then return end
|
|
|
|
						cantouch=0
|
|
|
|
						local larm=h.Parent:findFirstChild("Left Arm")
|
|
						local rarm=h.Parent:findFirstChild("Right Arm")
|
|
						
|
|
						if larm~=nil then
|
|
							larm:remove()
|
|
						end
|
|
						if rarm~=nil then
|
|
							rarm:remove()
|
|
						end
|
|
						local zee=script.Parent.Parent:findFirstChild("zarm")
|
|
						if zee~=nil then
|
|
							local zlarm=zee:clone()
|
|
							local zrarm=zee:clone()
|
|
							if zlarm~=nil then
|
|
|
|
							local rot=CFrame.new(0, 0, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
|
|
								zlarm.CFrame=h.Parent.Torso.CFrame * CFrame.new(Vector3.new(-1.5,0.5,-0.5)) * rot
|
|
								zrarm.CFrame=h.Parent.Torso.CFrame * CFrame.new(Vector3.new(1.5,0.5,-0.5)) * rot
|
|
								zlarm.Parent=h.Parent
|
|
								zrarm.Parent=h.Parent
|
|
								zlarm:makeJoints()
|
|
								zrarm:makeJoints()
|
|
								zlarm.Anchored=false
|
|
								zrarm.Anchored=false
|
|
								wait(0.1)
|
|
								h.Parent.Head.Color=zee.Color
|
|
							else print("no zee"); return end
|
|
						end
|
|
						wait(1)
|
|
						cantouch=1
|
|
					end
|
|
				end
|
|
			end
|
|
	end
|
|
end
|
|
|
|
script.Parent.Touched:connect(onTouched)</ProtectedString>
|
|
</Properties>
|
|
</Item>
|
|
</Item>
|
|
<Item class="ObjectValue" referent="RBX71">
|
|
<Properties>
|
|
<string name="Name">IsNZ</string>
|
|
<Ref name="Value">null</Ref>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="IntValue" referent="RBX72">
|
|
<Properties>
|
|
<string name="Name">Mode</string>
|
|
<int name="Value">0</int>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="Script" referent="RBX73">
|
|
<Properties>
|
|
<bool name="Disabled">false</bool>
|
|
<Content name="LinkedSource"><null></null></Content>
|
|
<string name="Name">Script</string>
|
|
<ProtectedString name="Source">local larm = script.Parent:FindFirstChild("Left Arm")
|
|
local rarm = script.Parent:FindFirstChild("Right Arm")
|
|
|
|
function findNearestTorso(pos)
|
|
	local list = game.Workspace:children()
|
|
	local torso = nil
|
|
	local dist = 1000
|
|
	local temp = nil
|
|
	local human = nil
|
|
	local temp2 = nil
|
|
	for x = 1, #list do
|
|
		temp2 = list[x]
|
|
		if (temp2.className == "Model") and (temp2 ~= script.Parent) then
|
|
			temp = temp2:findFirstChild("Right Arm")
|
|
			human = temp2:findFirstChild("Humanoid")
|
|
			if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then
|
|
				if (temp.Position - pos).magnitude < dist then
|
|
					torso = temp
|
|
					dist = (temp.Position - pos).magnitude
|
|
				end
|
|
			end
|
|
		end
|
|
	end
|
|
	return torso
|
|
end
|
|
|
|
|
|
|
|
|
|
while true do
|
|
	wait(math.random(1,5))
|
|
	local target = findNearestTorso(script.Parent.Torso.Position)
|
|
	if target ~= nil then
|
|
		script.Parent.Humanoid:MoveTo(target.Position, target)
|
|
	end
|
|
|
|
end
|
|
</ProtectedString>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="Script" referent="RBX74">
|
|
<Properties>
|
|
<bool name="Disabled">false</bool>
|
|
<Content name="LinkedSource"><null></null></Content>
|
|
<string name="Name">Health</string>
|
|
<ProtectedString name="Source">function waitForChild(parent, childName)
|
|
	while true do
|
|
		local child = parent:findFirstChild(childName)
|
|
		if child then
|
|
			return child
|
|
		end
|
|
		parent.ChildAdded:wait()
|
|
	end
|
|
end
|
|
|
|
-- declarations
|
|
|
|
local Figure = script.Parent
|
|
local Head = waitForChild(Figure, "Head")
|
|
local Humanoid = waitForChild(Figure, "Humanoid")
|
|
Humanoid.Health=500
|
|
-- regeneration
|
|
while true do
|
|
	local s = wait(4)
|
|
	local health = Humanoid.Health
|
|
	if health > 0 and health < Humanoid.MaxHealth then
|
|
		health = health + 0.08 * s * Humanoid.MaxHealth
|
|
		if health * 1.05 < Humanoid.MaxHealth then
|
|
			Humanoid.Health = health
|
|
		else
|
|
			Humanoid.Health = Humanoid.MaxHealth
|
|
		end
|
|
	end
|
|
end
|
|
</ProtectedString>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="Script" referent="RBX75">
|
|
<Properties>
|
|
<bool name="Disabled">false</bool>
|
|
<Content name="LinkedSource"><null></null></Content>
|
|
<string name="Name">Respawn</string>
|
|
<ProtectedString name="Source">name="Humanoid"
|
|
|
|
robo=script.Parent:clone()
|
|
|
|
while true do
|
|
	wait(1)
|
|
	if script.Parent.Humanoid.Health<1 then
|
|
		robot=robo:clone()
|
|
		robot.Parent=script.Parent.Parent
|
|
		robot:makeJoints()
|
|
		script.Parent:remove()
|
|
	end
|
|
end
|
|
		
|
|
|
|
|
|
</ProtectedString>
|
|
</Properties>
|
|
</Item>
|
|
</Item>
|
|
<Item class="Model" referent="RBX76">
|
|
<Properties>
|
|
<CoordinateFrame name="ModelInPrimary">
|
|
<X>0</X>
|
|
<Y>0</Y>
|
|
<Z>0</Z>
|
|
<R00>1</R00>
|
|
<R01>0</R01>
|
|
<R02>0</R02>
|
|
<R10>0</R10>
|
|
<R11>1</R11>
|
|
<R12>0</R12>
|
|
<R20>0</R20>
|
|
<R21>0</R21>
|
|
<R22>1</R22>
|
|
</CoordinateFrame>
|
|
<string name="Name">Zombie</string>
|
|
<Ref name="PrimaryPart">null</Ref>
|
|
</Properties>
|
|
<Item class="Part" referent="RBX77">
|
|
<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">29</int>
|
|
<CoordinateFrame name="CFrame">
|
|
<X>15.4981842</X>
|
|
<Y>35.2100067</Y>
|
|
<Z>-15.1379089</Z>
|
|
<R00>1.49011612e-008</R00>
|
|
<R01>0</R01>
|
|
<R02>-0.999999881</R02>
|
|
<R10>1.49011612e-008</R10>
|
|
<R11>-0.99999994</R11>
|
|
<R12>0</R12>
|
|
<R20>-0.99999994</R20>
|
|
<R21>1.49011612e-008</R21>
|
|
<R22>1.49011612e-008</R22>
|
|
</CoordinateFrame>
|
|
<bool name="CanCollide">true</bool>
|
|
<float name="Elasticity">0.5</float>
|
|
<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>
|
|
<token name="Material">256</token>
|
|
<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>4.07127958e-025</X>
|
|
<Y>3.33696291e-022</Y>
|
|
<Z>6.94702468e-025</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>3.64808751e-020</X>
|
|
<Y>0.00686328812</Y>
|
|
<Z>3.64317968e-020</Z>
|
|
</Vector3>
|
|
<token name="formFactorRaw">0</token>
|
|
<token name="shape">1</token>
|
|
<Vector3 name="size">
|
|
<X>2</X>
|
|
<Y>1</Y>
|
|
<Z>1</Z>
|
|
</Vector3>
|
|
</Properties>
|
|
<Item class="SpecialMesh" referent="RBX78">
|
|
<Properties>
|
|
<token name="LODX">2</token>
|
|
<token name="LODY">2</token>
|
|
<Content name="MeshId"><null></null></Content>
|
|
<token name="MeshType">0</token>
|
|
<string name="Name">Mesh</string>
|
|
<Vector3 name="Offset">
|
|
<X>0</X>
|
|
<Y>0</Y>
|
|
<Z>0</Z>
|
|
</Vector3>
|
|
<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>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="Decal" referent="RBX79">
|
|
<Properties>
|
|
<token name="Face">5</token>
|
|
<string name="Name">face</string>
|
|
<float name="Shiny">20</float>
|
|
<float name="Specular">0</float>
|
|
<Content name="Texture"><null></null></Content>
|
|
<float name="Transparency">0</float>
|
|
</Properties>
|
|
</Item>
|
|
</Item>
|
|
<Item class="Part" referent="RBX80">
|
|
<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>15.4981842</X>
|
|
<Y>36.7100067</Y>
|
|
<Z>-15.1379089</Z>
|
|
<R00>1.49011612e-008</R00>
|
|
<R01>0</R01>
|
|
<R02>-0.999999881</R02>
|
|
<R10>1.49011612e-008</R10>
|
|
<R11>-0.99999994</R11>
|
|
<R12>0</R12>
|
|
<R20>-0.99999994</R20>
|
|
<R21>1.49011612e-008</R21>
|
|
<R22>1.49011612e-008</R22>
|
|
</CoordinateFrame>
|
|
<bool name="CanCollide">true</bool>
|
|
<float name="Elasticity">0.5</float>
|
|
<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>
|
|
<token name="Material">256</token>
|
|
<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>4.07127958e-025</X>
|
|
<Y>3.33696291e-022</Y>
|
|
<Z>6.94702468e-025</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>3.64798347e-020</X>
|
|
<Y>0.00686328812</Y>
|
|
<Z>3.64324075e-020</Z>
|
|
</Vector3>
|
|
<token name="formFactorRaw">0</token>
|
|
<token name="shape">1</token>
|
|
<Vector3 name="size">
|
|
<X>2</X>
|
|
<Y>2</Y>
|
|
<Z>1</Z>
|
|
</Vector3>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="Part" referent="RBX81">
|
|
<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>15.4981842</X>
|
|
<Y>38.7100067</Y>
|
|
<Z>-14.6379089</Z>
|
|
<R00>1.49011612e-008</R00>
|
|
<R01>0</R01>
|
|
<R02>-0.999999881</R02>
|
|
<R10>1.49011612e-008</R10>
|
|
<R11>-0.99999994</R11>
|
|
<R12>0</R12>
|
|
<R20>-0.99999994</R20>
|
|
<R21>1.49011612e-008</R21>
|
|
<R22>1.49011612e-008</R22>
|
|
</CoordinateFrame>
|
|
<bool name="CanCollide">false</bool>
|
|
<float name="Elasticity">0.5</float>
|
|
<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>
|
|
<token name="Material">256</token>
|
|
<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>4.07127958e-025</X>
|
|
<Y>3.33696291e-022</Y>
|
|
<Z>6.94702468e-025</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>3.66452934e-020</X>
|
|
<Y>0.00686328812</Y>
|
|
<Z>3.64332218e-020</Z>
|
|
</Vector3>
|
|
<token name="formFactorRaw">0</token>
|
|
<token name="shape">1</token>
|
|
<Vector3 name="size">
|
|
<X>1</X>
|
|
<Y>2</Y>
|
|
<Z>1</Z>
|
|
</Vector3>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="Part" referent="RBX82">
|
|
<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>15.4981842</X>
|
|
<Y>38.7100067</Y>
|
|
<Z>-15.6379089</Z>
|
|
<R00>1.49011612e-008</R00>
|
|
<R01>0</R01>
|
|
<R02>-0.999999881</R02>
|
|
<R10>1.49011612e-008</R10>
|
|
<R11>-0.99999994</R11>
|
|
<R12>0</R12>
|
|
<R20>-0.99999994</R20>
|
|
<R21>1.49011612e-008</R21>
|
|
<R22>1.49011612e-008</R22>
|
|
</CoordinateFrame>
|
|
<bool name="CanCollide">false</bool>
|
|
<float name="Elasticity">0.5</float>
|
|
<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>
|
|
<token name="Material">256</token>
|
|
<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>4.07127958e-025</X>
|
|
<Y>3.33696291e-022</Y>
|
|
<Z>6.94702468e-025</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>3.63115971e-020</X>
|
|
<Y>0.00686328812</Y>
|
|
<Z>3.64332218e-020</Z>
|
|
</Vector3>
|
|
<token name="formFactorRaw">0</token>
|
|
<token name="shape">1</token>
|
|
<Vector3 name="size">
|
|
<X>1</X>
|
|
<Y>2</Y>
|
|
<Z>1</Z>
|
|
</Vector3>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="Humanoid" referent="RBX83">
|
|
<Properties>
|
|
<float name="Health">100</float>
|
|
<float name="MaxHealth">100</float>
|
|
<string name="Name">Humanoid</string>
|
|
<token name="NameOcclusion">0</token>
|
|
<float name="WalkSpeed">16</float>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="Part" referent="RBX84">
|
|
<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">29</int>
|
|
<CoordinateFrame name="CFrame">
|
|
<X>15.9981842</X>
|
|
<Y>36.2100067</Y>
|
|
<Z>-13.6379089</Z>
|
|
<R00>0.999999881</R00>
|
|
<R01>0</R01>
|
|
<R02>1.49011612e-008</R02>
|
|
<R10>0</R10>
|
|
<R11>-0.99999994</R11>
|
|
<R12>1.49011612e-008</R12>
|
|
<R20>-1.49011612e-008</R20>
|
|
<R21>1.49011612e-008</R21>
|
|
<R22>-0.99999994</R22>
|
|
</CoordinateFrame>
|
|
<bool name="CanCollide">true</bool>
|
|
<float name="Elasticity">0.5</float>
|
|
<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>
|
|
<token name="Material">256</token>
|
|
<string name="Name">zarm</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>4.07127958e-025</X>
|
|
<Y>3.33696291e-022</Y>
|
|
<Z>6.94702468e-025</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>3.69807249e-020</X>
|
|
<Y>0.00686328812</Y>
|
|
<Z>3.62653558e-020</Z>
|
|
</Vector3>
|
|
<token name="formFactorRaw">0</token>
|
|
<token name="shape">1</token>
|
|
<Vector3 name="size">
|
|
<X>2</X>
|
|
<Y>1</Y>
|
|
<Z>1</Z>
|
|
</Vector3>
|
|
</Properties>
|
|
<Item class="Script" referent="RBX85">
|
|
<Properties>
|
|
<bool name="Disabled">false</bool>
|
|
<Content name="LinkedSource"><null></null></Content>
|
|
<string name="Name">Script</string>
|
|
<ProtectedString name="Source">wait(1)
|
|
owner=script.Parent.Parent.Name
|
|
|
|
function onTouched(part)
|
|
	if part.Parent ~= nil then
|
|
		local h = part.Parent:findFirstChild("Humanoid")
|
|
			if h~=nil then
|
|
				if cantouch~=0 then
|
|
					if h.Parent.Name~=owner then
|
|
						
|
|
						if h.Parent:findFirstChild("zarm")~=nil then return end
|
|
|
|
						cantouch=0
|
|
|
|
						local larm=h.Parent:findFirstChild("Left Arm")
|
|
						local rarm=h.Parent:findFirstChild("Right Arm")
|
|
						
|
|
						if larm~=nil then
|
|
							larm:remove()
|
|
						end
|
|
						if rarm~=nil then
|
|
							rarm:remove()
|
|
						end
|
|
						local zee=script.Parent.Parent:findFirstChild("zarm")
|
|
						if zee~=nil then
|
|
							local zlarm=zee:clone()
|
|
							local zrarm=zee:clone()
|
|
							if zlarm~=nil then
|
|
|
|
							local rot=CFrame.new(0, 0, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
|
|
								zlarm.CFrame=h.Parent.Torso.CFrame * CFrame.new(Vector3.new(-1.5,0.5,-0.5)) * rot
|
|
								zrarm.CFrame=h.Parent.Torso.CFrame * CFrame.new(Vector3.new(1.5,0.5,-0.5)) * rot
|
|
								zlarm.Parent=h.Parent
|
|
								zrarm.Parent=h.Parent
|
|
								zlarm:makeJoints()
|
|
								zrarm:makeJoints()
|
|
								zlarm.Anchored=false
|
|
								zrarm.Anchored=false
|
|
								wait(0.1)
|
|
								h.Parent.Head.Color=zee.Color
|
|
							else print("no zee"); return end
|
|
						end
|
|
						wait(1)
|
|
						cantouch=1
|
|
					end
|
|
				end
|
|
			end
|
|
	end
|
|
end
|
|
|
|
script.Parent.Touched:connect(onTouched)</ProtectedString>
|
|
</Properties>
|
|
</Item>
|
|
</Item>
|
|
<Item class="Part" referent="RBX86">
|
|
<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">29</int>
|
|
<CoordinateFrame name="CFrame">
|
|
<X>15.9981842</X>
|
|
<Y>36.2100067</Y>
|
|
<Z>-16.6379089</Z>
|
|
<R00>0.999999881</R00>
|
|
<R01>0</R01>
|
|
<R02>1.49011612e-008</R02>
|
|
<R10>0</R10>
|
|
<R11>-0.99999994</R11>
|
|
<R12>1.49011612e-008</R12>
|
|
<R20>-1.49011612e-008</R20>
|
|
<R21>1.49011612e-008</R21>
|
|
<R22>-0.99999994</R22>
|
|
</CoordinateFrame>
|
|
<bool name="CanCollide">true</bool>
|
|
<float name="Elasticity">0.5</float>
|
|
<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>
|
|
<token name="Material">256</token>
|
|
<string name="Name">zarm</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>4.07127958e-025</X>
|
|
<Y>3.33696291e-022</Y>
|
|
<Z>6.94702468e-025</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>3.5979636e-020</X>
|
|
<Y>0.00686328812</Y>
|
|
<Z>3.62653558e-020</Z>
|
|
</Vector3>
|
|
<token name="formFactorRaw">0</token>
|
|
<token name="shape">1</token>
|
|
<Vector3 name="size">
|
|
<X>2</X>
|
|
<Y>1</Y>
|
|
<Z>1</Z>
|
|
</Vector3>
|
|
</Properties>
|
|
<Item class="Script" referent="RBX87">
|
|
<Properties>
|
|
<bool name="Disabled">false</bool>
|
|
<Content name="LinkedSource"><null></null></Content>
|
|
<string name="Name">Script</string>
|
|
<ProtectedString name="Source">wait(1)
|
|
owner=script.Parent.Parent.Name
|
|
|
|
function onTouched(part)
|
|
	if part.Parent ~= nil then
|
|
		local h = part.Parent:findFirstChild("Humanoid")
|
|
			if h~=nil then
|
|
				if cantouch~=0 then
|
|
					if h.Parent.Name~=owner then
|
|
						
|
|
						if h.Parent:findFirstChild("zarm")~=nil then return end
|
|
|
|
						cantouch=0
|
|
|
|
						local larm=h.Parent:findFirstChild("Left Arm")
|
|
						local rarm=h.Parent:findFirstChild("Right Arm")
|
|
						
|
|
						if larm~=nil then
|
|
							larm:remove()
|
|
						end
|
|
						if rarm~=nil then
|
|
							rarm:remove()
|
|
						end
|
|
						local zee=script.Parent.Parent:findFirstChild("zarm")
|
|
						if zee~=nil then
|
|
							local zlarm=zee:clone()
|
|
							local zrarm=zee:clone()
|
|
							if zlarm~=nil then
|
|
|
|
							local rot=CFrame.new(0, 0, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
|
|
								zlarm.CFrame=h.Parent.Torso.CFrame * CFrame.new(Vector3.new(-1.5,0.5,-0.5)) * rot
|
|
								zrarm.CFrame=h.Parent.Torso.CFrame * CFrame.new(Vector3.new(1.5,0.5,-0.5)) * rot
|
|
								zlarm.Parent=h.Parent
|
|
								zrarm.Parent=h.Parent
|
|
								zlarm:makeJoints()
|
|
								zrarm:makeJoints()
|
|
								zlarm.Anchored=false
|
|
								zrarm.Anchored=false
|
|
								wait(0.1)
|
|
								h.Parent.Head.Color=zee.Color
|
|
							else print("no zee"); return end
|
|
						end
|
|
						wait(1)
|
|
						cantouch=1
|
|
					end
|
|
				end
|
|
			end
|
|
	end
|
|
end
|
|
|
|
script.Parent.Touched:connect(onTouched)</ProtectedString>
|
|
</Properties>
|
|
</Item>
|
|
</Item>
|
|
<Item class="ObjectValue" referent="RBX88">
|
|
<Properties>
|
|
<string name="Name">IsNZ</string>
|
|
<Ref name="Value">null</Ref>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="IntValue" referent="RBX89">
|
|
<Properties>
|
|
<string name="Name">Mode</string>
|
|
<int name="Value">0</int>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="Script" referent="RBX90">
|
|
<Properties>
|
|
<bool name="Disabled">false</bool>
|
|
<Content name="LinkedSource"><null></null></Content>
|
|
<string name="Name">Script</string>
|
|
<ProtectedString name="Source">local larm = script.Parent:FindFirstChild("Left Arm")
|
|
local rarm = script.Parent:FindFirstChild("Right Arm")
|
|
|
|
function findNearestTorso(pos)
|
|
	local list = game.Workspace:children()
|
|
	local torso = nil
|
|
	local dist = 1000
|
|
	local temp = nil
|
|
	local human = nil
|
|
	local temp2 = nil
|
|
	for x = 1, #list do
|
|
		temp2 = list[x]
|
|
		if (temp2.className == "Model") and (temp2 ~= script.Parent) then
|
|
			temp = temp2:findFirstChild("Right Arm")
|
|
			human = temp2:findFirstChild("Humanoid")
|
|
			if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then
|
|
				if (temp.Position - pos).magnitude < dist then
|
|
					torso = temp
|
|
					dist = (temp.Position - pos).magnitude
|
|
				end
|
|
			end
|
|
		end
|
|
	end
|
|
	return torso
|
|
end
|
|
|
|
|
|
|
|
|
|
while true do
|
|
	wait(math.random(1,5))
|
|
	local target = findNearestTorso(script.Parent.Torso.Position)
|
|
	if target ~= nil then
|
|
		script.Parent.Humanoid:MoveTo(target.Position, target)
|
|
	end
|
|
|
|
end
|
|
</ProtectedString>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="Script" referent="RBX91">
|
|
<Properties>
|
|
<bool name="Disabled">false</bool>
|
|
<Content name="LinkedSource"><null></null></Content>
|
|
<string name="Name">Health</string>
|
|
<ProtectedString name="Source">function waitForChild(parent, childName)
|
|
	while true do
|
|
		local child = parent:findFirstChild(childName)
|
|
		if child then
|
|
			return child
|
|
		end
|
|
		parent.ChildAdded:wait()
|
|
	end
|
|
end
|
|
|
|
-- declarations
|
|
|
|
local Figure = script.Parent
|
|
local Head = waitForChild(Figure, "Head")
|
|
local Humanoid = waitForChild(Figure, "Humanoid")
|
|
Humanoid.Health=500
|
|
-- regeneration
|
|
while true do
|
|
	local s = wait(4)
|
|
	local health = Humanoid.Health
|
|
	if health > 0 and health < Humanoid.MaxHealth then
|
|
		health = health + 0.08 * s * Humanoid.MaxHealth
|
|
		if health * 1.05 < Humanoid.MaxHealth then
|
|
			Humanoid.Health = health
|
|
		else
|
|
			Humanoid.Health = Humanoid.MaxHealth
|
|
		end
|
|
	end
|
|
end
|
|
</ProtectedString>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="Script" referent="RBX92">
|
|
<Properties>
|
|
<bool name="Disabled">false</bool>
|
|
<Content name="LinkedSource"><null></null></Content>
|
|
<string name="Name">Respawn</string>
|
|
<ProtectedString name="Source">name="Humanoid"
|
|
|
|
robo=script.Parent:clone()
|
|
|
|
while true do
|
|
	wait(1)
|
|
	if script.Parent.Humanoid.Health<1 then
|
|
		robot=robo:clone()
|
|
		robot.Parent=script.Parent.Parent
|
|
		robot:makeJoints()
|
|
		script.Parent:remove()
|
|
	end
|
|
end
|
|
		
|
|
|
|
|
|
</ProtectedString>
|
|
</Properties>
|
|
</Item>
|
|
</Item>
|
|
<Item class="Model" referent="RBX93">
|
|
<Properties>
|
|
<CoordinateFrame name="ModelInPrimary">
|
|
<X>0</X>
|
|
<Y>0</Y>
|
|
<Z>0</Z>
|
|
<R00>1</R00>
|
|
<R01>0</R01>
|
|
<R02>0</R02>
|
|
<R10>0</R10>
|
|
<R11>1</R11>
|
|
<R12>0</R12>
|
|
<R20>0</R20>
|
|
<R21>0</R21>
|
|
<R22>1</R22>
|
|
</CoordinateFrame>
|
|
<string name="Name">Zombie</string>
|
|
<Ref name="PrimaryPart">null</Ref>
|
|
</Properties>
|
|
<Item class="Part" referent="RBX94">
|
|
<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">29</int>
|
|
<CoordinateFrame name="CFrame">
|
|
<X>4.83551025</X>
|
|
<Y>35.9651184</Y>
|
|
<Z>-7.72984886</Z>
|
|
<R00>-0.454648674</R00>
|
|
<R01>-0.540302277</R01>
|
|
<R02>-0.708073378</R02>
|
|
<R10>0.291926563</R10>
|
|
<R11>-0.841470957</R11>
|
|
<R12>0.454648674</R12>
|
|
<R20>-0.841470957</R20>
|
|
<R21>0</R21>
|
|
<R22>0.540302277</R22>
|
|
</CoordinateFrame>
|
|
<bool name="CanCollide">true</bool>
|
|
<float name="Elasticity">0.5</float>
|
|
<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>
|
|
<token name="Material">256</token>
|
|
<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>4.07127958e-025</X>
|
|
<Y>3.33696291e-022</Y>
|
|
<Z>6.94702468e-025</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>3.64807103e-020</X>
|
|
<Y>0.00686328812</Y>
|
|
<Z>3.67023398e-020</Z>
|
|
</Vector3>
|
|
<token name="formFactorRaw">0</token>
|
|
<token name="shape">1</token>
|
|
<Vector3 name="size">
|
|
<X>2</X>
|
|
<Y>1</Y>
|
|
<Z>1</Z>
|
|
</Vector3>
|
|
</Properties>
|
|
<Item class="SpecialMesh" referent="RBX95">
|
|
<Properties>
|
|
<token name="LODX">2</token>
|
|
<token name="LODY">2</token>
|
|
<Content name="MeshId"><null></null></Content>
|
|
<token name="MeshType">0</token>
|
|
<string name="Name">Mesh</string>
|
|
<Vector3 name="Offset">
|
|
<X>0</X>
|
|
<Y>0</Y>
|
|
<Z>0</Z>
|
|
</Vector3>
|
|
<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>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="Decal" referent="RBX96">
|
|
<Properties>
|
|
<token name="Face">5</token>
|
|
<string name="Name">face</string>
|
|
<float name="Shiny">20</float>
|
|
<float name="Specular">0</float>
|
|
<Content name="Texture"><null></null></Content>
|
|
<float name="Transparency">0</float>
|
|
</Properties>
|
|
</Item>
|
|
</Item>
|
|
<Item class="Part" referent="RBX97">
|
|
<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>5.64596367</X>
|
|
<Y>37.2273254</Y>
|
|
<Z>-7.72984886</Z>
|
|
<R00>-0.454648674</R00>
|
|
<R01>-0.540302277</R01>
|
|
<R02>-0.708073378</R02>
|
|
<R10>0.291926563</R10>
|
|
<R11>-0.841470957</R11>
|
|
<R12>0.454648674</R12>
|
|
<R20>-0.841470957</R20>
|
|
<R21>0</R21>
|
|
<R22>0.540302277</R22>
|
|
</CoordinateFrame>
|
|
<bool name="CanCollide">true</bool>
|
|
<float name="Elasticity">0.5</float>
|
|
<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>
|
|
<token name="Material">256</token>
|
|
<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>4.07127958e-025</X>
|
|
<Y>3.33696291e-022</Y>
|
|
<Z>6.94702468e-025</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>3.64798347e-020</X>
|
|
<Y>0.00686328812</Y>
|
|
<Z>3.64324075e-020</Z>
|
|
</Vector3>
|
|
<token name="formFactorRaw">0</token>
|
|
<token name="shape">1</token>
|
|
<Vector3 name="size">
|
|
<X>2</X>
|
|
<Y>2</Y>
|
|
<Z>1</Z>
|
|
</Vector3>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="Part" referent="RBX98">
|
|
<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>6.95389271</X>
|
|
<Y>38.7643051</Y>
|
|
<Z>-7.3091135</Z>
|
|
<R00>-0.454648674</R00>
|
|
<R01>-0.540302277</R01>
|
|
<R02>-0.708073378</R02>
|
|
<R10>0.291926563</R10>
|
|
<R11>-0.841470957</R11>
|
|
<R12>0.454648674</R12>
|
|
<R20>-0.841470957</R20>
|
|
<R21>0</R21>
|
|
<R22>0.540302277</R22>
|
|
</CoordinateFrame>
|
|
<bool name="CanCollide">false</bool>
|
|
<float name="Elasticity">0.5</float>
|
|
<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>
|
|
<token name="Material">256</token>
|
|
<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>4.07127958e-025</X>
|
|
<Y>3.33696291e-022</Y>
|
|
<Z>6.94702468e-025</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>3.66191662e-020</X>
|
|
<Y>0.00686328812</Y>
|
|
<Z>3.59965835e-020</Z>
|
|
</Vector3>
|
|
<token name="formFactorRaw">0</token>
|
|
<token name="shape">1</token>
|
|
<Vector3 name="size">
|
|
<X>1</X>
|
|
<Y>2</Y>
|
|
<Z>1</Z>
|
|
</Vector3>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="Part" referent="RBX99">
|
|
<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>6.49924374</X>
|
|
<Y>39.0562325</Y>
|
|
<Z>-8.15058422</Z>
|
|
<R00>-0.454648674</R00>
|
|
<R01>-0.540302277</R01>
|
|
<R02>-0.708073378</R02>
|
|
<R10>0.291926563</R10>
|
|
<R11>-0.841470957</R11>
|
|
<R12>0.454648674</R12>
|
|
<R20>-0.841470957</R20>
|
|
<R21>0</R21>
|
|
<R22>0.540302277</R22>
|
|
</CoordinateFrame>
|
|
<bool name="CanCollide">false</bool>
|
|
<float name="Elasticity">0.5</float>
|
|
<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>
|
|
<token name="Material">256</token>
|
|
<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>4.07127958e-025</X>
|
|
<Y>3.33696291e-022</Y>
|
|
<Z>6.94702468e-025</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>3.63381671e-020</X>
|
|
<Y>0.00686328812</Y>
|
|
<Z>3.61484164e-020</Z>
|
|
</Vector3>
|
|
<token name="formFactorRaw">0</token>
|
|
<token name="shape">1</token>
|
|
<Vector3 name="size">
|
|
<X>1</X>
|
|
<Y>2</Y>
|
|
<Z>1</Z>
|
|
</Vector3>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="Humanoid" referent="RBX100">
|
|
<Properties>
|
|
<float name="Health">100</float>
|
|
<float name="MaxHealth">100</float>
|
|
<string name="Name">Humanoid</string>
|
|
<token name="NameOcclusion">0</token>
|
|
<float name="WalkSpeed">16</float>
|
|
</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">29</int>
|
|
<CoordinateFrame name="CFrame">
|
|
<X>6.41182232</X>
|
|
<Y>36.1413765</Y>
|
|
<Z>-6.73779345</Z>
|
|
<R00>0.708073378</R00>
|
|
<R01>-0.540302277</R01>
|
|
<R02>-0.454648674</R02>
|
|
<R10>-0.454648674</R10>
|
|
<R11>-0.841470957</R11>
|
|
<R12>0.291926563</R12>
|
|
<R20>-0.540302277</R20>
|
|
<R21>0</R21>
|
|
<R22>-0.841470957</R22>
|
|
</CoordinateFrame>
|
|
<bool name="CanCollide">true</bool>
|
|
<float name="Elasticity">0.5</float>
|
|
<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>
|
|
<token name="Material">256</token>
|
|
<string name="Name">zarm</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>4.07127958e-025</X>
|
|
<Y>3.33696291e-022</Y>
|
|
<Z>6.94702468e-025</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>3.68116343e-020</X>
|
|
<Y>0.00686328812</Y>
|
|
<Z>3.61764016e-020</Z>
|
|
</Vector3>
|
|
<token name="formFactorRaw">0</token>
|
|
<token name="shape">1</token>
|
|
<Vector3 name="size">
|
|
<X>2</X>
|
|
<Y>1</Y>
|
|
<Z>1</Z>
|
|
</Vector3>
|
|
</Properties>
|
|
<Item class="Script" referent="RBX102">
|
|
<Properties>
|
|
<bool name="Disabled">false</bool>
|
|
<Content name="LinkedSource"><null></null></Content>
|
|
<string name="Name">Script</string>
|
|
<ProtectedString name="Source">wait(1)
|
|
owner=script.Parent.Parent.Name
|
|
|
|
function onTouched(part)
|
|
	if part.Parent ~= nil then
|
|
		local h = part.Parent:findFirstChild("Humanoid")
|
|
			if h~=nil then
|
|
				if cantouch~=0 then
|
|
					if h.Parent.Name~=owner then
|
|
						
|
|
						if h.Parent:findFirstChild("zarm")~=nil then return end
|
|
|
|
						cantouch=0
|
|
|
|
						local larm=h.Parent:findFirstChild("Left Arm")
|
|
						local rarm=h.Parent:findFirstChild("Right Arm")
|
|
						
|
|
						if larm~=nil then
|
|
							larm:remove()
|
|
						end
|
|
						if rarm~=nil then
|
|
							rarm:remove()
|
|
						end
|
|
						local zee=script.Parent.Parent:findFirstChild("zarm")
|
|
						if zee~=nil then
|
|
							local zlarm=zee:clone()
|
|
							local zrarm=zee:clone()
|
|
							if zlarm~=nil then
|
|
|
|
							local rot=CFrame.new(0, 0, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
|
|
								zlarm.CFrame=h.Parent.Torso.CFrame * CFrame.new(Vector3.new(-1.5,0.5,-0.5)) * rot
|
|
								zrarm.CFrame=h.Parent.Torso.CFrame * CFrame.new(Vector3.new(1.5,0.5,-0.5)) * rot
|
|
								zlarm.Parent=h.Parent
|
|
								zrarm.Parent=h.Parent
|
|
								zlarm:makeJoints()
|
|
								zrarm:makeJoints()
|
|
								zlarm.Anchored=false
|
|
								zrarm.Anchored=false
|
|
								wait(0.1)
|
|
								h.Parent.Head.Color=zee.Color
|
|
							else print("no zee"); return end
|
|
						end
|
|
						wait(1)
|
|
						cantouch=1
|
|
					end
|
|
				end
|
|
			end
|
|
	end
|
|
end
|
|
|
|
script.Parent.Touched:connect(onTouched)</ProtectedString>
|
|
</Properties>
|
|
</Item>
|
|
</Item>
|
|
<Item class="Part" referent="RBX103">
|
|
<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">29</int>
|
|
<CoordinateFrame name="CFrame">
|
|
<X>5.04787636</X>
|
|
<Y>37.0171547</Y>
|
|
<Z>-9.26220608</Z>
|
|
<R00>0.708073378</R00>
|
|
<R01>-0.540302277</R01>
|
|
<R02>-0.454648674</R02>
|
|
<R10>-0.454648674</R10>
|
|
<R11>-0.841470957</R11>
|
|
<R12>0.291926563</R12>
|
|
<R20>-0.540302277</R20>
|
|
<R21>0</R21>
|
|
<R22>-0.841470957</R22>
|
|
</CoordinateFrame>
|
|
<bool name="CanCollide">true</bool>
|
|
<float name="Elasticity">0.5</float>
|
|
<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>
|
|
<token name="Material">256</token>
|
|
<string name="Name">zarm</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>4.07127958e-025</X>
|
|
<Y>3.33696291e-022</Y>
|
|
<Z>6.94702468e-025</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>3.59686403e-020</X>
|
|
<Y>0.00686328812</Y>
|
|
<Z>3.66319002e-020</Z>
|
|
</Vector3>
|
|
<token name="formFactorRaw">0</token>
|
|
<token name="shape">1</token>
|
|
<Vector3 name="size">
|
|
<X>2</X>
|
|
<Y>1</Y>
|
|
<Z>1</Z>
|
|
</Vector3>
|
|
</Properties>
|
|
<Item class="Script" referent="RBX104">
|
|
<Properties>
|
|
<bool name="Disabled">false</bool>
|
|
<Content name="LinkedSource"><null></null></Content>
|
|
<string name="Name">Script</string>
|
|
<ProtectedString name="Source">wait(1)
|
|
owner=script.Parent.Parent.Name
|
|
|
|
function onTouched(part)
|
|
	if part.Parent ~= nil then
|
|
		local h = part.Parent:findFirstChild("Humanoid")
|
|
			if h~=nil then
|
|
				if cantouch~=0 then
|
|
					if h.Parent.Name~=owner then
|
|
						
|
|
						if h.Parent:findFirstChild("zarm")~=nil then return end
|
|
|
|
						cantouch=0
|
|
|
|
						local larm=h.Parent:findFirstChild("Left Arm")
|
|
						local rarm=h.Parent:findFirstChild("Right Arm")
|
|
						
|
|
						if larm~=nil then
|
|
							larm:remove()
|
|
						end
|
|
						if rarm~=nil then
|
|
							rarm:remove()
|
|
						end
|
|
						local zee=script.Parent.Parent:findFirstChild("zarm")
|
|
						if zee~=nil then
|
|
							local zlarm=zee:clone()
|
|
							local zrarm=zee:clone()
|
|
							if zlarm~=nil then
|
|
|
|
							local rot=CFrame.new(0, 0, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
|
|
								zlarm.CFrame=h.Parent.Torso.CFrame * CFrame.new(Vector3.new(-1.5,0.5,-0.5)) * rot
|
|
								zrarm.CFrame=h.Parent.Torso.CFrame * CFrame.new(Vector3.new(1.5,0.5,-0.5)) * rot
|
|
								zlarm.Parent=h.Parent
|
|
								zrarm.Parent=h.Parent
|
|
								zlarm:makeJoints()
|
|
								zrarm:makeJoints()
|
|
								zlarm.Anchored=false
|
|
								zrarm.Anchored=false
|
|
								wait(0.1)
|
|
								h.Parent.Head.Color=zee.Color
|
|
							else print("no zee"); return end
|
|
						end
|
|
						wait(1)
|
|
						cantouch=1
|
|
					end
|
|
				end
|
|
			end
|
|
	end
|
|
end
|
|
|
|
script.Parent.Touched:connect(onTouched)</ProtectedString>
|
|
</Properties>
|
|
</Item>
|
|
</Item>
|
|
<Item class="ObjectValue" referent="RBX105">
|
|
<Properties>
|
|
<string name="Name">IsNZ</string>
|
|
<Ref name="Value">null</Ref>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="IntValue" referent="RBX106">
|
|
<Properties>
|
|
<string name="Name">Mode</string>
|
|
<int name="Value">0</int>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="Script" referent="RBX107">
|
|
<Properties>
|
|
<bool name="Disabled">false</bool>
|
|
<Content name="LinkedSource"><null></null></Content>
|
|
<string name="Name">Script</string>
|
|
<ProtectedString name="Source">local larm = script.Parent:FindFirstChild("Left Arm")
|
|
local rarm = script.Parent:FindFirstChild("Right Arm")
|
|
|
|
function findNearestTorso(pos)
|
|
	local list = game.Workspace:children()
|
|
	local torso = nil
|
|
	local dist = 1000
|
|
	local temp = nil
|
|
	local human = nil
|
|
	local temp2 = nil
|
|
	for x = 1, #list do
|
|
		temp2 = list[x]
|
|
		if (temp2.className == "Model") and (temp2 ~= script.Parent) then
|
|
			temp = temp2:findFirstChild("Right Arm")
|
|
			human = temp2:findFirstChild("Humanoid")
|
|
			if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then
|
|
				if (temp.Position - pos).magnitude < dist then
|
|
					torso = temp
|
|
					dist = (temp.Position - pos).magnitude
|
|
				end
|
|
			end
|
|
		end
|
|
	end
|
|
	return torso
|
|
end
|
|
|
|
|
|
|
|
|
|
while true do
|
|
	wait(math.random(1,5))
|
|
	local target = findNearestTorso(script.Parent.Torso.Position)
|
|
	if target ~= nil then
|
|
		script.Parent.Humanoid:MoveTo(target.Position, target)
|
|
	end
|
|
|
|
end
|
|
</ProtectedString>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="Script" referent="RBX108">
|
|
<Properties>
|
|
<bool name="Disabled">false</bool>
|
|
<Content name="LinkedSource"><null></null></Content>
|
|
<string name="Name">Health</string>
|
|
<ProtectedString name="Source">function waitForChild(parent, childName)
|
|
	while true do
|
|
		local child = parent:findFirstChild(childName)
|
|
		if child then
|
|
			return child
|
|
		end
|
|
		parent.ChildAdded:wait()
|
|
	end
|
|
end
|
|
|
|
-- declarations
|
|
|
|
local Figure = script.Parent
|
|
local Head = waitForChild(Figure, "Head")
|
|
local Humanoid = waitForChild(Figure, "Humanoid")
|
|
Humanoid.Health=500
|
|
-- regeneration
|
|
while true do
|
|
	local s = wait(4)
|
|
	local health = Humanoid.Health
|
|
	if health > 0 and health < Humanoid.MaxHealth then
|
|
		health = health + 0.08 * s * Humanoid.MaxHealth
|
|
		if health * 1.05 < Humanoid.MaxHealth then
|
|
			Humanoid.Health = health
|
|
		else
|
|
			Humanoid.Health = Humanoid.MaxHealth
|
|
		end
|
|
	end
|
|
end
|
|
</ProtectedString>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="Script" referent="RBX109">
|
|
<Properties>
|
|
<bool name="Disabled">false</bool>
|
|
<Content name="LinkedSource"><null></null></Content>
|
|
<string name="Name">Respawn</string>
|
|
<ProtectedString name="Source">name="Humanoid"
|
|
|
|
robo=script.Parent:clone()
|
|
|
|
while true do
|
|
	wait(1)
|
|
	if script.Parent.Humanoid.Health<1 then
|
|
		robot=robo:clone()
|
|
		robot.Parent=script.Parent.Parent
|
|
		robot:makeJoints()
|
|
		script.Parent:remove()
|
|
	end
|
|
end
|
|
		
|
|
|
|
|
|
</ProtectedString>
|
|
</Properties>
|
|
</Item>
|
|
</Item>
|
|
<Item class="Model" referent="RBX110">
|
|
<Properties>
|
|
<CoordinateFrame name="ModelInPrimary">
|
|
<X>0</X>
|
|
<Y>0</Y>
|
|
<Z>0</Z>
|
|
<R00>1</R00>
|
|
<R01>0</R01>
|
|
<R02>0</R02>
|
|
<R10>0</R10>
|
|
<R11>1</R11>
|
|
<R12>0</R12>
|
|
<R20>0</R20>
|
|
<R21>0</R21>
|
|
<R22>1</R22>
|
|
</CoordinateFrame>
|
|
<string name="Name">Zombie</string>
|
|
<Ref name="PrimaryPart">null</Ref>
|
|
</Properties>
|
|
<Item class="Part" referent="RBX111">
|
|
<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">29</int>
|
|
<CoordinateFrame name="CFrame">
|
|
<X>27.5</X>
|
|
<Y>26</Y>
|
|
<Z>-33</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>
|
|
<float name="Elasticity">0.5</float>
|
|
<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>
|
|
<token name="Material">256</token>
|
|
<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>4.07127958e-025</X>
|
|
<Y>3.33696291e-022</Y>
|
|
<Z>6.94702468e-025</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>3.64808751e-020</X>
|
|
<Y>0.00686328812</Y>
|
|
<Z>3.64317968e-020</Z>
|
|
</Vector3>
|
|
<token name="formFactorRaw">0</token>
|
|
<token name="shape">1</token>
|
|
<Vector3 name="size">
|
|
<X>2</X>
|
|
<Y>1</Y>
|
|
<Z>1</Z>
|
|
</Vector3>
|
|
</Properties>
|
|
<Item class="SpecialMesh" referent="RBX112">
|
|
<Properties>
|
|
<token name="LODX">2</token>
|
|
<token name="LODY">2</token>
|
|
<Content name="MeshId"><null></null></Content>
|
|
<token name="MeshType">0</token>
|
|
<string name="Name">Mesh</string>
|
|
<Vector3 name="Offset">
|
|
<X>0</X>
|
|
<Y>0</Y>
|
|
<Z>0</Z>
|
|
</Vector3>
|
|
<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>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="Decal" referent="RBX113">
|
|
<Properties>
|
|
<token name="Face">5</token>
|
|
<string name="Name">face</string>
|
|
<float name="Shiny">20</float>
|
|
<float name="Specular">0</float>
|
|
<Content name="Texture"><null></null></Content>
|
|
<float name="Transparency">0</float>
|
|
</Properties>
|
|
</Item>
|
|
</Item>
|
|
<Item class="Part" referent="RBX114">
|
|
<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>27.5</X>
|
|
<Y>27.5</Y>
|
|
<Z>-33</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>
|
|
<float name="Elasticity">0.5</float>
|
|
<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>
|
|
<token name="Material">256</token>
|
|
<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>4.07127958e-025</X>
|
|
<Y>3.33696291e-022</Y>
|
|
<Z>6.94702468e-025</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>3.64798347e-020</X>
|
|
<Y>0.00686328812</Y>
|
|
<Z>3.64324075e-020</Z>
|
|
</Vector3>
|
|
<token name="formFactorRaw">0</token>
|
|
<token name="shape">1</token>
|
|
<Vector3 name="size">
|
|
<X>2</X>
|
|
<Y>2</Y>
|
|
<Z>1</Z>
|
|
</Vector3>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="Part" referent="RBX115">
|
|
<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>27.5</X>
|
|
<Y>29.5</Y>
|
|
<Z>-32.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">false</bool>
|
|
<float name="Elasticity">0.5</float>
|
|
<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>
|
|
<token name="Material">256</token>
|
|
<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>4.07127958e-025</X>
|
|
<Y>3.33696291e-022</Y>
|
|
<Z>6.94702468e-025</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>3.66452934e-020</X>
|
|
<Y>0.00686328812</Y>
|
|
<Z>3.64332218e-020</Z>
|
|
</Vector3>
|
|
<token name="formFactorRaw">0</token>
|
|
<token name="shape">1</token>
|
|
<Vector3 name="size">
|
|
<X>1</X>
|
|
<Y>2</Y>
|
|
<Z>1</Z>
|
|
</Vector3>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="Part" referent="RBX116">
|
|
<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>27.5</X>
|
|
<Y>29.5</Y>
|
|
<Z>-33.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">false</bool>
|
|
<float name="Elasticity">0.5</float>
|
|
<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>
|
|
<token name="Material">256</token>
|
|
<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>4.07127958e-025</X>
|
|
<Y>3.33696291e-022</Y>
|
|
<Z>6.94702468e-025</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>3.63115971e-020</X>
|
|
<Y>0.00686328812</Y>
|
|
<Z>3.64332218e-020</Z>
|
|
</Vector3>
|
|
<token name="formFactorRaw">0</token>
|
|
<token name="shape">1</token>
|
|
<Vector3 name="size">
|
|
<X>1</X>
|
|
<Y>2</Y>
|
|
<Z>1</Z>
|
|
</Vector3>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="Humanoid" referent="RBX117">
|
|
<Properties>
|
|
<float name="Health">100</float>
|
|
<float name="MaxHealth">100</float>
|
|
<string name="Name">Humanoid</string>
|
|
<token name="NameOcclusion">0</token>
|
|
<float name="WalkSpeed">16</float>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="Part" referent="RBX118">
|
|
<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">29</int>
|
|
<CoordinateFrame name="CFrame">
|
|
<X>28</X>
|
|
<Y>27</Y>
|
|
<Z>-31.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">true</bool>
|
|
<float name="Elasticity">0.5</float>
|
|
<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>
|
|
<token name="Material">256</token>
|
|
<string name="Name">zarm</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>4.07127958e-025</X>
|
|
<Y>3.33696291e-022</Y>
|
|
<Z>6.94702468e-025</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>3.69807249e-020</X>
|
|
<Y>0.00686328812</Y>
|
|
<Z>3.62653558e-020</Z>
|
|
</Vector3>
|
|
<token name="formFactorRaw">0</token>
|
|
<token name="shape">1</token>
|
|
<Vector3 name="size">
|
|
<X>2</X>
|
|
<Y>1</Y>
|
|
<Z>1</Z>
|
|
</Vector3>
|
|
</Properties>
|
|
<Item class="Script" referent="RBX119">
|
|
<Properties>
|
|
<bool name="Disabled">false</bool>
|
|
<Content name="LinkedSource"><null></null></Content>
|
|
<string name="Name">Script</string>
|
|
<ProtectedString name="Source">wait(1)
|
|
owner=script.Parent.Parent.Name
|
|
|
|
function onTouched(part)
|
|
	if part.Parent ~= nil then
|
|
		local h = part.Parent:findFirstChild("Humanoid")
|
|
			if h~=nil then
|
|
				if cantouch~=0 then
|
|
					if h.Parent.Name~=owner then
|
|
						
|
|
						if h.Parent:findFirstChild("zarm")~=nil then return end
|
|
|
|
						cantouch=0
|
|
|
|
						local larm=h.Parent:findFirstChild("Left Arm")
|
|
						local rarm=h.Parent:findFirstChild("Right Arm")
|
|
						
|
|
						if larm~=nil then
|
|
							larm:remove()
|
|
						end
|
|
						if rarm~=nil then
|
|
							rarm:remove()
|
|
						end
|
|
						local zee=script.Parent.Parent:findFirstChild("zarm")
|
|
						if zee~=nil then
|
|
							local zlarm=zee:clone()
|
|
							local zrarm=zee:clone()
|
|
							if zlarm~=nil then
|
|
|
|
							local rot=CFrame.new(0, 0, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
|
|
								zlarm.CFrame=h.Parent.Torso.CFrame * CFrame.new(Vector3.new(-1.5,0.5,-0.5)) * rot
|
|
								zrarm.CFrame=h.Parent.Torso.CFrame * CFrame.new(Vector3.new(1.5,0.5,-0.5)) * rot
|
|
								zlarm.Parent=h.Parent
|
|
								zrarm.Parent=h.Parent
|
|
								zlarm:makeJoints()
|
|
								zrarm:makeJoints()
|
|
								zlarm.Anchored=false
|
|
								zrarm.Anchored=false
|
|
								wait(0.1)
|
|
								h.Parent.Head.Color=zee.Color
|
|
							else print("no zee"); return end
|
|
						end
|
|
						wait(1)
|
|
						cantouch=1
|
|
					end
|
|
				end
|
|
			end
|
|
	end
|
|
end
|
|
|
|
script.Parent.Touched:connect(onTouched)</ProtectedString>
|
|
</Properties>
|
|
</Item>
|
|
</Item>
|
|
<Item class="Part" referent="RBX120">
|
|
<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">29</int>
|
|
<CoordinateFrame name="CFrame">
|
|
<X>28</X>
|
|
<Y>27</Y>
|
|
<Z>-34.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">true</bool>
|
|
<float name="Elasticity">0.5</float>
|
|
<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>
|
|
<token name="Material">256</token>
|
|
<string name="Name">zarm</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>4.07127958e-025</X>
|
|
<Y>3.33696291e-022</Y>
|
|
<Z>6.94702468e-025</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>3.5979636e-020</X>
|
|
<Y>0.00686328812</Y>
|
|
<Z>3.62653558e-020</Z>
|
|
</Vector3>
|
|
<token name="formFactorRaw">0</token>
|
|
<token name="shape">1</token>
|
|
<Vector3 name="size">
|
|
<X>2</X>
|
|
<Y>1</Y>
|
|
<Z>1</Z>
|
|
</Vector3>
|
|
</Properties>
|
|
<Item class="Script" referent="RBX121">
|
|
<Properties>
|
|
<bool name="Disabled">false</bool>
|
|
<Content name="LinkedSource"><null></null></Content>
|
|
<string name="Name">Script</string>
|
|
<ProtectedString name="Source">wait(1)
|
|
owner=script.Parent.Parent.Name
|
|
|
|
function onTouched(part)
|
|
	if part.Parent ~= nil then
|
|
		local h = part.Parent:findFirstChild("Humanoid")
|
|
			if h~=nil then
|
|
				if cantouch~=0 then
|
|
					if h.Parent.Name~=owner then
|
|
						
|
|
						if h.Parent:findFirstChild("zarm")~=nil then return end
|
|
|
|
						cantouch=0
|
|
|
|
						local larm=h.Parent:findFirstChild("Left Arm")
|
|
						local rarm=h.Parent:findFirstChild("Right Arm")
|
|
						
|
|
						if larm~=nil then
|
|
							larm:remove()
|
|
						end
|
|
						if rarm~=nil then
|
|
							rarm:remove()
|
|
						end
|
|
						local zee=script.Parent.Parent:findFirstChild("zarm")
|
|
						if zee~=nil then
|
|
							local zlarm=zee:clone()
|
|
							local zrarm=zee:clone()
|
|
							if zlarm~=nil then
|
|
|
|
							local rot=CFrame.new(0, 0, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
|
|
								zlarm.CFrame=h.Parent.Torso.CFrame * CFrame.new(Vector3.new(-1.5,0.5,-0.5)) * rot
|
|
								zrarm.CFrame=h.Parent.Torso.CFrame * CFrame.new(Vector3.new(1.5,0.5,-0.5)) * rot
|
|
								zlarm.Parent=h.Parent
|
|
								zrarm.Parent=h.Parent
|
|
								zlarm:makeJoints()
|
|
								zrarm:makeJoints()
|
|
								zlarm.Anchored=false
|
|
								zrarm.Anchored=false
|
|
								wait(0.1)
|
|
								h.Parent.Head.Color=zee.Color
|
|
							else print("no zee"); return end
|
|
						end
|
|
						wait(1)
|
|
						cantouch=1
|
|
					end
|
|
				end
|
|
			end
|
|
	end
|
|
end
|
|
|
|
script.Parent.Touched:connect(onTouched)</ProtectedString>
|
|
</Properties>
|
|
</Item>
|
|
</Item>
|
|
<Item class="ObjectValue" referent="RBX122">
|
|
<Properties>
|
|
<string name="Name">IsNZ</string>
|
|
<Ref name="Value">null</Ref>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="IntValue" referent="RBX123">
|
|
<Properties>
|
|
<string name="Name">Mode</string>
|
|
<int name="Value">0</int>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="Script" referent="RBX124">
|
|
<Properties>
|
|
<bool name="Disabled">false</bool>
|
|
<Content name="LinkedSource"><null></null></Content>
|
|
<string name="Name">Script</string>
|
|
<ProtectedString name="Source">local larm = script.Parent:FindFirstChild("Left Arm")
|
|
local rarm = script.Parent:FindFirstChild("Right Arm")
|
|
|
|
function findNearestTorso(pos)
|
|
	local list = game.Workspace:children()
|
|
	local torso = nil
|
|
	local dist = 1000
|
|
	local temp = nil
|
|
	local human = nil
|
|
	local temp2 = nil
|
|
	for x = 1, #list do
|
|
		temp2 = list[x]
|
|
		if (temp2.className == "Model") and (temp2 ~= script.Parent) then
|
|
			temp = temp2:findFirstChild("Right Arm")
|
|
			human = temp2:findFirstChild("Humanoid")
|
|
			if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then
|
|
				if (temp.Position - pos).magnitude < dist then
|
|
					torso = temp
|
|
					dist = (temp.Position - pos).magnitude
|
|
				end
|
|
			end
|
|
		end
|
|
	end
|
|
	return torso
|
|
end
|
|
|
|
|
|
|
|
|
|
while true do
|
|
	wait(math.random(1,5))
|
|
	local target = findNearestTorso(script.Parent.Torso.Position)
|
|
	if target ~= nil then
|
|
		script.Parent.Humanoid:MoveTo(target.Position, target)
|
|
	end
|
|
|
|
end
|
|
</ProtectedString>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="Script" referent="RBX125">
|
|
<Properties>
|
|
<bool name="Disabled">false</bool>
|
|
<Content name="LinkedSource"><null></null></Content>
|
|
<string name="Name">Health</string>
|
|
<ProtectedString name="Source">function waitForChild(parent, childName)
|
|
	while true do
|
|
		local child = parent:findFirstChild(childName)
|
|
		if child then
|
|
			return child
|
|
		end
|
|
		parent.ChildAdded:wait()
|
|
	end
|
|
end
|
|
|
|
-- declarations
|
|
|
|
local Figure = script.Parent
|
|
local Head = waitForChild(Figure, "Head")
|
|
local Humanoid = waitForChild(Figure, "Humanoid")
|
|
Humanoid.Health=500
|
|
-- regeneration
|
|
while true do
|
|
	local s = wait(4)
|
|
	local health = Humanoid.Health
|
|
	if health > 0 and health < Humanoid.MaxHealth then
|
|
		health = health + 0.08 * s * Humanoid.MaxHealth
|
|
		if health * 1.05 < Humanoid.MaxHealth then
|
|
			Humanoid.Health = health
|
|
		else
|
|
			Humanoid.Health = Humanoid.MaxHealth
|
|
		end
|
|
	end
|
|
end
|
|
</ProtectedString>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="Script" referent="RBX126">
|
|
<Properties>
|
|
<bool name="Disabled">false</bool>
|
|
<Content name="LinkedSource"><null></null></Content>
|
|
<string name="Name">Respawn</string>
|
|
<ProtectedString name="Source">name="Humanoid"
|
|
|
|
robo=script.Parent:clone()
|
|
|
|
while true do
|
|
	wait(1)
|
|
	if script.Parent.Humanoid.Health<1 then
|
|
		robot=robo:clone()
|
|
		robot.Parent=script.Parent.Parent
|
|
		robot:makeJoints()
|
|
		script.Parent:remove()
|
|
	end
|
|
end
|
|
		
|
|
|
|
|
|
</ProtectedString>
|
|
</Properties>
|
|
</Item>
|
|
</Item>
|
|
<Item class="Model" referent="RBX127">
|
|
<Properties>
|
|
<CoordinateFrame name="ModelInPrimary">
|
|
<X>0</X>
|
|
<Y>0</Y>
|
|
<Z>0</Z>
|
|
<R00>1</R00>
|
|
<R01>0</R01>
|
|
<R02>0</R02>
|
|
<R10>0</R10>
|
|
<R11>1</R11>
|
|
<R12>0</R12>
|
|
<R20>0</R20>
|
|
<R21>0</R21>
|
|
<R22>1</R22>
|
|
</CoordinateFrame>
|
|
<string name="Name">Zombie</string>
|
|
<Ref name="PrimaryPart">null</Ref>
|
|
</Properties>
|
|
<Item class="Part" referent="RBX128">
|
|
<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">29</int>
|
|
<CoordinateFrame name="CFrame">
|
|
<X>4.83551025</X>
|
|
<Y>9.56512547</Y>
|
|
<Z>-7.72984886</Z>
|
|
<R00>-0.454648674</R00>
|
|
<R01>-0.540302277</R01>
|
|
<R02>-0.708073378</R02>
|
|
<R10>0.291926563</R10>
|
|
<R11>-0.841470957</R11>
|
|
<R12>0.454648674</R12>
|
|
<R20>-0.841470957</R20>
|
|
<R21>0</R21>
|
|
<R22>0.540302277</R22>
|
|
</CoordinateFrame>
|
|
<bool name="CanCollide">true</bool>
|
|
<float name="Elasticity">0.5</float>
|
|
<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>
|
|
<token name="Material">256</token>
|
|
<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>4.07127958e-025</X>
|
|
<Y>3.33696291e-022</Y>
|
|
<Z>6.94702468e-025</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>3.64807103e-020</X>
|
|
<Y>0.00686328812</Y>
|
|
<Z>3.67023398e-020</Z>
|
|
</Vector3>
|
|
<token name="formFactorRaw">0</token>
|
|
<token name="shape">1</token>
|
|
<Vector3 name="size">
|
|
<X>2</X>
|
|
<Y>1</Y>
|
|
<Z>1</Z>
|
|
</Vector3>
|
|
</Properties>
|
|
<Item class="SpecialMesh" referent="RBX129">
|
|
<Properties>
|
|
<token name="LODX">2</token>
|
|
<token name="LODY">2</token>
|
|
<Content name="MeshId"><null></null></Content>
|
|
<token name="MeshType">0</token>
|
|
<string name="Name">Mesh</string>
|
|
<Vector3 name="Offset">
|
|
<X>0</X>
|
|
<Y>0</Y>
|
|
<Z>0</Z>
|
|
</Vector3>
|
|
<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>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="Decal" referent="RBX130">
|
|
<Properties>
|
|
<token name="Face">5</token>
|
|
<string name="Name">face</string>
|
|
<float name="Shiny">20</float>
|
|
<float name="Specular">0</float>
|
|
<Content name="Texture"><null></null></Content>
|
|
<float name="Transparency">0</float>
|
|
</Properties>
|
|
</Item>
|
|
</Item>
|
|
<Item class="Part" referent="RBX131">
|
|
<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>5.64596367</X>
|
|
<Y>10.8273315</Y>
|
|
<Z>-7.72984886</Z>
|
|
<R00>-0.454648674</R00>
|
|
<R01>-0.540302277</R01>
|
|
<R02>-0.708073378</R02>
|
|
<R10>0.291926563</R10>
|
|
<R11>-0.841470957</R11>
|
|
<R12>0.454648674</R12>
|
|
<R20>-0.841470957</R20>
|
|
<R21>0</R21>
|
|
<R22>0.540302277</R22>
|
|
</CoordinateFrame>
|
|
<bool name="CanCollide">true</bool>
|
|
<float name="Elasticity">0.5</float>
|
|
<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>
|
|
<token name="Material">256</token>
|
|
<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>4.07127958e-025</X>
|
|
<Y>3.33696291e-022</Y>
|
|
<Z>6.94702468e-025</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>3.64798347e-020</X>
|
|
<Y>0.00686328812</Y>
|
|
<Z>3.64324075e-020</Z>
|
|
</Vector3>
|
|
<token name="formFactorRaw">0</token>
|
|
<token name="shape">1</token>
|
|
<Vector3 name="size">
|
|
<X>2</X>
|
|
<Y>2</Y>
|
|
<Z>1</Z>
|
|
</Vector3>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="Part" referent="RBX132">
|
|
<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>6.95389271</X>
|
|
<Y>12.3643103</Y>
|
|
<Z>-7.3091135</Z>
|
|
<R00>-0.454648674</R00>
|
|
<R01>-0.540302277</R01>
|
|
<R02>-0.708073378</R02>
|
|
<R10>0.291926563</R10>
|
|
<R11>-0.841470957</R11>
|
|
<R12>0.454648674</R12>
|
|
<R20>-0.841470957</R20>
|
|
<R21>0</R21>
|
|
<R22>0.540302277</R22>
|
|
</CoordinateFrame>
|
|
<bool name="CanCollide">false</bool>
|
|
<float name="Elasticity">0.5</float>
|
|
<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>
|
|
<token name="Material">256</token>
|
|
<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>4.07127958e-025</X>
|
|
<Y>3.33696291e-022</Y>
|
|
<Z>6.94702468e-025</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>3.66191662e-020</X>
|
|
<Y>0.00686328812</Y>
|
|
<Z>3.59965835e-020</Z>
|
|
</Vector3>
|
|
<token name="formFactorRaw">0</token>
|
|
<token name="shape">1</token>
|
|
<Vector3 name="size">
|
|
<X>1</X>
|
|
<Y>2</Y>
|
|
<Z>1</Z>
|
|
</Vector3>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="Part" referent="RBX133">
|
|
<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>6.49924374</X>
|
|
<Y>12.6562366</Y>
|
|
<Z>-8.15058422</Z>
|
|
<R00>-0.454648674</R00>
|
|
<R01>-0.540302277</R01>
|
|
<R02>-0.708073378</R02>
|
|
<R10>0.291926563</R10>
|
|
<R11>-0.841470957</R11>
|
|
<R12>0.454648674</R12>
|
|
<R20>-0.841470957</R20>
|
|
<R21>0</R21>
|
|
<R22>0.540302277</R22>
|
|
</CoordinateFrame>
|
|
<bool name="CanCollide">false</bool>
|
|
<float name="Elasticity">0.5</float>
|
|
<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>
|
|
<token name="Material">256</token>
|
|
<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>4.07127958e-025</X>
|
|
<Y>3.33696291e-022</Y>
|
|
<Z>6.94702468e-025</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>3.63381671e-020</X>
|
|
<Y>0.00686328812</Y>
|
|
<Z>3.61484164e-020</Z>
|
|
</Vector3>
|
|
<token name="formFactorRaw">0</token>
|
|
<token name="shape">1</token>
|
|
<Vector3 name="size">
|
|
<X>1</X>
|
|
<Y>2</Y>
|
|
<Z>1</Z>
|
|
</Vector3>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="Humanoid" referent="RBX134">
|
|
<Properties>
|
|
<float name="Health">100</float>
|
|
<float name="MaxHealth">100</float>
|
|
<string name="Name">Humanoid</string>
|
|
<token name="NameOcclusion">0</token>
|
|
<float name="WalkSpeed">16</float>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="Part" referent="RBX135">
|
|
<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">29</int>
|
|
<CoordinateFrame name="CFrame">
|
|
<X>6.41182232</X>
|
|
<Y>9.74138165</Y>
|
|
<Z>-6.73779345</Z>
|
|
<R00>0.708073378</R00>
|
|
<R01>-0.540302277</R01>
|
|
<R02>-0.454648674</R02>
|
|
<R10>-0.454648674</R10>
|
|
<R11>-0.841470957</R11>
|
|
<R12>0.291926563</R12>
|
|
<R20>-0.540302277</R20>
|
|
<R21>0</R21>
|
|
<R22>-0.841470957</R22>
|
|
</CoordinateFrame>
|
|
<bool name="CanCollide">true</bool>
|
|
<float name="Elasticity">0.5</float>
|
|
<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>
|
|
<token name="Material">256</token>
|
|
<string name="Name">zarm</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>4.07127958e-025</X>
|
|
<Y>3.33696291e-022</Y>
|
|
<Z>6.94702468e-025</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>3.68116343e-020</X>
|
|
<Y>0.00686328812</Y>
|
|
<Z>3.61764016e-020</Z>
|
|
</Vector3>
|
|
<token name="formFactorRaw">0</token>
|
|
<token name="shape">1</token>
|
|
<Vector3 name="size">
|
|
<X>2</X>
|
|
<Y>1</Y>
|
|
<Z>1</Z>
|
|
</Vector3>
|
|
</Properties>
|
|
<Item class="Script" referent="RBX136">
|
|
<Properties>
|
|
<bool name="Disabled">false</bool>
|
|
<Content name="LinkedSource"><null></null></Content>
|
|
<string name="Name">Script</string>
|
|
<ProtectedString name="Source">wait(1)
|
|
owner=script.Parent.Parent.Name
|
|
|
|
function onTouched(part)
|
|
	if part.Parent ~= nil then
|
|
		local h = part.Parent:findFirstChild("Humanoid")
|
|
			if h~=nil then
|
|
				if cantouch~=0 then
|
|
					if h.Parent.Name~=owner then
|
|
						
|
|
						if h.Parent:findFirstChild("zarm")~=nil then return end
|
|
|
|
						cantouch=0
|
|
|
|
						local larm=h.Parent:findFirstChild("Left Arm")
|
|
						local rarm=h.Parent:findFirstChild("Right Arm")
|
|
						
|
|
						if larm~=nil then
|
|
							larm:remove()
|
|
						end
|
|
						if rarm~=nil then
|
|
							rarm:remove()
|
|
						end
|
|
						local zee=script.Parent.Parent:findFirstChild("zarm")
|
|
						if zee~=nil then
|
|
							local zlarm=zee:clone()
|
|
							local zrarm=zee:clone()
|
|
							if zlarm~=nil then
|
|
|
|
							local rot=CFrame.new(0, 0, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
|
|
								zlarm.CFrame=h.Parent.Torso.CFrame * CFrame.new(Vector3.new(-1.5,0.5,-0.5)) * rot
|
|
								zrarm.CFrame=h.Parent.Torso.CFrame * CFrame.new(Vector3.new(1.5,0.5,-0.5)) * rot
|
|
								zlarm.Parent=h.Parent
|
|
								zrarm.Parent=h.Parent
|
|
								zlarm:makeJoints()
|
|
								zrarm:makeJoints()
|
|
								zlarm.Anchored=false
|
|
								zrarm.Anchored=false
|
|
								wait(0.1)
|
|
								h.Parent.Head.Color=zee.Color
|
|
							else print("no zee"); return end
|
|
						end
|
|
						wait(1)
|
|
						cantouch=1
|
|
					end
|
|
				end
|
|
			end
|
|
	end
|
|
end
|
|
|
|
script.Parent.Touched:connect(onTouched)</ProtectedString>
|
|
</Properties>
|
|
</Item>
|
|
</Item>
|
|
<Item class="Part" referent="RBX137">
|
|
<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">29</int>
|
|
<CoordinateFrame name="CFrame">
|
|
<X>5.04787636</X>
|
|
<Y>10.6171618</Y>
|
|
<Z>-9.26220608</Z>
|
|
<R00>0.708073378</R00>
|
|
<R01>-0.540302277</R01>
|
|
<R02>-0.454648674</R02>
|
|
<R10>-0.454648674</R10>
|
|
<R11>-0.841470957</R11>
|
|
<R12>0.291926563</R12>
|
|
<R20>-0.540302277</R20>
|
|
<R21>0</R21>
|
|
<R22>-0.841470957</R22>
|
|
</CoordinateFrame>
|
|
<bool name="CanCollide">true</bool>
|
|
<float name="Elasticity">0.5</float>
|
|
<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>
|
|
<token name="Material">256</token>
|
|
<string name="Name">zarm</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>4.07127958e-025</X>
|
|
<Y>3.33696291e-022</Y>
|
|
<Z>6.94702468e-025</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>3.59686403e-020</X>
|
|
<Y>0.00686328812</Y>
|
|
<Z>3.66319002e-020</Z>
|
|
</Vector3>
|
|
<token name="formFactorRaw">0</token>
|
|
<token name="shape">1</token>
|
|
<Vector3 name="size">
|
|
<X>2</X>
|
|
<Y>1</Y>
|
|
<Z>1</Z>
|
|
</Vector3>
|
|
</Properties>
|
|
<Item class="Script" referent="RBX138">
|
|
<Properties>
|
|
<bool name="Disabled">false</bool>
|
|
<Content name="LinkedSource"><null></null></Content>
|
|
<string name="Name">Script</string>
|
|
<ProtectedString name="Source">wait(1)
|
|
owner=script.Parent.Parent.Name
|
|
|
|
function onTouched(part)
|
|
	if part.Parent ~= nil then
|
|
		local h = part.Parent:findFirstChild("Humanoid")
|
|
			if h~=nil then
|
|
				if cantouch~=0 then
|
|
					if h.Parent.Name~=owner then
|
|
						
|
|
						if h.Parent:findFirstChild("zarm")~=nil then return end
|
|
|
|
						cantouch=0
|
|
|
|
						local larm=h.Parent:findFirstChild("Left Arm")
|
|
						local rarm=h.Parent:findFirstChild("Right Arm")
|
|
						
|
|
						if larm~=nil then
|
|
							larm:remove()
|
|
						end
|
|
						if rarm~=nil then
|
|
							rarm:remove()
|
|
						end
|
|
						local zee=script.Parent.Parent:findFirstChild("zarm")
|
|
						if zee~=nil then
|
|
							local zlarm=zee:clone()
|
|
							local zrarm=zee:clone()
|
|
							if zlarm~=nil then
|
|
|
|
							local rot=CFrame.new(0, 0, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
|
|
								zlarm.CFrame=h.Parent.Torso.CFrame * CFrame.new(Vector3.new(-1.5,0.5,-0.5)) * rot
|
|
								zrarm.CFrame=h.Parent.Torso.CFrame * CFrame.new(Vector3.new(1.5,0.5,-0.5)) * rot
|
|
								zlarm.Parent=h.Parent
|
|
								zrarm.Parent=h.Parent
|
|
								zlarm:makeJoints()
|
|
								zrarm:makeJoints()
|
|
								zlarm.Anchored=false
|
|
								zrarm.Anchored=false
|
|
								wait(0.1)
|
|
								h.Parent.Head.Color=zee.Color
|
|
							else print("no zee"); return end
|
|
						end
|
|
						wait(1)
|
|
						cantouch=1
|
|
					end
|
|
				end
|
|
			end
|
|
	end
|
|
end
|
|
|
|
script.Parent.Touched:connect(onTouched)</ProtectedString>
|
|
</Properties>
|
|
</Item>
|
|
</Item>
|
|
<Item class="ObjectValue" referent="RBX139">
|
|
<Properties>
|
|
<string name="Name">IsNZ</string>
|
|
<Ref name="Value">null</Ref>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="IntValue" referent="RBX140">
|
|
<Properties>
|
|
<string name="Name">Mode</string>
|
|
<int name="Value">0</int>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="Script" referent="RBX141">
|
|
<Properties>
|
|
<bool name="Disabled">false</bool>
|
|
<Content name="LinkedSource"><null></null></Content>
|
|
<string name="Name">Script</string>
|
|
<ProtectedString name="Source">local larm = script.Parent:FindFirstChild("Left Arm")
|
|
local rarm = script.Parent:FindFirstChild("Right Arm")
|
|
|
|
function findNearestTorso(pos)
|
|
	local list = game.Workspace:children()
|
|
	local torso = nil
|
|
	local dist = 1000
|
|
	local temp = nil
|
|
	local human = nil
|
|
	local temp2 = nil
|
|
	for x = 1, #list do
|
|
		temp2 = list[x]
|
|
		if (temp2.className == "Model") and (temp2 ~= script.Parent) then
|
|
			temp = temp2:findFirstChild("Right Arm")
|
|
			human = temp2:findFirstChild("Humanoid")
|
|
			if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then
|
|
				if (temp.Position - pos).magnitude < dist then
|
|
					torso = temp
|
|
					dist = (temp.Position - pos).magnitude
|
|
				end
|
|
			end
|
|
		end
|
|
	end
|
|
	return torso
|
|
end
|
|
|
|
|
|
|
|
|
|
while true do
|
|
	wait(math.random(1,5))
|
|
	local target = findNearestTorso(script.Parent.Torso.Position)
|
|
	if target ~= nil then
|
|
		script.Parent.Humanoid:MoveTo(target.Position, target)
|
|
	end
|
|
|
|
end
|
|
</ProtectedString>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="Script" referent="RBX142">
|
|
<Properties>
|
|
<bool name="Disabled">false</bool>
|
|
<Content name="LinkedSource"><null></null></Content>
|
|
<string name="Name">Health</string>
|
|
<ProtectedString name="Source">function waitForChild(parent, childName)
|
|
	while true do
|
|
		local child = parent:findFirstChild(childName)
|
|
		if child then
|
|
			return child
|
|
		end
|
|
		parent.ChildAdded:wait()
|
|
	end
|
|
end
|
|
|
|
-- declarations
|
|
|
|
local Figure = script.Parent
|
|
local Head = waitForChild(Figure, "Head")
|
|
local Humanoid = waitForChild(Figure, "Humanoid")
|
|
Humanoid.Health=500
|
|
-- regeneration
|
|
while true do
|
|
	local s = wait(4)
|
|
	local health = Humanoid.Health
|
|
	if health > 0 and health < Humanoid.MaxHealth then
|
|
		health = health + 0.08 * s * Humanoid.MaxHealth
|
|
		if health * 1.05 < Humanoid.MaxHealth then
|
|
			Humanoid.Health = health
|
|
		else
|
|
			Humanoid.Health = Humanoid.MaxHealth
|
|
		end
|
|
	end
|
|
end
|
|
</ProtectedString>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="Script" referent="RBX143">
|
|
<Properties>
|
|
<bool name="Disabled">false</bool>
|
|
<Content name="LinkedSource"><null></null></Content>
|
|
<string name="Name">Respawn</string>
|
|
<ProtectedString name="Source">name="Humanoid"
|
|
|
|
robo=script.Parent:clone()
|
|
|
|
while true do
|
|
	wait(1)
|
|
	if script.Parent.Humanoid.Health<1 then
|
|
		robot=robo:clone()
|
|
		robot.Parent=script.Parent.Parent
|
|
		robot:makeJoints()
|
|
		script.Parent:remove()
|
|
	end
|
|
end
|
|
		
|
|
|
|
|
|
</ProtectedString>
|
|
</Properties>
|
|
</Item>
|
|
</Item>
|
|
<Item class="Model" referent="RBX144">
|
|
<Properties>
|
|
<CoordinateFrame name="ModelInPrimary">
|
|
<X>0</X>
|
|
<Y>0</Y>
|
|
<Z>0</Z>
|
|
<R00>1</R00>
|
|
<R01>0</R01>
|
|
<R02>0</R02>
|
|
<R10>0</R10>
|
|
<R11>1</R11>
|
|
<R12>0</R12>
|
|
<R20>0</R20>
|
|
<R21>0</R21>
|
|
<R22>1</R22>
|
|
</CoordinateFrame>
|
|
<string name="Name">Zombie</string>
|
|
<Ref name="PrimaryPart">null</Ref>
|
|
</Properties>
|
|
<Item class="Part" referent="RBX145">
|
|
<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">29</int>
|
|
<CoordinateFrame name="CFrame">
|
|
<X>8.83551025</X>
|
|
<Y>28.3651123</Y>
|
|
<Z>-30.7298489</Z>
|
|
<R00>-0.454648674</R00>
|
|
<R01>-0.540302277</R01>
|
|
<R02>-0.708073378</R02>
|
|
<R10>0.291926563</R10>
|
|
<R11>-0.841470957</R11>
|
|
<R12>0.454648674</R12>
|
|
<R20>-0.841470957</R20>
|
|
<R21>0</R21>
|
|
<R22>0.540302277</R22>
|
|
</CoordinateFrame>
|
|
<bool name="CanCollide">true</bool>
|
|
<float name="Elasticity">0.5</float>
|
|
<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>
|
|
<token name="Material">256</token>
|
|
<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>4.07127958e-025</X>
|
|
<Y>3.33696291e-022</Y>
|
|
<Z>6.94702468e-025</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>3.64807103e-020</X>
|
|
<Y>0.00686328812</Y>
|
|
<Z>3.67023398e-020</Z>
|
|
</Vector3>
|
|
<token name="formFactorRaw">0</token>
|
|
<token name="shape">1</token>
|
|
<Vector3 name="size">
|
|
<X>2</X>
|
|
<Y>1</Y>
|
|
<Z>1</Z>
|
|
</Vector3>
|
|
</Properties>
|
|
<Item class="SpecialMesh" referent="RBX146">
|
|
<Properties>
|
|
<token name="LODX">2</token>
|
|
<token name="LODY">2</token>
|
|
<Content name="MeshId"><null></null></Content>
|
|
<token name="MeshType">0</token>
|
|
<string name="Name">Mesh</string>
|
|
<Vector3 name="Offset">
|
|
<X>0</X>
|
|
<Y>0</Y>
|
|
<Z>0</Z>
|
|
</Vector3>
|
|
<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>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="Decal" referent="RBX147">
|
|
<Properties>
|
|
<token name="Face">5</token>
|
|
<string name="Name">face</string>
|
|
<float name="Shiny">20</float>
|
|
<float name="Specular">0</float>
|
|
<Content name="Texture"><null></null></Content>
|
|
<float name="Transparency">0</float>
|
|
</Properties>
|
|
</Item>
|
|
</Item>
|
|
<Item class="Part" referent="RBX148">
|
|
<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>9.64596367</X>
|
|
<Y>29.6273193</Y>
|
|
<Z>-30.7298489</Z>
|
|
<R00>-0.454648674</R00>
|
|
<R01>-0.540302277</R01>
|
|
<R02>-0.708073378</R02>
|
|
<R10>0.291926563</R10>
|
|
<R11>-0.841470957</R11>
|
|
<R12>0.454648674</R12>
|
|
<R20>-0.841470957</R20>
|
|
<R21>0</R21>
|
|
<R22>0.540302277</R22>
|
|
</CoordinateFrame>
|
|
<bool name="CanCollide">true</bool>
|
|
<float name="Elasticity">0.5</float>
|
|
<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>
|
|
<token name="Material">256</token>
|
|
<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>4.07127958e-025</X>
|
|
<Y>3.33696291e-022</Y>
|
|
<Z>6.94702468e-025</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>3.64798347e-020</X>
|
|
<Y>0.00686328812</Y>
|
|
<Z>3.64324075e-020</Z>
|
|
</Vector3>
|
|
<token name="formFactorRaw">0</token>
|
|
<token name="shape">1</token>
|
|
<Vector3 name="size">
|
|
<X>2</X>
|
|
<Y>2</Y>
|
|
<Z>1</Z>
|
|
</Vector3>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="Part" referent="RBX149">
|
|
<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>10.9538927</X>
|
|
<Y>31.1642971</Y>
|
|
<Z>-30.3091125</Z>
|
|
<R00>-0.454648674</R00>
|
|
<R01>-0.540302277</R01>
|
|
<R02>-0.708073378</R02>
|
|
<R10>0.291926563</R10>
|
|
<R11>-0.841470957</R11>
|
|
<R12>0.454648674</R12>
|
|
<R20>-0.841470957</R20>
|
|
<R21>0</R21>
|
|
<R22>0.540302277</R22>
|
|
</CoordinateFrame>
|
|
<bool name="CanCollide">false</bool>
|
|
<float name="Elasticity">0.5</float>
|
|
<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>
|
|
<token name="Material">256</token>
|
|
<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>4.07127958e-025</X>
|
|
<Y>3.33696291e-022</Y>
|
|
<Z>6.94702468e-025</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>3.66191662e-020</X>
|
|
<Y>0.00686328812</Y>
|
|
<Z>3.59965835e-020</Z>
|
|
</Vector3>
|
|
<token name="formFactorRaw">0</token>
|
|
<token name="shape">1</token>
|
|
<Vector3 name="size">
|
|
<X>1</X>
|
|
<Y>2</Y>
|
|
<Z>1</Z>
|
|
</Vector3>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="Part" referent="RBX150">
|
|
<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>10.4992437</X>
|
|
<Y>31.4562244</Y>
|
|
<Z>-31.1505852</Z>
|
|
<R00>-0.454648674</R00>
|
|
<R01>-0.540302277</R01>
|
|
<R02>-0.708073378</R02>
|
|
<R10>0.291926563</R10>
|
|
<R11>-0.841470957</R11>
|
|
<R12>0.454648674</R12>
|
|
<R20>-0.841470957</R20>
|
|
<R21>0</R21>
|
|
<R22>0.540302277</R22>
|
|
</CoordinateFrame>
|
|
<bool name="CanCollide">false</bool>
|
|
<float name="Elasticity">0.5</float>
|
|
<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>
|
|
<token name="Material">256</token>
|
|
<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>4.07127958e-025</X>
|
|
<Y>3.33696291e-022</Y>
|
|
<Z>6.94702468e-025</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>3.63381671e-020</X>
|
|
<Y>0.00686328812</Y>
|
|
<Z>3.61484164e-020</Z>
|
|
</Vector3>
|
|
<token name="formFactorRaw">0</token>
|
|
<token name="shape">1</token>
|
|
<Vector3 name="size">
|
|
<X>1</X>
|
|
<Y>2</Y>
|
|
<Z>1</Z>
|
|
</Vector3>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="Humanoid" referent="RBX151">
|
|
<Properties>
|
|
<float name="Health">100</float>
|
|
<float name="MaxHealth">100</float>
|
|
<string name="Name">Humanoid</string>
|
|
<token name="NameOcclusion">0</token>
|
|
<float name="WalkSpeed">16</float>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="Part" referent="RBX152">
|
|
<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">29</int>
|
|
<CoordinateFrame name="CFrame">
|
|
<X>10.4118223</X>
|
|
<Y>28.5413704</Y>
|
|
<Z>-29.737793</Z>
|
|
<R00>0.708073378</R00>
|
|
<R01>-0.540302277</R01>
|
|
<R02>-0.454648674</R02>
|
|
<R10>-0.454648674</R10>
|
|
<R11>-0.841470957</R11>
|
|
<R12>0.291926563</R12>
|
|
<R20>-0.540302277</R20>
|
|
<R21>0</R21>
|
|
<R22>-0.841470957</R22>
|
|
</CoordinateFrame>
|
|
<bool name="CanCollide">true</bool>
|
|
<float name="Elasticity">0.5</float>
|
|
<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>
|
|
<token name="Material">256</token>
|
|
<string name="Name">zarm</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>4.07127958e-025</X>
|
|
<Y>3.33696291e-022</Y>
|
|
<Z>6.94702468e-025</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>3.68116343e-020</X>
|
|
<Y>0.00686328812</Y>
|
|
<Z>3.61764016e-020</Z>
|
|
</Vector3>
|
|
<token name="formFactorRaw">0</token>
|
|
<token name="shape">1</token>
|
|
<Vector3 name="size">
|
|
<X>2</X>
|
|
<Y>1</Y>
|
|
<Z>1</Z>
|
|
</Vector3>
|
|
</Properties>
|
|
<Item class="Script" referent="RBX153">
|
|
<Properties>
|
|
<bool name="Disabled">false</bool>
|
|
<Content name="LinkedSource"><null></null></Content>
|
|
<string name="Name">Script</string>
|
|
<ProtectedString name="Source">wait(1)
|
|
owner=script.Parent.Parent.Name
|
|
|
|
function onTouched(part)
|
|
	if part.Parent ~= nil then
|
|
		local h = part.Parent:findFirstChild("Humanoid")
|
|
			if h~=nil then
|
|
				if cantouch~=0 then
|
|
					if h.Parent.Name~=owner then
|
|
						
|
|
						if h.Parent:findFirstChild("zarm")~=nil then return end
|
|
|
|
						cantouch=0
|
|
|
|
						local larm=h.Parent:findFirstChild("Left Arm")
|
|
						local rarm=h.Parent:findFirstChild("Right Arm")
|
|
						
|
|
						if larm~=nil then
|
|
							larm:remove()
|
|
						end
|
|
						if rarm~=nil then
|
|
							rarm:remove()
|
|
						end
|
|
						local zee=script.Parent.Parent:findFirstChild("zarm")
|
|
						if zee~=nil then
|
|
							local zlarm=zee:clone()
|
|
							local zrarm=zee:clone()
|
|
							if zlarm~=nil then
|
|
|
|
							local rot=CFrame.new(0, 0, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
|
|
								zlarm.CFrame=h.Parent.Torso.CFrame * CFrame.new(Vector3.new(-1.5,0.5,-0.5)) * rot
|
|
								zrarm.CFrame=h.Parent.Torso.CFrame * CFrame.new(Vector3.new(1.5,0.5,-0.5)) * rot
|
|
								zlarm.Parent=h.Parent
|
|
								zrarm.Parent=h.Parent
|
|
								zlarm:makeJoints()
|
|
								zrarm:makeJoints()
|
|
								zlarm.Anchored=false
|
|
								zrarm.Anchored=false
|
|
								wait(0.1)
|
|
								h.Parent.Head.Color=zee.Color
|
|
							else print("no zee"); return end
|
|
						end
|
|
						wait(1)
|
|
						cantouch=1
|
|
					end
|
|
				end
|
|
			end
|
|
	end
|
|
end
|
|
|
|
script.Parent.Touched:connect(onTouched)</ProtectedString>
|
|
</Properties>
|
|
</Item>
|
|
</Item>
|
|
<Item class="Part" referent="RBX154">
|
|
<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">29</int>
|
|
<CoordinateFrame name="CFrame">
|
|
<X>9.04787636</X>
|
|
<Y>29.4171486</Y>
|
|
<Z>-32.262207</Z>
|
|
<R00>0.708073378</R00>
|
|
<R01>-0.540302277</R01>
|
|
<R02>-0.454648674</R02>
|
|
<R10>-0.454648674</R10>
|
|
<R11>-0.841470957</R11>
|
|
<R12>0.291926563</R12>
|
|
<R20>-0.540302277</R20>
|
|
<R21>0</R21>
|
|
<R22>-0.841470957</R22>
|
|
</CoordinateFrame>
|
|
<bool name="CanCollide">true</bool>
|
|
<float name="Elasticity">0.5</float>
|
|
<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>
|
|
<token name="Material">256</token>
|
|
<string name="Name">zarm</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>4.07127958e-025</X>
|
|
<Y>3.33696291e-022</Y>
|
|
<Z>6.94702468e-025</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>3.59686371e-020</X>
|
|
<Y>0.00686328812</Y>
|
|
<Z>3.66319002e-020</Z>
|
|
</Vector3>
|
|
<token name="formFactorRaw">0</token>
|
|
<token name="shape">1</token>
|
|
<Vector3 name="size">
|
|
<X>2</X>
|
|
<Y>1</Y>
|
|
<Z>1</Z>
|
|
</Vector3>
|
|
</Properties>
|
|
<Item class="Script" referent="RBX155">
|
|
<Properties>
|
|
<bool name="Disabled">false</bool>
|
|
<Content name="LinkedSource"><null></null></Content>
|
|
<string name="Name">Script</string>
|
|
<ProtectedString name="Source">wait(1)
|
|
owner=script.Parent.Parent.Name
|
|
|
|
function onTouched(part)
|
|
	if part.Parent ~= nil then
|
|
		local h = part.Parent:findFirstChild("Humanoid")
|
|
			if h~=nil then
|
|
				if cantouch~=0 then
|
|
					if h.Parent.Name~=owner then
|
|
						
|
|
						if h.Parent:findFirstChild("zarm")~=nil then return end
|
|
|
|
						cantouch=0
|
|
|
|
						local larm=h.Parent:findFirstChild("Left Arm")
|
|
						local rarm=h.Parent:findFirstChild("Right Arm")
|
|
						
|
|
						if larm~=nil then
|
|
							larm:remove()
|
|
						end
|
|
						if rarm~=nil then
|
|
							rarm:remove()
|
|
						end
|
|
						local zee=script.Parent.Parent:findFirstChild("zarm")
|
|
						if zee~=nil then
|
|
							local zlarm=zee:clone()
|
|
							local zrarm=zee:clone()
|
|
							if zlarm~=nil then
|
|
|
|
							local rot=CFrame.new(0, 0, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
|
|
								zlarm.CFrame=h.Parent.Torso.CFrame * CFrame.new(Vector3.new(-1.5,0.5,-0.5)) * rot
|
|
								zrarm.CFrame=h.Parent.Torso.CFrame * CFrame.new(Vector3.new(1.5,0.5,-0.5)) * rot
|
|
								zlarm.Parent=h.Parent
|
|
								zrarm.Parent=h.Parent
|
|
								zlarm:makeJoints()
|
|
								zrarm:makeJoints()
|
|
								zlarm.Anchored=false
|
|
								zrarm.Anchored=false
|
|
								wait(0.1)
|
|
								h.Parent.Head.Color=zee.Color
|
|
							else print("no zee"); return end
|
|
						end
|
|
						wait(1)
|
|
						cantouch=1
|
|
					end
|
|
				end
|
|
			end
|
|
	end
|
|
end
|
|
|
|
script.Parent.Touched:connect(onTouched)</ProtectedString>
|
|
</Properties>
|
|
</Item>
|
|
</Item>
|
|
<Item class="ObjectValue" referent="RBX156">
|
|
<Properties>
|
|
<string name="Name">IsNZ</string>
|
|
<Ref name="Value">null</Ref>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="IntValue" referent="RBX157">
|
|
<Properties>
|
|
<string name="Name">Mode</string>
|
|
<int name="Value">0</int>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="Script" referent="RBX158">
|
|
<Properties>
|
|
<bool name="Disabled">false</bool>
|
|
<Content name="LinkedSource"><null></null></Content>
|
|
<string name="Name">Script</string>
|
|
<ProtectedString name="Source">local larm = script.Parent:FindFirstChild("Left Arm")
|
|
local rarm = script.Parent:FindFirstChild("Right Arm")
|
|
|
|
function findNearestTorso(pos)
|
|
	local list = game.Workspace:children()
|
|
	local torso = nil
|
|
	local dist = 1000
|
|
	local temp = nil
|
|
	local human = nil
|
|
	local temp2 = nil
|
|
	for x = 1, #list do
|
|
		temp2 = list[x]
|
|
		if (temp2.className == "Model") and (temp2 ~= script.Parent) then
|
|
			temp = temp2:findFirstChild("Right Arm")
|
|
			human = temp2:findFirstChild("Humanoid")
|
|
			if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then
|
|
				if (temp.Position - pos).magnitude < dist then
|
|
					torso = temp
|
|
					dist = (temp.Position - pos).magnitude
|
|
				end
|
|
			end
|
|
		end
|
|
	end
|
|
	return torso
|
|
end
|
|
|
|
|
|
|
|
|
|
while true do
|
|
	wait(math.random(1,5))
|
|
	local target = findNearestTorso(script.Parent.Torso.Position)
|
|
	if target ~= nil then
|
|
		script.Parent.Humanoid:MoveTo(target.Position, target)
|
|
	end
|
|
|
|
end
|
|
</ProtectedString>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="Script" referent="RBX159">
|
|
<Properties>
|
|
<bool name="Disabled">false</bool>
|
|
<Content name="LinkedSource"><null></null></Content>
|
|
<string name="Name">Health</string>
|
|
<ProtectedString name="Source">function waitForChild(parent, childName)
|
|
	while true do
|
|
		local child = parent:findFirstChild(childName)
|
|
		if child then
|
|
			return child
|
|
		end
|
|
		parent.ChildAdded:wait()
|
|
	end
|
|
end
|
|
|
|
-- declarations
|
|
|
|
local Figure = script.Parent
|
|
local Head = waitForChild(Figure, "Head")
|
|
local Humanoid = waitForChild(Figure, "Humanoid")
|
|
Humanoid.Health=500
|
|
-- regeneration
|
|
while true do
|
|
	local s = wait(4)
|
|
	local health = Humanoid.Health
|
|
	if health > 0 and health < Humanoid.MaxHealth then
|
|
		health = health + 0.08 * s * Humanoid.MaxHealth
|
|
		if health * 1.05 < Humanoid.MaxHealth then
|
|
			Humanoid.Health = health
|
|
		else
|
|
			Humanoid.Health = Humanoid.MaxHealth
|
|
		end
|
|
	end
|
|
end
|
|
</ProtectedString>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="Script" referent="RBX160">
|
|
<Properties>
|
|
<bool name="Disabled">false</bool>
|
|
<Content name="LinkedSource"><null></null></Content>
|
|
<string name="Name">Respawn</string>
|
|
<ProtectedString name="Source">name="Humanoid"
|
|
|
|
robo=script.Parent:clone()
|
|
|
|
while true do
|
|
	wait(1)
|
|
	if script.Parent.Humanoid.Health<1 then
|
|
		robot=robo:clone()
|
|
		robot.Parent=script.Parent.Parent
|
|
		robot:makeJoints()
|
|
		script.Parent:remove()
|
|
	end
|
|
end
|
|
		
|
|
|
|
|
|
</ProtectedString>
|
|
</Properties>
|
|
</Item>
|
|
</Item>
|
|
<Item class="Model" referent="RBX161">
|
|
<Properties>
|
|
<CoordinateFrame name="ModelInPrimary">
|
|
<X>0</X>
|
|
<Y>0</Y>
|
|
<Z>0</Z>
|
|
<R00>1</R00>
|
|
<R01>0</R01>
|
|
<R02>0</R02>
|
|
<R10>0</R10>
|
|
<R11>1</R11>
|
|
<R12>0</R12>
|
|
<R20>0</R20>
|
|
<R21>0</R21>
|
|
<R22>1</R22>
|
|
</CoordinateFrame>
|
|
<string name="Name">Zombie</string>
|
|
<Ref name="PrimaryPart">null</Ref>
|
|
</Properties>
|
|
<Item class="Part" referent="RBX162">
|
|
<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">29</int>
|
|
<CoordinateFrame name="CFrame">
|
|
<X>21.4995499</X>
|
|
<Y>24.1026154</Y>
|
|
<Z>-11.2844696</Z>
|
|
<R00>1.49011612e-008</R00>
|
|
<R01>0</R01>
|
|
<R02>-0.999999881</R02>
|
|
<R10>1.49011612e-008</R10>
|
|
<R11>-0.99999994</R11>
|
|
<R12>0</R12>
|
|
<R20>-0.99999994</R20>
|
|
<R21>1.49011612e-008</R21>
|
|
<R22>1.49011612e-008</R22>
|
|
</CoordinateFrame>
|
|
<bool name="CanCollide">true</bool>
|
|
<float name="Elasticity">0.5</float>
|
|
<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>
|
|
<token name="Material">256</token>
|
|
<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>4.07127958e-025</X>
|
|
<Y>3.33696291e-022</Y>
|
|
<Z>6.94702468e-025</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>3.64808751e-020</X>
|
|
<Y>0.00686328812</Y>
|
|
<Z>3.64317968e-020</Z>
|
|
</Vector3>
|
|
<token name="formFactorRaw">0</token>
|
|
<token name="shape">1</token>
|
|
<Vector3 name="size">
|
|
<X>2</X>
|
|
<Y>1</Y>
|
|
<Z>1</Z>
|
|
</Vector3>
|
|
</Properties>
|
|
<Item class="SpecialMesh" referent="RBX163">
|
|
<Properties>
|
|
<token name="LODX">2</token>
|
|
<token name="LODY">2</token>
|
|
<Content name="MeshId"><null></null></Content>
|
|
<token name="MeshType">0</token>
|
|
<string name="Name">Mesh</string>
|
|
<Vector3 name="Offset">
|
|
<X>0</X>
|
|
<Y>0</Y>
|
|
<Z>0</Z>
|
|
</Vector3>
|
|
<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>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="Decal" referent="RBX164">
|
|
<Properties>
|
|
<token name="Face">5</token>
|
|
<string name="Name">face</string>
|
|
<float name="Shiny">20</float>
|
|
<float name="Specular">0</float>
|
|
<Content name="Texture"><null></null></Content>
|
|
<float name="Transparency">0</float>
|
|
</Properties>
|
|
</Item>
|
|
</Item>
|
|
<Item class="Part" referent="RBX165">
|
|
<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>21.4995499</X>
|
|
<Y>25.6026154</Y>
|
|
<Z>-11.2844696</Z>
|
|
<R00>1.49011612e-008</R00>
|
|
<R01>0</R01>
|
|
<R02>-0.999999881</R02>
|
|
<R10>1.49011612e-008</R10>
|
|
<R11>-0.99999994</R11>
|
|
<R12>0</R12>
|
|
<R20>-0.99999994</R20>
|
|
<R21>1.49011612e-008</R21>
|
|
<R22>1.49011612e-008</R22>
|
|
</CoordinateFrame>
|
|
<bool name="CanCollide">true</bool>
|
|
<float name="Elasticity">0.5</float>
|
|
<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>
|
|
<token name="Material">256</token>
|
|
<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>4.07127958e-025</X>
|
|
<Y>3.33696291e-022</Y>
|
|
<Z>6.94702468e-025</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>3.64798347e-020</X>
|
|
<Y>0.00686328812</Y>
|
|
<Z>3.64324075e-020</Z>
|
|
</Vector3>
|
|
<token name="formFactorRaw">0</token>
|
|
<token name="shape">1</token>
|
|
<Vector3 name="size">
|
|
<X>2</X>
|
|
<Y>2</Y>
|
|
<Z>1</Z>
|
|
</Vector3>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="Part" referent="RBX166">
|
|
<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>21.4995499</X>
|
|
<Y>27.6026154</Y>
|
|
<Z>-10.7844696</Z>
|
|
<R00>1.49011612e-008</R00>
|
|
<R01>0</R01>
|
|
<R02>-0.999999881</R02>
|
|
<R10>1.49011612e-008</R10>
|
|
<R11>-0.99999994</R11>
|
|
<R12>0</R12>
|
|
<R20>-0.99999994</R20>
|
|
<R21>1.49011612e-008</R21>
|
|
<R22>1.49011612e-008</R22>
|
|
</CoordinateFrame>
|
|
<bool name="CanCollide">false</bool>
|
|
<float name="Elasticity">0.5</float>
|
|
<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>
|
|
<token name="Material">256</token>
|
|
<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>4.07127958e-025</X>
|
|
<Y>3.33696291e-022</Y>
|
|
<Z>6.94702468e-025</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>3.66452934e-020</X>
|
|
<Y>0.00686328812</Y>
|
|
<Z>3.64332218e-020</Z>
|
|
</Vector3>
|
|
<token name="formFactorRaw">0</token>
|
|
<token name="shape">1</token>
|
|
<Vector3 name="size">
|
|
<X>1</X>
|
|
<Y>2</Y>
|
|
<Z>1</Z>
|
|
</Vector3>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="Part" referent="RBX167">
|
|
<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>21.4995499</X>
|
|
<Y>27.6026154</Y>
|
|
<Z>-11.7844696</Z>
|
|
<R00>1.49011612e-008</R00>
|
|
<R01>0</R01>
|
|
<R02>-0.999999881</R02>
|
|
<R10>1.49011612e-008</R10>
|
|
<R11>-0.99999994</R11>
|
|
<R12>0</R12>
|
|
<R20>-0.99999994</R20>
|
|
<R21>1.49011612e-008</R21>
|
|
<R22>1.49011612e-008</R22>
|
|
</CoordinateFrame>
|
|
<bool name="CanCollide">false</bool>
|
|
<float name="Elasticity">0.5</float>
|
|
<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>
|
|
<token name="Material">256</token>
|
|
<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>4.07127958e-025</X>
|
|
<Y>3.33696291e-022</Y>
|
|
<Z>6.94702468e-025</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>3.63115971e-020</X>
|
|
<Y>0.00686328812</Y>
|
|
<Z>3.64332218e-020</Z>
|
|
</Vector3>
|
|
<token name="formFactorRaw">0</token>
|
|
<token name="shape">1</token>
|
|
<Vector3 name="size">
|
|
<X>1</X>
|
|
<Y>2</Y>
|
|
<Z>1</Z>
|
|
</Vector3>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="Humanoid" referent="RBX168">
|
|
<Properties>
|
|
<float name="Health">100</float>
|
|
<float name="MaxHealth">100</float>
|
|
<string name="Name">Humanoid</string>
|
|
<token name="NameOcclusion">0</token>
|
|
<float name="WalkSpeed">16</float>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="Part" referent="RBX169">
|
|
<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">29</int>
|
|
<CoordinateFrame name="CFrame">
|
|
<X>21.9995499</X>
|
|
<Y>25.1026154</Y>
|
|
<Z>-9.7844696</Z>
|
|
<R00>0.999999881</R00>
|
|
<R01>0</R01>
|
|
<R02>1.49011612e-008</R02>
|
|
<R10>0</R10>
|
|
<R11>-0.99999994</R11>
|
|
<R12>1.49011612e-008</R12>
|
|
<R20>-1.49011612e-008</R20>
|
|
<R21>1.49011612e-008</R21>
|
|
<R22>-0.99999994</R22>
|
|
</CoordinateFrame>
|
|
<bool name="CanCollide">true</bool>
|
|
<float name="Elasticity">0.5</float>
|
|
<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>
|
|
<token name="Material">256</token>
|
|
<string name="Name">zarm</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>4.07127958e-025</X>
|
|
<Y>3.33696291e-022</Y>
|
|
<Z>6.94702468e-025</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>3.69807249e-020</X>
|
|
<Y>0.00686328812</Y>
|
|
<Z>3.62653558e-020</Z>
|
|
</Vector3>
|
|
<token name="formFactorRaw">0</token>
|
|
<token name="shape">1</token>
|
|
<Vector3 name="size">
|
|
<X>2</X>
|
|
<Y>1</Y>
|
|
<Z>1</Z>
|
|
</Vector3>
|
|
</Properties>
|
|
<Item class="Script" referent="RBX170">
|
|
<Properties>
|
|
<bool name="Disabled">false</bool>
|
|
<Content name="LinkedSource"><null></null></Content>
|
|
<string name="Name">Script</string>
|
|
<ProtectedString name="Source">wait(1)
|
|
owner=script.Parent.Parent.Name
|
|
|
|
function onTouched(part)
|
|
	if part.Parent ~= nil then
|
|
		local h = part.Parent:findFirstChild("Humanoid")
|
|
			if h~=nil then
|
|
				if cantouch~=0 then
|
|
					if h.Parent.Name~=owner then
|
|
						
|
|
						if h.Parent:findFirstChild("zarm")~=nil then return end
|
|
|
|
						cantouch=0
|
|
|
|
						local larm=h.Parent:findFirstChild("Left Arm")
|
|
						local rarm=h.Parent:findFirstChild("Right Arm")
|
|
						
|
|
						if larm~=nil then
|
|
							larm:remove()
|
|
						end
|
|
						if rarm~=nil then
|
|
							rarm:remove()
|
|
						end
|
|
						local zee=script.Parent.Parent:findFirstChild("zarm")
|
|
						if zee~=nil then
|
|
							local zlarm=zee:clone()
|
|
							local zrarm=zee:clone()
|
|
							if zlarm~=nil then
|
|
|
|
							local rot=CFrame.new(0, 0, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
|
|
								zlarm.CFrame=h.Parent.Torso.CFrame * CFrame.new(Vector3.new(-1.5,0.5,-0.5)) * rot
|
|
								zrarm.CFrame=h.Parent.Torso.CFrame * CFrame.new(Vector3.new(1.5,0.5,-0.5)) * rot
|
|
								zlarm.Parent=h.Parent
|
|
								zrarm.Parent=h.Parent
|
|
								zlarm:makeJoints()
|
|
								zrarm:makeJoints()
|
|
								zlarm.Anchored=false
|
|
								zrarm.Anchored=false
|
|
								wait(0.1)
|
|
								h.Parent.Head.Color=zee.Color
|
|
							else print("no zee"); return end
|
|
						end
|
|
						wait(1)
|
|
						cantouch=1
|
|
					end
|
|
				end
|
|
			end
|
|
	end
|
|
end
|
|
|
|
script.Parent.Touched:connect(onTouched)</ProtectedString>
|
|
</Properties>
|
|
</Item>
|
|
</Item>
|
|
<Item class="Part" referent="RBX171">
|
|
<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">29</int>
|
|
<CoordinateFrame name="CFrame">
|
|
<X>21.9995499</X>
|
|
<Y>25.1026154</Y>
|
|
<Z>-12.7844696</Z>
|
|
<R00>0.999999881</R00>
|
|
<R01>0</R01>
|
|
<R02>1.49011612e-008</R02>
|
|
<R10>0</R10>
|
|
<R11>-0.99999994</R11>
|
|
<R12>1.49011612e-008</R12>
|
|
<R20>-1.49011612e-008</R20>
|
|
<R21>1.49011612e-008</R21>
|
|
<R22>-0.99999994</R22>
|
|
</CoordinateFrame>
|
|
<bool name="CanCollide">true</bool>
|
|
<float name="Elasticity">0.5</float>
|
|
<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>
|
|
<token name="Material">256</token>
|
|
<string name="Name">zarm</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>4.07127958e-025</X>
|
|
<Y>3.33696291e-022</Y>
|
|
<Z>6.94702468e-025</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>3.5979636e-020</X>
|
|
<Y>0.00686328812</Y>
|
|
<Z>3.62653558e-020</Z>
|
|
</Vector3>
|
|
<token name="formFactorRaw">0</token>
|
|
<token name="shape">1</token>
|
|
<Vector3 name="size">
|
|
<X>2</X>
|
|
<Y>1</Y>
|
|
<Z>1</Z>
|
|
</Vector3>
|
|
</Properties>
|
|
<Item class="Script" referent="RBX172">
|
|
<Properties>
|
|
<bool name="Disabled">false</bool>
|
|
<Content name="LinkedSource"><null></null></Content>
|
|
<string name="Name">Script</string>
|
|
<ProtectedString name="Source">wait(1)
|
|
owner=script.Parent.Parent.Name
|
|
|
|
function onTouched(part)
|
|
	if part.Parent ~= nil then
|
|
		local h = part.Parent:findFirstChild("Humanoid")
|
|
			if h~=nil then
|
|
				if cantouch~=0 then
|
|
					if h.Parent.Name~=owner then
|
|
						
|
|
						if h.Parent:findFirstChild("zarm")~=nil then return end
|
|
|
|
						cantouch=0
|
|
|
|
						local larm=h.Parent:findFirstChild("Left Arm")
|
|
						local rarm=h.Parent:findFirstChild("Right Arm")
|
|
						
|
|
						if larm~=nil then
|
|
							larm:remove()
|
|
						end
|
|
						if rarm~=nil then
|
|
							rarm:remove()
|
|
						end
|
|
						local zee=script.Parent.Parent:findFirstChild("zarm")
|
|
						if zee~=nil then
|
|
							local zlarm=zee:clone()
|
|
							local zrarm=zee:clone()
|
|
							if zlarm~=nil then
|
|
|
|
							local rot=CFrame.new(0, 0, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
|
|
								zlarm.CFrame=h.Parent.Torso.CFrame * CFrame.new(Vector3.new(-1.5,0.5,-0.5)) * rot
|
|
								zrarm.CFrame=h.Parent.Torso.CFrame * CFrame.new(Vector3.new(1.5,0.5,-0.5)) * rot
|
|
								zlarm.Parent=h.Parent
|
|
								zrarm.Parent=h.Parent
|
|
								zlarm:makeJoints()
|
|
								zrarm:makeJoints()
|
|
								zlarm.Anchored=false
|
|
								zrarm.Anchored=false
|
|
								wait(0.1)
|
|
								h.Parent.Head.Color=zee.Color
|
|
							else print("no zee"); return end
|
|
						end
|
|
						wait(1)
|
|
						cantouch=1
|
|
					end
|
|
				end
|
|
			end
|
|
	end
|
|
end
|
|
|
|
script.Parent.Touched:connect(onTouched)</ProtectedString>
|
|
</Properties>
|
|
</Item>
|
|
</Item>
|
|
<Item class="ObjectValue" referent="RBX173">
|
|
<Properties>
|
|
<string name="Name">IsNZ</string>
|
|
<Ref name="Value">null</Ref>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="IntValue" referent="RBX174">
|
|
<Properties>
|
|
<string name="Name">Mode</string>
|
|
<int name="Value">0</int>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="Script" referent="RBX175">
|
|
<Properties>
|
|
<bool name="Disabled">false</bool>
|
|
<Content name="LinkedSource"><null></null></Content>
|
|
<string name="Name">Script</string>
|
|
<ProtectedString name="Source">local larm = script.Parent:FindFirstChild("Left Arm")
|
|
local rarm = script.Parent:FindFirstChild("Right Arm")
|
|
|
|
function findNearestTorso(pos)
|
|
	local list = game.Workspace:children()
|
|
	local torso = nil
|
|
	local dist = 1000
|
|
	local temp = nil
|
|
	local human = nil
|
|
	local temp2 = nil
|
|
	for x = 1, #list do
|
|
		temp2 = list[x]
|
|
		if (temp2.className == "Model") and (temp2 ~= script.Parent) then
|
|
			temp = temp2:findFirstChild("Right Arm")
|
|
			human = temp2:findFirstChild("Humanoid")
|
|
			if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then
|
|
				if (temp.Position - pos).magnitude < dist then
|
|
					torso = temp
|
|
					dist = (temp.Position - pos).magnitude
|
|
				end
|
|
			end
|
|
		end
|
|
	end
|
|
	return torso
|
|
end
|
|
|
|
|
|
|
|
|
|
while true do
|
|
	wait(math.random(1,5))
|
|
	local target = findNearestTorso(script.Parent.Torso.Position)
|
|
	if target ~= nil then
|
|
		script.Parent.Humanoid:MoveTo(target.Position, target)
|
|
	end
|
|
|
|
end
|
|
</ProtectedString>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="Script" referent="RBX176">
|
|
<Properties>
|
|
<bool name="Disabled">false</bool>
|
|
<Content name="LinkedSource"><null></null></Content>
|
|
<string name="Name">Health</string>
|
|
<ProtectedString name="Source">function waitForChild(parent, childName)
|
|
	while true do
|
|
		local child = parent:findFirstChild(childName)
|
|
		if child then
|
|
			return child
|
|
		end
|
|
		parent.ChildAdded:wait()
|
|
	end
|
|
end
|
|
|
|
-- declarations
|
|
|
|
local Figure = script.Parent
|
|
local Head = waitForChild(Figure, "Head")
|
|
local Humanoid = waitForChild(Figure, "Humanoid")
|
|
Humanoid.Health=500
|
|
-- regeneration
|
|
while true do
|
|
	local s = wait(4)
|
|
	local health = Humanoid.Health
|
|
	if health > 0 and health < Humanoid.MaxHealth then
|
|
		health = health + 0.08 * s * Humanoid.MaxHealth
|
|
		if health * 1.05 < Humanoid.MaxHealth then
|
|
			Humanoid.Health = health
|
|
		else
|
|
			Humanoid.Health = Humanoid.MaxHealth
|
|
		end
|
|
	end
|
|
end
|
|
</ProtectedString>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="Script" referent="RBX177">
|
|
<Properties>
|
|
<bool name="Disabled">false</bool>
|
|
<Content name="LinkedSource"><null></null></Content>
|
|
<string name="Name">Respawn</string>
|
|
<ProtectedString name="Source">name="Humanoid"
|
|
|
|
robo=script.Parent:clone()
|
|
|
|
while true do
|
|
	wait(1)
|
|
	if script.Parent.Humanoid.Health<1 then
|
|
		robot=robo:clone()
|
|
		robot.Parent=script.Parent.Parent
|
|
		robot:makeJoints()
|
|
		script.Parent:remove()
|
|
	end
|
|
end
|
|
		
|
|
|
|
|
|
</ProtectedString>
|
|
</Properties>
|
|
</Item>
|
|
</Item>
|
|
<Item class="Model" referent="RBX178">
|
|
<Properties>
|
|
<CoordinateFrame name="ModelInPrimary">
|
|
<X>0</X>
|
|
<Y>0</Y>
|
|
<Z>0</Z>
|
|
<R00>1</R00>
|
|
<R01>0</R01>
|
|
<R02>0</R02>
|
|
<R10>0</R10>
|
|
<R11>1</R11>
|
|
<R12>0</R12>
|
|
<R20>0</R20>
|
|
<R21>0</R21>
|
|
<R22>1</R22>
|
|
</CoordinateFrame>
|
|
<string name="Name">Zombie</string>
|
|
<Ref name="PrimaryPart">null</Ref>
|
|
</Properties>
|
|
<Item class="Part" referent="RBX179">
|
|
<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">29</int>
|
|
<CoordinateFrame name="CFrame">
|
|
<X>25.4995499</X>
|
|
<Y>29.7026062</Y>
|
|
<Z>-34.2844696</Z>
|
|
<R00>1.49011612e-008</R00>
|
|
<R01>0</R01>
|
|
<R02>-0.999999881</R02>
|
|
<R10>1.49011612e-008</R10>
|
|
<R11>-0.99999994</R11>
|
|
<R12>0</R12>
|
|
<R20>-0.99999994</R20>
|
|
<R21>1.49011612e-008</R21>
|
|
<R22>1.49011612e-008</R22>
|
|
</CoordinateFrame>
|
|
<bool name="CanCollide">true</bool>
|
|
<float name="Elasticity">0.5</float>
|
|
<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>
|
|
<token name="Material">256</token>
|
|
<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>4.07127958e-025</X>
|
|
<Y>3.33696291e-022</Y>
|
|
<Z>6.94702468e-025</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>3.64808751e-020</X>
|
|
<Y>0.00686328812</Y>
|
|
<Z>3.64317968e-020</Z>
|
|
</Vector3>
|
|
<token name="formFactorRaw">0</token>
|
|
<token name="shape">1</token>
|
|
<Vector3 name="size">
|
|
<X>2</X>
|
|
<Y>1</Y>
|
|
<Z>1</Z>
|
|
</Vector3>
|
|
</Properties>
|
|
<Item class="SpecialMesh" referent="RBX180">
|
|
<Properties>
|
|
<token name="LODX">2</token>
|
|
<token name="LODY">2</token>
|
|
<Content name="MeshId"><null></null></Content>
|
|
<token name="MeshType">0</token>
|
|
<string name="Name">Mesh</string>
|
|
<Vector3 name="Offset">
|
|
<X>0</X>
|
|
<Y>0</Y>
|
|
<Z>0</Z>
|
|
</Vector3>
|
|
<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>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="Decal" referent="RBX181">
|
|
<Properties>
|
|
<token name="Face">5</token>
|
|
<string name="Name">face</string>
|
|
<float name="Shiny">20</float>
|
|
<float name="Specular">0</float>
|
|
<Content name="Texture"><null></null></Content>
|
|
<float name="Transparency">0</float>
|
|
</Properties>
|
|
</Item>
|
|
</Item>
|
|
<Item class="Part" referent="RBX182">
|
|
<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>25.4995499</X>
|
|
<Y>31.2026062</Y>
|
|
<Z>-34.2844696</Z>
|
|
<R00>1.49011612e-008</R00>
|
|
<R01>0</R01>
|
|
<R02>-0.999999881</R02>
|
|
<R10>1.49011612e-008</R10>
|
|
<R11>-0.99999994</R11>
|
|
<R12>0</R12>
|
|
<R20>-0.99999994</R20>
|
|
<R21>1.49011612e-008</R21>
|
|
<R22>1.49011612e-008</R22>
|
|
</CoordinateFrame>
|
|
<bool name="CanCollide">true</bool>
|
|
<float name="Elasticity">0.5</float>
|
|
<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>
|
|
<token name="Material">256</token>
|
|
<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>4.07127958e-025</X>
|
|
<Y>3.33696291e-022</Y>
|
|
<Z>6.94702468e-025</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>3.64798347e-020</X>
|
|
<Y>0.00686328812</Y>
|
|
<Z>3.64324075e-020</Z>
|
|
</Vector3>
|
|
<token name="formFactorRaw">0</token>
|
|
<token name="shape">1</token>
|
|
<Vector3 name="size">
|
|
<X>2</X>
|
|
<Y>2</Y>
|
|
<Z>1</Z>
|
|
</Vector3>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="Part" referent="RBX183">
|
|
<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>25.4995499</X>
|
|
<Y>33.2026062</Y>
|
|
<Z>-33.7844696</Z>
|
|
<R00>1.49011612e-008</R00>
|
|
<R01>0</R01>
|
|
<R02>-0.999999881</R02>
|
|
<R10>1.49011612e-008</R10>
|
|
<R11>-0.99999994</R11>
|
|
<R12>0</R12>
|
|
<R20>-0.99999994</R20>
|
|
<R21>1.49011612e-008</R21>
|
|
<R22>1.49011612e-008</R22>
|
|
</CoordinateFrame>
|
|
<bool name="CanCollide">false</bool>
|
|
<float name="Elasticity">0.5</float>
|
|
<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>
|
|
<token name="Material">256</token>
|
|
<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>4.07127958e-025</X>
|
|
<Y>3.33696291e-022</Y>
|
|
<Z>6.94702468e-025</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>3.66452934e-020</X>
|
|
<Y>0.00686328812</Y>
|
|
<Z>3.64332218e-020</Z>
|
|
</Vector3>
|
|
<token name="formFactorRaw">0</token>
|
|
<token name="shape">1</token>
|
|
<Vector3 name="size">
|
|
<X>1</X>
|
|
<Y>2</Y>
|
|
<Z>1</Z>
|
|
</Vector3>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="Part" referent="RBX184">
|
|
<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>25.4995499</X>
|
|
<Y>33.2026062</Y>
|
|
<Z>-34.7844696</Z>
|
|
<R00>1.49011612e-008</R00>
|
|
<R01>0</R01>
|
|
<R02>-0.999999881</R02>
|
|
<R10>1.49011612e-008</R10>
|
|
<R11>-0.99999994</R11>
|
|
<R12>0</R12>
|
|
<R20>-0.99999994</R20>
|
|
<R21>1.49011612e-008</R21>
|
|
<R22>1.49011612e-008</R22>
|
|
</CoordinateFrame>
|
|
<bool name="CanCollide">false</bool>
|
|
<float name="Elasticity">0.5</float>
|
|
<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>
|
|
<token name="Material">256</token>
|
|
<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>4.07127958e-025</X>
|
|
<Y>3.33696291e-022</Y>
|
|
<Z>6.94702468e-025</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>3.63115971e-020</X>
|
|
<Y>0.00686328812</Y>
|
|
<Z>3.64332218e-020</Z>
|
|
</Vector3>
|
|
<token name="formFactorRaw">0</token>
|
|
<token name="shape">1</token>
|
|
<Vector3 name="size">
|
|
<X>1</X>
|
|
<Y>2</Y>
|
|
<Z>1</Z>
|
|
</Vector3>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="Humanoid" referent="RBX185">
|
|
<Properties>
|
|
<float name="Health">100</float>
|
|
<float name="MaxHealth">100</float>
|
|
<string name="Name">Humanoid</string>
|
|
<token name="NameOcclusion">0</token>
|
|
<float name="WalkSpeed">16</float>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="Part" referent="RBX186">
|
|
<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">29</int>
|
|
<CoordinateFrame name="CFrame">
|
|
<X>25.9995499</X>
|
|
<Y>30.7026062</Y>
|
|
<Z>-32.7844696</Z>
|
|
<R00>0.999999881</R00>
|
|
<R01>0</R01>
|
|
<R02>1.49011612e-008</R02>
|
|
<R10>0</R10>
|
|
<R11>-0.99999994</R11>
|
|
<R12>1.49011612e-008</R12>
|
|
<R20>-1.49011612e-008</R20>
|
|
<R21>1.49011612e-008</R21>
|
|
<R22>-0.99999994</R22>
|
|
</CoordinateFrame>
|
|
<bool name="CanCollide">true</bool>
|
|
<float name="Elasticity">0.5</float>
|
|
<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>
|
|
<token name="Material">256</token>
|
|
<string name="Name">zarm</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>4.07127958e-025</X>
|
|
<Y>3.33696291e-022</Y>
|
|
<Z>6.94702468e-025</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>3.69807249e-020</X>
|
|
<Y>0.00686328812</Y>
|
|
<Z>3.62653558e-020</Z>
|
|
</Vector3>
|
|
<token name="formFactorRaw">0</token>
|
|
<token name="shape">1</token>
|
|
<Vector3 name="size">
|
|
<X>2</X>
|
|
<Y>1</Y>
|
|
<Z>1</Z>
|
|
</Vector3>
|
|
</Properties>
|
|
<Item class="Script" referent="RBX187">
|
|
<Properties>
|
|
<bool name="Disabled">false</bool>
|
|
<Content name="LinkedSource"><null></null></Content>
|
|
<string name="Name">Script</string>
|
|
<ProtectedString name="Source">wait(1)
|
|
owner=script.Parent.Parent.Name
|
|
|
|
function onTouched(part)
|
|
	if part.Parent ~= nil then
|
|
		local h = part.Parent:findFirstChild("Humanoid")
|
|
			if h~=nil then
|
|
				if cantouch~=0 then
|
|
					if h.Parent.Name~=owner then
|
|
						
|
|
						if h.Parent:findFirstChild("zarm")~=nil then return end
|
|
|
|
						cantouch=0
|
|
|
|
						local larm=h.Parent:findFirstChild("Left Arm")
|
|
						local rarm=h.Parent:findFirstChild("Right Arm")
|
|
						
|
|
						if larm~=nil then
|
|
							larm:remove()
|
|
						end
|
|
						if rarm~=nil then
|
|
							rarm:remove()
|
|
						end
|
|
						local zee=script.Parent.Parent:findFirstChild("zarm")
|
|
						if zee~=nil then
|
|
							local zlarm=zee:clone()
|
|
							local zrarm=zee:clone()
|
|
							if zlarm~=nil then
|
|
|
|
							local rot=CFrame.new(0, 0, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
|
|
								zlarm.CFrame=h.Parent.Torso.CFrame * CFrame.new(Vector3.new(-1.5,0.5,-0.5)) * rot
|
|
								zrarm.CFrame=h.Parent.Torso.CFrame * CFrame.new(Vector3.new(1.5,0.5,-0.5)) * rot
|
|
								zlarm.Parent=h.Parent
|
|
								zrarm.Parent=h.Parent
|
|
								zlarm:makeJoints()
|
|
								zrarm:makeJoints()
|
|
								zlarm.Anchored=false
|
|
								zrarm.Anchored=false
|
|
								wait(0.1)
|
|
								h.Parent.Head.Color=zee.Color
|
|
							else print("no zee"); return end
|
|
						end
|
|
						wait(1)
|
|
						cantouch=1
|
|
					end
|
|
				end
|
|
			end
|
|
	end
|
|
end
|
|
|
|
script.Parent.Touched:connect(onTouched)</ProtectedString>
|
|
</Properties>
|
|
</Item>
|
|
</Item>
|
|
<Item class="Part" referent="RBX188">
|
|
<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">29</int>
|
|
<CoordinateFrame name="CFrame">
|
|
<X>25.9995499</X>
|
|
<Y>30.7026062</Y>
|
|
<Z>-35.7844696</Z>
|
|
<R00>0.999999881</R00>
|
|
<R01>0</R01>
|
|
<R02>1.49011612e-008</R02>
|
|
<R10>0</R10>
|
|
<R11>-0.99999994</R11>
|
|
<R12>1.49011612e-008</R12>
|
|
<R20>-1.49011612e-008</R20>
|
|
<R21>1.49011612e-008</R21>
|
|
<R22>-0.99999994</R22>
|
|
</CoordinateFrame>
|
|
<bool name="CanCollide">true</bool>
|
|
<float name="Elasticity">0.5</float>
|
|
<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>
|
|
<token name="Material">256</token>
|
|
<string name="Name">zarm</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>4.07127958e-025</X>
|
|
<Y>3.33696291e-022</Y>
|
|
<Z>6.94702468e-025</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>3.5979636e-020</X>
|
|
<Y>0.00686328812</Y>
|
|
<Z>3.62653558e-020</Z>
|
|
</Vector3>
|
|
<token name="formFactorRaw">0</token>
|
|
<token name="shape">1</token>
|
|
<Vector3 name="size">
|
|
<X>2</X>
|
|
<Y>1</Y>
|
|
<Z>1</Z>
|
|
</Vector3>
|
|
</Properties>
|
|
<Item class="Script" referent="RBX189">
|
|
<Properties>
|
|
<bool name="Disabled">false</bool>
|
|
<Content name="LinkedSource"><null></null></Content>
|
|
<string name="Name">Script</string>
|
|
<ProtectedString name="Source">wait(1)
|
|
owner=script.Parent.Parent.Name
|
|
|
|
function onTouched(part)
|
|
	if part.Parent ~= nil then
|
|
		local h = part.Parent:findFirstChild("Humanoid")
|
|
			if h~=nil then
|
|
				if cantouch~=0 then
|
|
					if h.Parent.Name~=owner then
|
|
						
|
|
						if h.Parent:findFirstChild("zarm")~=nil then return end
|
|
|
|
						cantouch=0
|
|
|
|
						local larm=h.Parent:findFirstChild("Left Arm")
|
|
						local rarm=h.Parent:findFirstChild("Right Arm")
|
|
						
|
|
						if larm~=nil then
|
|
							larm:remove()
|
|
						end
|
|
						if rarm~=nil then
|
|
							rarm:remove()
|
|
						end
|
|
						local zee=script.Parent.Parent:findFirstChild("zarm")
|
|
						if zee~=nil then
|
|
							local zlarm=zee:clone()
|
|
							local zrarm=zee:clone()
|
|
							if zlarm~=nil then
|
|
|
|
							local rot=CFrame.new(0, 0, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
|
|
								zlarm.CFrame=h.Parent.Torso.CFrame * CFrame.new(Vector3.new(-1.5,0.5,-0.5)) * rot
|
|
								zrarm.CFrame=h.Parent.Torso.CFrame * CFrame.new(Vector3.new(1.5,0.5,-0.5)) * rot
|
|
								zlarm.Parent=h.Parent
|
|
								zrarm.Parent=h.Parent
|
|
								zlarm:makeJoints()
|
|
								zrarm:makeJoints()
|
|
								zlarm.Anchored=false
|
|
								zrarm.Anchored=false
|
|
								wait(0.1)
|
|
								h.Parent.Head.Color=zee.Color
|
|
							else print("no zee"); return end
|
|
						end
|
|
						wait(1)
|
|
						cantouch=1
|
|
					end
|
|
				end
|
|
			end
|
|
	end
|
|
end
|
|
|
|
script.Parent.Touched:connect(onTouched)</ProtectedString>
|
|
</Properties>
|
|
</Item>
|
|
</Item>
|
|
<Item class="ObjectValue" referent="RBX190">
|
|
<Properties>
|
|
<string name="Name">IsNZ</string>
|
|
<Ref name="Value">null</Ref>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="IntValue" referent="RBX191">
|
|
<Properties>
|
|
<string name="Name">Mode</string>
|
|
<int name="Value">0</int>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="Script" referent="RBX192">
|
|
<Properties>
|
|
<bool name="Disabled">false</bool>
|
|
<Content name="LinkedSource"><null></null></Content>
|
|
<string name="Name">Script</string>
|
|
<ProtectedString name="Source">local larm = script.Parent:FindFirstChild("Left Arm")
|
|
local rarm = script.Parent:FindFirstChild("Right Arm")
|
|
|
|
function findNearestTorso(pos)
|
|
	local list = game.Workspace:children()
|
|
	local torso = nil
|
|
	local dist = 1000
|
|
	local temp = nil
|
|
	local human = nil
|
|
	local temp2 = nil
|
|
	for x = 1, #list do
|
|
		temp2 = list[x]
|
|
		if (temp2.className == "Model") and (temp2 ~= script.Parent) then
|
|
			temp = temp2:findFirstChild("Right Arm")
|
|
			human = temp2:findFirstChild("Humanoid")
|
|
			if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then
|
|
				if (temp.Position - pos).magnitude < dist then
|
|
					torso = temp
|
|
					dist = (temp.Position - pos).magnitude
|
|
				end
|
|
			end
|
|
		end
|
|
	end
|
|
	return torso
|
|
end
|
|
|
|
|
|
|
|
|
|
while true do
|
|
	wait(math.random(1,5))
|
|
	local target = findNearestTorso(script.Parent.Torso.Position)
|
|
	if target ~= nil then
|
|
		script.Parent.Humanoid:MoveTo(target.Position, target)
|
|
	end
|
|
|
|
end
|
|
</ProtectedString>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="Script" referent="RBX193">
|
|
<Properties>
|
|
<bool name="Disabled">false</bool>
|
|
<Content name="LinkedSource"><null></null></Content>
|
|
<string name="Name">Health</string>
|
|
<ProtectedString name="Source">function waitForChild(parent, childName)
|
|
	while true do
|
|
		local child = parent:findFirstChild(childName)
|
|
		if child then
|
|
			return child
|
|
		end
|
|
		parent.ChildAdded:wait()
|
|
	end
|
|
end
|
|
|
|
-- declarations
|
|
|
|
local Figure = script.Parent
|
|
local Head = waitForChild(Figure, "Head")
|
|
local Humanoid = waitForChild(Figure, "Humanoid")
|
|
Humanoid.Health=500
|
|
-- regeneration
|
|
while true do
|
|
	local s = wait(4)
|
|
	local health = Humanoid.Health
|
|
	if health > 0 and health < Humanoid.MaxHealth then
|
|
		health = health + 0.08 * s * Humanoid.MaxHealth
|
|
		if health * 1.05 < Humanoid.MaxHealth then
|
|
			Humanoid.Health = health
|
|
		else
|
|
			Humanoid.Health = Humanoid.MaxHealth
|
|
		end
|
|
	end
|
|
end
|
|
</ProtectedString>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="Script" referent="RBX194">
|
|
<Properties>
|
|
<bool name="Disabled">false</bool>
|
|
<Content name="LinkedSource"><null></null></Content>
|
|
<string name="Name">Respawn</string>
|
|
<ProtectedString name="Source">name="Humanoid"
|
|
|
|
robo=script.Parent:clone()
|
|
|
|
while true do
|
|
	wait(1)
|
|
	if script.Parent.Humanoid.Health<1 then
|
|
		robot=robo:clone()
|
|
		robot.Parent=script.Parent.Parent
|
|
		robot:makeJoints()
|
|
		script.Parent:remove()
|
|
	end
|
|
end
|
|
		
|
|
|
|
|
|
</ProtectedString>
|
|
</Properties>
|
|
</Item>
|
|
</Item>
|
|
<Item class="Model" referent="RBX195">
|
|
<Properties>
|
|
<CoordinateFrame name="ModelInPrimary">
|
|
<X>0</X>
|
|
<Y>0</Y>
|
|
<Z>0</Z>
|
|
<R00>1</R00>
|
|
<R01>0</R01>
|
|
<R02>0</R02>
|
|
<R10>0</R10>
|
|
<R11>1</R11>
|
|
<R12>0</R12>
|
|
<R20>0</R20>
|
|
<R21>0</R21>
|
|
<R22>1</R22>
|
|
</CoordinateFrame>
|
|
<string name="Name">Zombie</string>
|
|
<Ref name="PrimaryPart">null</Ref>
|
|
</Properties>
|
|
<Item class="Part" referent="RBX196">
|
|
<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">29</int>
|
|
<CoordinateFrame name="CFrame">
|
|
<X>23.4990921</X>
|
|
<Y>33.4050903</Y>
|
|
<Z>-35.5689545</Z>
|
|
<R00>1.49011612e-008</R00>
|
|
<R01>0</R01>
|
|
<R02>-0.999999881</R02>
|
|
<R10>1.49011612e-008</R10>
|
|
<R11>-0.99999994</R11>
|
|
<R12>0</R12>
|
|
<R20>-0.99999994</R20>
|
|
<R21>1.49011612e-008</R21>
|
|
<R22>1.49011612e-008</R22>
|
|
</CoordinateFrame>
|
|
<bool name="CanCollide">true</bool>
|
|
<float name="Elasticity">0.5</float>
|
|
<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>
|
|
<token name="Material">256</token>
|
|
<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>4.07127958e-025</X>
|
|
<Y>3.33696291e-022</Y>
|
|
<Z>6.94702468e-025</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>3.64808751e-020</X>
|
|
<Y>0.00686328812</Y>
|
|
<Z>3.64317968e-020</Z>
|
|
</Vector3>
|
|
<token name="formFactorRaw">0</token>
|
|
<token name="shape">1</token>
|
|
<Vector3 name="size">
|
|
<X>2</X>
|
|
<Y>1</Y>
|
|
<Z>1</Z>
|
|
</Vector3>
|
|
</Properties>
|
|
<Item class="SpecialMesh" referent="RBX197">
|
|
<Properties>
|
|
<token name="LODX">2</token>
|
|
<token name="LODY">2</token>
|
|
<Content name="MeshId"><null></null></Content>
|
|
<token name="MeshType">0</token>
|
|
<string name="Name">Mesh</string>
|
|
<Vector3 name="Offset">
|
|
<X>0</X>
|
|
<Y>0</Y>
|
|
<Z>0</Z>
|
|
</Vector3>
|
|
<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>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="Decal" referent="RBX198">
|
|
<Properties>
|
|
<token name="Face">5</token>
|
|
<string name="Name">face</string>
|
|
<float name="Shiny">20</float>
|
|
<float name="Specular">0</float>
|
|
<Content name="Texture"><null></null></Content>
|
|
<float name="Transparency">0</float>
|
|
</Properties>
|
|
</Item>
|
|
</Item>
|
|
<Item class="Part" referent="RBX199">
|
|
<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>23.4990921</X>
|
|
<Y>34.9050903</Y>
|
|
<Z>-35.5689545</Z>
|
|
<R00>1.49011612e-008</R00>
|
|
<R01>0</R01>
|
|
<R02>-0.999999881</R02>
|
|
<R10>1.49011612e-008</R10>
|
|
<R11>-0.99999994</R11>
|
|
<R12>0</R12>
|
|
<R20>-0.99999994</R20>
|
|
<R21>1.49011612e-008</R21>
|
|
<R22>1.49011612e-008</R22>
|
|
</CoordinateFrame>
|
|
<bool name="CanCollide">true</bool>
|
|
<float name="Elasticity">0.5</float>
|
|
<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>
|
|
<token name="Material">256</token>
|
|
<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>4.07127958e-025</X>
|
|
<Y>3.33696291e-022</Y>
|
|
<Z>6.94702468e-025</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>3.64798347e-020</X>
|
|
<Y>0.00686328812</Y>
|
|
<Z>3.64324075e-020</Z>
|
|
</Vector3>
|
|
<token name="formFactorRaw">0</token>
|
|
<token name="shape">1</token>
|
|
<Vector3 name="size">
|
|
<X>2</X>
|
|
<Y>2</Y>
|
|
<Z>1</Z>
|
|
</Vector3>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="Part" referent="RBX200">
|
|
<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.4990921</X>
|
|
<Y>36.9050903</Y>
|
|
<Z>-35.0689545</Z>
|
|
<R00>1.49011612e-008</R00>
|
|
<R01>0</R01>
|
|
<R02>-0.999999881</R02>
|
|
<R10>1.49011612e-008</R10>
|
|
<R11>-0.99999994</R11>
|
|
<R12>0</R12>
|
|
<R20>-0.99999994</R20>
|
|
<R21>1.49011612e-008</R21>
|
|
<R22>1.49011612e-008</R22>
|
|
</CoordinateFrame>
|
|
<bool name="CanCollide">false</bool>
|
|
<float name="Elasticity">0.5</float>
|
|
<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>
|
|
<token name="Material">256</token>
|
|
<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>4.07127958e-025</X>
|
|
<Y>3.33696291e-022</Y>
|
|
<Z>6.94702468e-025</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>3.66452934e-020</X>
|
|
<Y>0.00686328812</Y>
|
|
<Z>3.64332218e-020</Z>
|
|
</Vector3>
|
|
<token name="formFactorRaw">0</token>
|
|
<token name="shape">1</token>
|
|
<Vector3 name="size">
|
|
<X>1</X>
|
|
<Y>2</Y>
|
|
<Z>1</Z>
|
|
</Vector3>
|
|
</Properties>
|
|
</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">192</int>
|
|
<CoordinateFrame name="CFrame">
|
|
<X>23.4990921</X>
|
|
<Y>36.9050903</Y>
|
|
<Z>-36.0689545</Z>
|
|
<R00>1.49011612e-008</R00>
|
|
<R01>0</R01>
|
|
<R02>-0.999999881</R02>
|
|
<R10>1.49011612e-008</R10>
|
|
<R11>-0.99999994</R11>
|
|
<R12>0</R12>
|
|
<R20>-0.99999994</R20>
|
|
<R21>1.49011612e-008</R21>
|
|
<R22>1.49011612e-008</R22>
|
|
</CoordinateFrame>
|
|
<bool name="CanCollide">false</bool>
|
|
<float name="Elasticity">0.5</float>
|
|
<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>
|
|
<token name="Material">256</token>
|
|
<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>4.07127958e-025</X>
|
|
<Y>3.33696291e-022</Y>
|
|
<Z>6.94702468e-025</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>3.63115971e-020</X>
|
|
<Y>0.00686328812</Y>
|
|
<Z>3.64332218e-020</Z>
|
|
</Vector3>
|
|
<token name="formFactorRaw">0</token>
|
|
<token name="shape">1</token>
|
|
<Vector3 name="size">
|
|
<X>1</X>
|
|
<Y>2</Y>
|
|
<Z>1</Z>
|
|
</Vector3>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="Humanoid" referent="RBX202">
|
|
<Properties>
|
|
<float name="Health">100</float>
|
|
<float name="MaxHealth">100</float>
|
|
<string name="Name">Humanoid</string>
|
|
<token name="NameOcclusion">0</token>
|
|
<float name="WalkSpeed">16</float>
|
|
</Properties>
|
|
</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">29</int>
|
|
<CoordinateFrame name="CFrame">
|
|
<X>23.9990921</X>
|
|
<Y>34.4050903</Y>
|
|
<Z>-34.0689545</Z>
|
|
<R00>0.999999881</R00>
|
|
<R01>0</R01>
|
|
<R02>1.49011612e-008</R02>
|
|
<R10>0</R10>
|
|
<R11>-0.99999994</R11>
|
|
<R12>1.49011612e-008</R12>
|
|
<R20>-1.49011612e-008</R20>
|
|
<R21>1.49011612e-008</R21>
|
|
<R22>-0.99999994</R22>
|
|
</CoordinateFrame>
|
|
<bool name="CanCollide">true</bool>
|
|
<float name="Elasticity">0.5</float>
|
|
<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>
|
|
<token name="Material">256</token>
|
|
<string name="Name">zarm</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>4.07127958e-025</X>
|
|
<Y>3.33696291e-022</Y>
|
|
<Z>6.94702468e-025</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>3.69807249e-020</X>
|
|
<Y>0.00686328812</Y>
|
|
<Z>3.62653558e-020</Z>
|
|
</Vector3>
|
|
<token name="formFactorRaw">0</token>
|
|
<token name="shape">1</token>
|
|
<Vector3 name="size">
|
|
<X>2</X>
|
|
<Y>1</Y>
|
|
<Z>1</Z>
|
|
</Vector3>
|
|
</Properties>
|
|
<Item class="Script" referent="RBX204">
|
|
<Properties>
|
|
<bool name="Disabled">false</bool>
|
|
<Content name="LinkedSource"><null></null></Content>
|
|
<string name="Name">Script</string>
|
|
<ProtectedString name="Source">wait(1)
|
|
owner=script.Parent.Parent.Name
|
|
|
|
function onTouched(part)
|
|
	if part.Parent ~= nil then
|
|
		local h = part.Parent:findFirstChild("Humanoid")
|
|
			if h~=nil then
|
|
				if cantouch~=0 then
|
|
					if h.Parent.Name~=owner then
|
|
						
|
|
						if h.Parent:findFirstChild("zarm")~=nil then return end
|
|
|
|
						cantouch=0
|
|
|
|
						local larm=h.Parent:findFirstChild("Left Arm")
|
|
						local rarm=h.Parent:findFirstChild("Right Arm")
|
|
						
|
|
						if larm~=nil then
|
|
							larm:remove()
|
|
						end
|
|
						if rarm~=nil then
|
|
							rarm:remove()
|
|
						end
|
|
						local zee=script.Parent.Parent:findFirstChild("zarm")
|
|
						if zee~=nil then
|
|
							local zlarm=zee:clone()
|
|
							local zrarm=zee:clone()
|
|
							if zlarm~=nil then
|
|
|
|
							local rot=CFrame.new(0, 0, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
|
|
								zlarm.CFrame=h.Parent.Torso.CFrame * CFrame.new(Vector3.new(-1.5,0.5,-0.5)) * rot
|
|
								zrarm.CFrame=h.Parent.Torso.CFrame * CFrame.new(Vector3.new(1.5,0.5,-0.5)) * rot
|
|
								zlarm.Parent=h.Parent
|
|
								zrarm.Parent=h.Parent
|
|
								zlarm:makeJoints()
|
|
								zrarm:makeJoints()
|
|
								zlarm.Anchored=false
|
|
								zrarm.Anchored=false
|
|
								wait(0.1)
|
|
								h.Parent.Head.Color=zee.Color
|
|
							else print("no zee"); return end
|
|
						end
|
|
						wait(1)
|
|
						cantouch=1
|
|
					end
|
|
				end
|
|
			end
|
|
	end
|
|
end
|
|
|
|
script.Parent.Touched:connect(onTouched)</ProtectedString>
|
|
</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">29</int>
|
|
<CoordinateFrame name="CFrame">
|
|
<X>23.9990921</X>
|
|
<Y>34.4050903</Y>
|
|
<Z>-37.0689545</Z>
|
|
<R00>0.999999881</R00>
|
|
<R01>0</R01>
|
|
<R02>1.49011612e-008</R02>
|
|
<R10>0</R10>
|
|
<R11>-0.99999994</R11>
|
|
<R12>1.49011612e-008</R12>
|
|
<R20>-1.49011612e-008</R20>
|
|
<R21>1.49011612e-008</R21>
|
|
<R22>-0.99999994</R22>
|
|
</CoordinateFrame>
|
|
<bool name="CanCollide">true</bool>
|
|
<float name="Elasticity">0.5</float>
|
|
<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>
|
|
<token name="Material">256</token>
|
|
<string name="Name">zarm</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>4.07127958e-025</X>
|
|
<Y>3.33696291e-022</Y>
|
|
<Z>6.94702468e-025</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>3.5979636e-020</X>
|
|
<Y>0.00686328812</Y>
|
|
<Z>3.62653558e-020</Z>
|
|
</Vector3>
|
|
<token name="formFactorRaw">0</token>
|
|
<token name="shape">1</token>
|
|
<Vector3 name="size">
|
|
<X>2</X>
|
|
<Y>1</Y>
|
|
<Z>1</Z>
|
|
</Vector3>
|
|
</Properties>
|
|
<Item class="Script" referent="RBX206">
|
|
<Properties>
|
|
<bool name="Disabled">false</bool>
|
|
<Content name="LinkedSource"><null></null></Content>
|
|
<string name="Name">Script</string>
|
|
<ProtectedString name="Source">wait(1)
|
|
owner=script.Parent.Parent.Name
|
|
|
|
function onTouched(part)
|
|
	if part.Parent ~= nil then
|
|
		local h = part.Parent:findFirstChild("Humanoid")
|
|
			if h~=nil then
|
|
				if cantouch~=0 then
|
|
					if h.Parent.Name~=owner then
|
|
						
|
|
						if h.Parent:findFirstChild("zarm")~=nil then return end
|
|
|
|
						cantouch=0
|
|
|
|
						local larm=h.Parent:findFirstChild("Left Arm")
|
|
						local rarm=h.Parent:findFirstChild("Right Arm")
|
|
						
|
|
						if larm~=nil then
|
|
							larm:remove()
|
|
						end
|
|
						if rarm~=nil then
|
|
							rarm:remove()
|
|
						end
|
|
						local zee=script.Parent.Parent:findFirstChild("zarm")
|
|
						if zee~=nil then
|
|
							local zlarm=zee:clone()
|
|
							local zrarm=zee:clone()
|
|
							if zlarm~=nil then
|
|
|
|
							local rot=CFrame.new(0, 0, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
|
|
								zlarm.CFrame=h.Parent.Torso.CFrame * CFrame.new(Vector3.new(-1.5,0.5,-0.5)) * rot
|
|
								zrarm.CFrame=h.Parent.Torso.CFrame * CFrame.new(Vector3.new(1.5,0.5,-0.5)) * rot
|
|
								zlarm.Parent=h.Parent
|
|
								zrarm.Parent=h.Parent
|
|
								zlarm:makeJoints()
|
|
								zrarm:makeJoints()
|
|
								zlarm.Anchored=false
|
|
								zrarm.Anchored=false
|
|
								wait(0.1)
|
|
								h.Parent.Head.Color=zee.Color
|
|
							else print("no zee"); return end
|
|
						end
|
|
						wait(1)
|
|
						cantouch=1
|
|
					end
|
|
				end
|
|
			end
|
|
	end
|
|
end
|
|
|
|
script.Parent.Touched:connect(onTouched)</ProtectedString>
|
|
</Properties>
|
|
</Item>
|
|
</Item>
|
|
<Item class="ObjectValue" referent="RBX207">
|
|
<Properties>
|
|
<string name="Name">IsNZ</string>
|
|
<Ref name="Value">null</Ref>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="IntValue" referent="RBX208">
|
|
<Properties>
|
|
<string name="Name">Mode</string>
|
|
<int name="Value">0</int>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="Script" referent="RBX209">
|
|
<Properties>
|
|
<bool name="Disabled">false</bool>
|
|
<Content name="LinkedSource"><null></null></Content>
|
|
<string name="Name">Script</string>
|
|
<ProtectedString name="Source">local larm = script.Parent:FindFirstChild("Left Arm")
|
|
local rarm = script.Parent:FindFirstChild("Right Arm")
|
|
|
|
function findNearestTorso(pos)
|
|
	local list = game.Workspace:children()
|
|
	local torso = nil
|
|
	local dist = 1000
|
|
	local temp = nil
|
|
	local human = nil
|
|
	local temp2 = nil
|
|
	for x = 1, #list do
|
|
		temp2 = list[x]
|
|
		if (temp2.className == "Model") and (temp2 ~= script.Parent) then
|
|
			temp = temp2:findFirstChild("Right Arm")
|
|
			human = temp2:findFirstChild("Humanoid")
|
|
			if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then
|
|
				if (temp.Position - pos).magnitude < dist then
|
|
					torso = temp
|
|
					dist = (temp.Position - pos).magnitude
|
|
				end
|
|
			end
|
|
		end
|
|
	end
|
|
	return torso
|
|
end
|
|
|
|
|
|
|
|
|
|
while true do
|
|
	wait(math.random(1,5))
|
|
	local target = findNearestTorso(script.Parent.Torso.Position)
|
|
	if target ~= nil then
|
|
		script.Parent.Humanoid:MoveTo(target.Position, target)
|
|
	end
|
|
|
|
end
|
|
</ProtectedString>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="Script" referent="RBX210">
|
|
<Properties>
|
|
<bool name="Disabled">false</bool>
|
|
<Content name="LinkedSource"><null></null></Content>
|
|
<string name="Name">Health</string>
|
|
<ProtectedString name="Source">function waitForChild(parent, childName)
|
|
	while true do
|
|
		local child = parent:findFirstChild(childName)
|
|
		if child then
|
|
			return child
|
|
		end
|
|
		parent.ChildAdded:wait()
|
|
	end
|
|
end
|
|
|
|
-- declarations
|
|
|
|
local Figure = script.Parent
|
|
local Head = waitForChild(Figure, "Head")
|
|
local Humanoid = waitForChild(Figure, "Humanoid")
|
|
Humanoid.Health=500
|
|
-- regeneration
|
|
while true do
|
|
	local s = wait(4)
|
|
	local health = Humanoid.Health
|
|
	if health > 0 and health < Humanoid.MaxHealth then
|
|
		health = health + 0.08 * s * Humanoid.MaxHealth
|
|
		if health * 1.05 < Humanoid.MaxHealth then
|
|
			Humanoid.Health = health
|
|
		else
|
|
			Humanoid.Health = Humanoid.MaxHealth
|
|
		end
|
|
	end
|
|
end
|
|
</ProtectedString>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="Script" referent="RBX211">
|
|
<Properties>
|
|
<bool name="Disabled">false</bool>
|
|
<Content name="LinkedSource"><null></null></Content>
|
|
<string name="Name">Respawn</string>
|
|
<ProtectedString name="Source">name="Humanoid"
|
|
|
|
robo=script.Parent:clone()
|
|
|
|
while true do
|
|
	wait(1)
|
|
	if script.Parent.Humanoid.Health<1 then
|
|
		robot=robo:clone()
|
|
		robot.Parent=script.Parent.Parent
|
|
		robot:makeJoints()
|
|
		script.Parent:remove()
|
|
	end
|
|
end
|
|
		
|
|
|
|
|
|
</ProtectedString>
|
|
</Properties>
|
|
</Item>
|
|
</Item>
|
|
<Item class="Model" referent="RBX212">
|
|
<Properties>
|
|
<CoordinateFrame name="ModelInPrimary">
|
|
<X>0</X>
|
|
<Y>0</Y>
|
|
<Z>0</Z>
|
|
<R00>1</R00>
|
|
<R01>0</R01>
|
|
<R02>0</R02>
|
|
<R10>0</R10>
|
|
<R11>1</R11>
|
|
<R12>0</R12>
|
|
<R20>0</R20>
|
|
<R21>0</R21>
|
|
<R22>1</R22>
|
|
</CoordinateFrame>
|
|
<string name="Name">Zombie</string>
|
|
<Ref name="PrimaryPart">null</Ref>
|
|
</Properties>
|
|
<Item class="Part" referent="RBX213">
|
|
<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">29</int>
|
|
<CoordinateFrame name="CFrame">
|
|
<X>8.83551025</X>
|
|
<Y>41.5651093</Y>
|
|
<Z>-30.7298489</Z>
|
|
<R00>-0.454648674</R00>
|
|
<R01>-0.540302277</R01>
|
|
<R02>-0.708073378</R02>
|
|
<R10>0.291926563</R10>
|
|
<R11>-0.841470957</R11>
|
|
<R12>0.454648674</R12>
|
|
<R20>-0.841470957</R20>
|
|
<R21>0</R21>
|
|
<R22>0.540302277</R22>
|
|
</CoordinateFrame>
|
|
<bool name="CanCollide">true</bool>
|
|
<float name="Elasticity">0.5</float>
|
|
<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>
|
|
<token name="Material">256</token>
|
|
<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>4.07127958e-025</X>
|
|
<Y>3.33696291e-022</Y>
|
|
<Z>6.94702468e-025</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>3.64807103e-020</X>
|
|
<Y>0.00686328812</Y>
|
|
<Z>3.67023398e-020</Z>
|
|
</Vector3>
|
|
<token name="formFactorRaw">0</token>
|
|
<token name="shape">1</token>
|
|
<Vector3 name="size">
|
|
<X>2</X>
|
|
<Y>1</Y>
|
|
<Z>1</Z>
|
|
</Vector3>
|
|
</Properties>
|
|
<Item class="SpecialMesh" referent="RBX214">
|
|
<Properties>
|
|
<token name="LODX">2</token>
|
|
<token name="LODY">2</token>
|
|
<Content name="MeshId"><null></null></Content>
|
|
<token name="MeshType">0</token>
|
|
<string name="Name">Mesh</string>
|
|
<Vector3 name="Offset">
|
|
<X>0</X>
|
|
<Y>0</Y>
|
|
<Z>0</Z>
|
|
</Vector3>
|
|
<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>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="Decal" referent="RBX215">
|
|
<Properties>
|
|
<token name="Face">5</token>
|
|
<string name="Name">face</string>
|
|
<float name="Shiny">20</float>
|
|
<float name="Specular">0</float>
|
|
<Content name="Texture"><null></null></Content>
|
|
<float name="Transparency">0</float>
|
|
</Properties>
|
|
</Item>
|
|
</Item>
|
|
<Item class="Part" referent="RBX216">
|
|
<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>9.64596367</X>
|
|
<Y>42.8273163</Y>
|
|
<Z>-30.7298489</Z>
|
|
<R00>-0.454648674</R00>
|
|
<R01>-0.540302277</R01>
|
|
<R02>-0.708073378</R02>
|
|
<R10>0.291926563</R10>
|
|
<R11>-0.841470957</R11>
|
|
<R12>0.454648674</R12>
|
|
<R20>-0.841470957</R20>
|
|
<R21>0</R21>
|
|
<R22>0.540302277</R22>
|
|
</CoordinateFrame>
|
|
<bool name="CanCollide">true</bool>
|
|
<float name="Elasticity">0.5</float>
|
|
<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>
|
|
<token name="Material">256</token>
|
|
<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>4.07127958e-025</X>
|
|
<Y>3.33696291e-022</Y>
|
|
<Z>6.94702468e-025</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>3.64798347e-020</X>
|
|
<Y>0.00686328812</Y>
|
|
<Z>3.64324075e-020</Z>
|
|
</Vector3>
|
|
<token name="formFactorRaw">0</token>
|
|
<token name="shape">1</token>
|
|
<Vector3 name="size">
|
|
<X>2</X>
|
|
<Y>2</Y>
|
|
<Z>1</Z>
|
|
</Vector3>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="Part" referent="RBX217">
|
|
<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>10.9538927</X>
|
|
<Y>44.364296</Y>
|
|
<Z>-30.3091125</Z>
|
|
<R00>-0.454648674</R00>
|
|
<R01>-0.540302277</R01>
|
|
<R02>-0.708073378</R02>
|
|
<R10>0.291926563</R10>
|
|
<R11>-0.841470957</R11>
|
|
<R12>0.454648674</R12>
|
|
<R20>-0.841470957</R20>
|
|
<R21>0</R21>
|
|
<R22>0.540302277</R22>
|
|
</CoordinateFrame>
|
|
<bool name="CanCollide">false</bool>
|
|
<float name="Elasticity">0.5</float>
|
|
<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>
|
|
<token name="Material">256</token>
|
|
<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>4.07127958e-025</X>
|
|
<Y>3.33696291e-022</Y>
|
|
<Z>6.94702468e-025</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>3.66191662e-020</X>
|
|
<Y>0.00686328812</Y>
|
|
<Z>3.59965835e-020</Z>
|
|
</Vector3>
|
|
<token name="formFactorRaw">0</token>
|
|
<token name="shape">1</token>
|
|
<Vector3 name="size">
|
|
<X>1</X>
|
|
<Y>2</Y>
|
|
<Z>1</Z>
|
|
</Vector3>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="Part" referent="RBX218">
|
|
<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>10.4992437</X>
|
|
<Y>44.6562233</Y>
|
|
<Z>-31.1505852</Z>
|
|
<R00>-0.454648674</R00>
|
|
<R01>-0.540302277</R01>
|
|
<R02>-0.708073378</R02>
|
|
<R10>0.291926563</R10>
|
|
<R11>-0.841470957</R11>
|
|
<R12>0.454648674</R12>
|
|
<R20>-0.841470957</R20>
|
|
<R21>0</R21>
|
|
<R22>0.540302277</R22>
|
|
</CoordinateFrame>
|
|
<bool name="CanCollide">false</bool>
|
|
<float name="Elasticity">0.5</float>
|
|
<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>
|
|
<token name="Material">256</token>
|
|
<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>4.07127958e-025</X>
|
|
<Y>3.33696291e-022</Y>
|
|
<Z>6.94702468e-025</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>3.63381671e-020</X>
|
|
<Y>0.00686328812</Y>
|
|
<Z>3.61484164e-020</Z>
|
|
</Vector3>
|
|
<token name="formFactorRaw">0</token>
|
|
<token name="shape">1</token>
|
|
<Vector3 name="size">
|
|
<X>1</X>
|
|
<Y>2</Y>
|
|
<Z>1</Z>
|
|
</Vector3>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="Humanoid" referent="RBX219">
|
|
<Properties>
|
|
<float name="Health">100</float>
|
|
<float name="MaxHealth">100</float>
|
|
<string name="Name">Humanoid</string>
|
|
<token name="NameOcclusion">0</token>
|
|
<float name="WalkSpeed">16</float>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="Part" referent="RBX220">
|
|
<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">29</int>
|
|
<CoordinateFrame name="CFrame">
|
|
<X>10.4118223</X>
|
|
<Y>41.7413673</Y>
|
|
<Z>-29.737793</Z>
|
|
<R00>0.708073378</R00>
|
|
<R01>-0.540302277</R01>
|
|
<R02>-0.454648674</R02>
|
|
<R10>-0.454648674</R10>
|
|
<R11>-0.841470957</R11>
|
|
<R12>0.291926563</R12>
|
|
<R20>-0.540302277</R20>
|
|
<R21>0</R21>
|
|
<R22>-0.841470957</R22>
|
|
</CoordinateFrame>
|
|
<bool name="CanCollide">true</bool>
|
|
<float name="Elasticity">0.5</float>
|
|
<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>
|
|
<token name="Material">256</token>
|
|
<string name="Name">zarm</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>4.07127958e-025</X>
|
|
<Y>3.33696291e-022</Y>
|
|
<Z>6.94702468e-025</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>3.68116343e-020</X>
|
|
<Y>0.00686328812</Y>
|
|
<Z>3.61764016e-020</Z>
|
|
</Vector3>
|
|
<token name="formFactorRaw">0</token>
|
|
<token name="shape">1</token>
|
|
<Vector3 name="size">
|
|
<X>2</X>
|
|
<Y>1</Y>
|
|
<Z>1</Z>
|
|
</Vector3>
|
|
</Properties>
|
|
<Item class="Script" referent="RBX221">
|
|
<Properties>
|
|
<bool name="Disabled">false</bool>
|
|
<Content name="LinkedSource"><null></null></Content>
|
|
<string name="Name">Script</string>
|
|
<ProtectedString name="Source">wait(1)
|
|
owner=script.Parent.Parent.Name
|
|
|
|
function onTouched(part)
|
|
	if part.Parent ~= nil then
|
|
		local h = part.Parent:findFirstChild("Humanoid")
|
|
			if h~=nil then
|
|
				if cantouch~=0 then
|
|
					if h.Parent.Name~=owner then
|
|
						
|
|
						if h.Parent:findFirstChild("zarm")~=nil then return end
|
|
|
|
						cantouch=0
|
|
|
|
						local larm=h.Parent:findFirstChild("Left Arm")
|
|
						local rarm=h.Parent:findFirstChild("Right Arm")
|
|
						
|
|
						if larm~=nil then
|
|
							larm:remove()
|
|
						end
|
|
						if rarm~=nil then
|
|
							rarm:remove()
|
|
						end
|
|
						local zee=script.Parent.Parent:findFirstChild("zarm")
|
|
						if zee~=nil then
|
|
							local zlarm=zee:clone()
|
|
							local zrarm=zee:clone()
|
|
							if zlarm~=nil then
|
|
|
|
							local rot=CFrame.new(0, 0, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
|
|
								zlarm.CFrame=h.Parent.Torso.CFrame * CFrame.new(Vector3.new(-1.5,0.5,-0.5)) * rot
|
|
								zrarm.CFrame=h.Parent.Torso.CFrame * CFrame.new(Vector3.new(1.5,0.5,-0.5)) * rot
|
|
								zlarm.Parent=h.Parent
|
|
								zrarm.Parent=h.Parent
|
|
								zlarm:makeJoints()
|
|
								zrarm:makeJoints()
|
|
								zlarm.Anchored=false
|
|
								zrarm.Anchored=false
|
|
								wait(0.1)
|
|
								h.Parent.Head.Color=zee.Color
|
|
							else print("no zee"); return end
|
|
						end
|
|
						wait(1)
|
|
						cantouch=1
|
|
					end
|
|
				end
|
|
			end
|
|
	end
|
|
end
|
|
|
|
script.Parent.Touched:connect(onTouched)</ProtectedString>
|
|
</Properties>
|
|
</Item>
|
|
</Item>
|
|
<Item class="Part" referent="RBX222">
|
|
<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">29</int>
|
|
<CoordinateFrame name="CFrame">
|
|
<X>9.04787636</X>
|
|
<Y>42.6171455</Y>
|
|
<Z>-32.262207</Z>
|
|
<R00>0.708073378</R00>
|
|
<R01>-0.540302277</R01>
|
|
<R02>-0.454648674</R02>
|
|
<R10>-0.454648674</R10>
|
|
<R11>-0.841470957</R11>
|
|
<R12>0.291926563</R12>
|
|
<R20>-0.540302277</R20>
|
|
<R21>0</R21>
|
|
<R22>-0.841470957</R22>
|
|
</CoordinateFrame>
|
|
<bool name="CanCollide">true</bool>
|
|
<float name="Elasticity">0.5</float>
|
|
<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>
|
|
<token name="Material">256</token>
|
|
<string name="Name">zarm</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>4.07127958e-025</X>
|
|
<Y>3.33696291e-022</Y>
|
|
<Z>6.94702468e-025</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>3.59686371e-020</X>
|
|
<Y>0.00686328812</Y>
|
|
<Z>3.66319002e-020</Z>
|
|
</Vector3>
|
|
<token name="formFactorRaw">0</token>
|
|
<token name="shape">1</token>
|
|
<Vector3 name="size">
|
|
<X>2</X>
|
|
<Y>1</Y>
|
|
<Z>1</Z>
|
|
</Vector3>
|
|
</Properties>
|
|
<Item class="Script" referent="RBX223">
|
|
<Properties>
|
|
<bool name="Disabled">false</bool>
|
|
<Content name="LinkedSource"><null></null></Content>
|
|
<string name="Name">Script</string>
|
|
<ProtectedString name="Source">wait(1)
|
|
owner=script.Parent.Parent.Name
|
|
|
|
function onTouched(part)
|
|
	if part.Parent ~= nil then
|
|
		local h = part.Parent:findFirstChild("Humanoid")
|
|
			if h~=nil then
|
|
				if cantouch~=0 then
|
|
					if h.Parent.Name~=owner then
|
|
						
|
|
						if h.Parent:findFirstChild("zarm")~=nil then return end
|
|
|
|
						cantouch=0
|
|
|
|
						local larm=h.Parent:findFirstChild("Left Arm")
|
|
						local rarm=h.Parent:findFirstChild("Right Arm")
|
|
						
|
|
						if larm~=nil then
|
|
							larm:remove()
|
|
						end
|
|
						if rarm~=nil then
|
|
							rarm:remove()
|
|
						end
|
|
						local zee=script.Parent.Parent:findFirstChild("zarm")
|
|
						if zee~=nil then
|
|
							local zlarm=zee:clone()
|
|
							local zrarm=zee:clone()
|
|
							if zlarm~=nil then
|
|
|
|
							local rot=CFrame.new(0, 0, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
|
|
								zlarm.CFrame=h.Parent.Torso.CFrame * CFrame.new(Vector3.new(-1.5,0.5,-0.5)) * rot
|
|
								zrarm.CFrame=h.Parent.Torso.CFrame * CFrame.new(Vector3.new(1.5,0.5,-0.5)) * rot
|
|
								zlarm.Parent=h.Parent
|
|
								zrarm.Parent=h.Parent
|
|
								zlarm:makeJoints()
|
|
								zrarm:makeJoints()
|
|
								zlarm.Anchored=false
|
|
								zrarm.Anchored=false
|
|
								wait(0.1)
|
|
								h.Parent.Head.Color=zee.Color
|
|
							else print("no zee"); return end
|
|
						end
|
|
						wait(1)
|
|
						cantouch=1
|
|
					end
|
|
				end
|
|
			end
|
|
	end
|
|
end
|
|
|
|
script.Parent.Touched:connect(onTouched)</ProtectedString>
|
|
</Properties>
|
|
</Item>
|
|
</Item>
|
|
<Item class="ObjectValue" referent="RBX224">
|
|
<Properties>
|
|
<string name="Name">IsNZ</string>
|
|
<Ref name="Value">null</Ref>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="IntValue" referent="RBX225">
|
|
<Properties>
|
|
<string name="Name">Mode</string>
|
|
<int name="Value">0</int>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="Script" referent="RBX226">
|
|
<Properties>
|
|
<bool name="Disabled">false</bool>
|
|
<Content name="LinkedSource"><null></null></Content>
|
|
<string name="Name">Script</string>
|
|
<ProtectedString name="Source">local larm = script.Parent:FindFirstChild("Left Arm")
|
|
local rarm = script.Parent:FindFirstChild("Right Arm")
|
|
|
|
function findNearestTorso(pos)
|
|
	local list = game.Workspace:children()
|
|
	local torso = nil
|
|
	local dist = 1000
|
|
	local temp = nil
|
|
	local human = nil
|
|
	local temp2 = nil
|
|
	for x = 1, #list do
|
|
		temp2 = list[x]
|
|
		if (temp2.className == "Model") and (temp2 ~= script.Parent) then
|
|
			temp = temp2:findFirstChild("Right Arm")
|
|
			human = temp2:findFirstChild("Humanoid")
|
|
			if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then
|
|
				if (temp.Position - pos).magnitude < dist then
|
|
					torso = temp
|
|
					dist = (temp.Position - pos).magnitude
|
|
				end
|
|
			end
|
|
		end
|
|
	end
|
|
	return torso
|
|
end
|
|
|
|
|
|
|
|
|
|
while true do
|
|
	wait(math.random(1,5))
|
|
	local target = findNearestTorso(script.Parent.Torso.Position)
|
|
	if target ~= nil then
|
|
		script.Parent.Humanoid:MoveTo(target.Position, target)
|
|
	end
|
|
|
|
end
|
|
</ProtectedString>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="Script" referent="RBX227">
|
|
<Properties>
|
|
<bool name="Disabled">false</bool>
|
|
<Content name="LinkedSource"><null></null></Content>
|
|
<string name="Name">Health</string>
|
|
<ProtectedString name="Source">function waitForChild(parent, childName)
|
|
	while true do
|
|
		local child = parent:findFirstChild(childName)
|
|
		if child then
|
|
			return child
|
|
		end
|
|
		parent.ChildAdded:wait()
|
|
	end
|
|
end
|
|
|
|
-- declarations
|
|
|
|
local Figure = script.Parent
|
|
local Head = waitForChild(Figure, "Head")
|
|
local Humanoid = waitForChild(Figure, "Humanoid")
|
|
Humanoid.Health=500
|
|
-- regeneration
|
|
while true do
|
|
	local s = wait(4)
|
|
	local health = Humanoid.Health
|
|
	if health > 0 and health < Humanoid.MaxHealth then
|
|
		health = health + 0.08 * s * Humanoid.MaxHealth
|
|
		if health * 1.05 < Humanoid.MaxHealth then
|
|
			Humanoid.Health = health
|
|
		else
|
|
			Humanoid.Health = Humanoid.MaxHealth
|
|
		end
|
|
	end
|
|
end
|
|
</ProtectedString>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="Script" referent="RBX228">
|
|
<Properties>
|
|
<bool name="Disabled">false</bool>
|
|
<Content name="LinkedSource"><null></null></Content>
|
|
<string name="Name">Respawn</string>
|
|
<ProtectedString name="Source">name="Humanoid"
|
|
|
|
robo=script.Parent:clone()
|
|
|
|
while true do
|
|
	wait(1)
|
|
	if script.Parent.Humanoid.Health<1 then
|
|
		robot=robo:clone()
|
|
		robot.Parent=script.Parent.Parent
|
|
		robot:makeJoints()
|
|
		script.Parent:remove()
|
|
	end
|
|
end
|
|
		
|
|
|
|
|
|
</ProtectedString>
|
|
</Properties>
|
|
</Item>
|
|
</Item>
|
|
<Item class="Model" referent="RBX229">
|
|
<Properties>
|
|
<CoordinateFrame name="ModelInPrimary">
|
|
<X>0</X>
|
|
<Y>0</Y>
|
|
<Z>0</Z>
|
|
<R00>1</R00>
|
|
<R01>0</R01>
|
|
<R02>0</R02>
|
|
<R10>0</R10>
|
|
<R11>1</R11>
|
|
<R12>0</R12>
|
|
<R20>0</R20>
|
|
<R21>0</R21>
|
|
<R22>1</R22>
|
|
</CoordinateFrame>
|
|
<string name="Name">Zombie</string>
|
|
<Ref name="PrimaryPart">null</Ref>
|
|
</Properties>
|
|
<Item class="Part" referent="RBX230">
|
|
<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">29</int>
|
|
<CoordinateFrame name="CFrame">
|
|
<X>4.83551025</X>
|
|
<Y>27.1651154</Y>
|
|
<Z>-7.72984886</Z>
|
|
<R00>-0.454648674</R00>
|
|
<R01>-0.540302277</R01>
|
|
<R02>-0.708073378</R02>
|
|
<R10>0.291926563</R10>
|
|
<R11>-0.841470957</R11>
|
|
<R12>0.454648674</R12>
|
|
<R20>-0.841470957</R20>
|
|
<R21>0</R21>
|
|
<R22>0.540302277</R22>
|
|
</CoordinateFrame>
|
|
<bool name="CanCollide">true</bool>
|
|
<float name="Elasticity">0.5</float>
|
|
<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>
|
|
<token name="Material">256</token>
|
|
<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>4.07127958e-025</X>
|
|
<Y>3.33696291e-022</Y>
|
|
<Z>6.94702468e-025</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>3.64807103e-020</X>
|
|
<Y>0.00686328812</Y>
|
|
<Z>3.67023398e-020</Z>
|
|
</Vector3>
|
|
<token name="formFactorRaw">0</token>
|
|
<token name="shape">1</token>
|
|
<Vector3 name="size">
|
|
<X>2</X>
|
|
<Y>1</Y>
|
|
<Z>1</Z>
|
|
</Vector3>
|
|
</Properties>
|
|
<Item class="SpecialMesh" referent="RBX231">
|
|
<Properties>
|
|
<token name="LODX">2</token>
|
|
<token name="LODY">2</token>
|
|
<Content name="MeshId"><null></null></Content>
|
|
<token name="MeshType">0</token>
|
|
<string name="Name">Mesh</string>
|
|
<Vector3 name="Offset">
|
|
<X>0</X>
|
|
<Y>0</Y>
|
|
<Z>0</Z>
|
|
</Vector3>
|
|
<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>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="Decal" referent="RBX232">
|
|
<Properties>
|
|
<token name="Face">5</token>
|
|
<string name="Name">face</string>
|
|
<float name="Shiny">20</float>
|
|
<float name="Specular">0</float>
|
|
<Content name="Texture"><null></null></Content>
|
|
<float name="Transparency">0</float>
|
|
</Properties>
|
|
</Item>
|
|
</Item>
|
|
<Item class="Part" referent="RBX233">
|
|
<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>5.64596367</X>
|
|
<Y>28.4273224</Y>
|
|
<Z>-7.72984886</Z>
|
|
<R00>-0.454648674</R00>
|
|
<R01>-0.540302277</R01>
|
|
<R02>-0.708073378</R02>
|
|
<R10>0.291926563</R10>
|
|
<R11>-0.841470957</R11>
|
|
<R12>0.454648674</R12>
|
|
<R20>-0.841470957</R20>
|
|
<R21>0</R21>
|
|
<R22>0.540302277</R22>
|
|
</CoordinateFrame>
|
|
<bool name="CanCollide">true</bool>
|
|
<float name="Elasticity">0.5</float>
|
|
<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>
|
|
<token name="Material">256</token>
|
|
<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>4.07127958e-025</X>
|
|
<Y>3.33696291e-022</Y>
|
|
<Z>6.94702468e-025</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>3.64798347e-020</X>
|
|
<Y>0.00686328812</Y>
|
|
<Z>3.64324075e-020</Z>
|
|
</Vector3>
|
|
<token name="formFactorRaw">0</token>
|
|
<token name="shape">1</token>
|
|
<Vector3 name="size">
|
|
<X>2</X>
|
|
<Y>2</Y>
|
|
<Z>1</Z>
|
|
</Vector3>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="Part" referent="RBX234">
|
|
<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>6.95389271</X>
|
|
<Y>29.9643002</Y>
|
|
<Z>-7.3091135</Z>
|
|
<R00>-0.454648674</R00>
|
|
<R01>-0.540302277</R01>
|
|
<R02>-0.708073378</R02>
|
|
<R10>0.291926563</R10>
|
|
<R11>-0.841470957</R11>
|
|
<R12>0.454648674</R12>
|
|
<R20>-0.841470957</R20>
|
|
<R21>0</R21>
|
|
<R22>0.540302277</R22>
|
|
</CoordinateFrame>
|
|
<bool name="CanCollide">false</bool>
|
|
<float name="Elasticity">0.5</float>
|
|
<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>
|
|
<token name="Material">256</token>
|
|
<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>4.07127958e-025</X>
|
|
<Y>3.33696291e-022</Y>
|
|
<Z>6.94702468e-025</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>3.66191662e-020</X>
|
|
<Y>0.00686328812</Y>
|
|
<Z>3.59965835e-020</Z>
|
|
</Vector3>
|
|
<token name="formFactorRaw">0</token>
|
|
<token name="shape">1</token>
|
|
<Vector3 name="size">
|
|
<X>1</X>
|
|
<Y>2</Y>
|
|
<Z>1</Z>
|
|
</Vector3>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="Part" referent="RBX235">
|
|
<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>6.49924374</X>
|
|
<Y>30.2562275</Y>
|
|
<Z>-8.15058422</Z>
|
|
<R00>-0.454648674</R00>
|
|
<R01>-0.540302277</R01>
|
|
<R02>-0.708073378</R02>
|
|
<R10>0.291926563</R10>
|
|
<R11>-0.841470957</R11>
|
|
<R12>0.454648674</R12>
|
|
<R20>-0.841470957</R20>
|
|
<R21>0</R21>
|
|
<R22>0.540302277</R22>
|
|
</CoordinateFrame>
|
|
<bool name="CanCollide">false</bool>
|
|
<float name="Elasticity">0.5</float>
|
|
<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>
|
|
<token name="Material">256</token>
|
|
<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>4.07127958e-025</X>
|
|
<Y>3.33696291e-022</Y>
|
|
<Z>6.94702468e-025</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>3.63381671e-020</X>
|
|
<Y>0.00686328812</Y>
|
|
<Z>3.61484164e-020</Z>
|
|
</Vector3>
|
|
<token name="formFactorRaw">0</token>
|
|
<token name="shape">1</token>
|
|
<Vector3 name="size">
|
|
<X>1</X>
|
|
<Y>2</Y>
|
|
<Z>1</Z>
|
|
</Vector3>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="Humanoid" referent="RBX236">
|
|
<Properties>
|
|
<float name="Health">100</float>
|
|
<float name="MaxHealth">100</float>
|
|
<string name="Name">Humanoid</string>
|
|
<token name="NameOcclusion">0</token>
|
|
<float name="WalkSpeed">16</float>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="Part" referent="RBX237">
|
|
<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">29</int>
|
|
<CoordinateFrame name="CFrame">
|
|
<X>6.41182232</X>
|
|
<Y>27.3413734</Y>
|
|
<Z>-6.73779345</Z>
|
|
<R00>0.708073378</R00>
|
|
<R01>-0.540302277</R01>
|
|
<R02>-0.454648674</R02>
|
|
<R10>-0.454648674</R10>
|
|
<R11>-0.841470957</R11>
|
|
<R12>0.291926563</R12>
|
|
<R20>-0.540302277</R20>
|
|
<R21>0</R21>
|
|
<R22>-0.841470957</R22>
|
|
</CoordinateFrame>
|
|
<bool name="CanCollide">true</bool>
|
|
<float name="Elasticity">0.5</float>
|
|
<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>
|
|
<token name="Material">256</token>
|
|
<string name="Name">zarm</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>4.07127958e-025</X>
|
|
<Y>3.33696291e-022</Y>
|
|
<Z>6.94702468e-025</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>3.68116343e-020</X>
|
|
<Y>0.00686328812</Y>
|
|
<Z>3.61764016e-020</Z>
|
|
</Vector3>
|
|
<token name="formFactorRaw">0</token>
|
|
<token name="shape">1</token>
|
|
<Vector3 name="size">
|
|
<X>2</X>
|
|
<Y>1</Y>
|
|
<Z>1</Z>
|
|
</Vector3>
|
|
</Properties>
|
|
<Item class="Script" referent="RBX238">
|
|
<Properties>
|
|
<bool name="Disabled">false</bool>
|
|
<Content name="LinkedSource"><null></null></Content>
|
|
<string name="Name">Script</string>
|
|
<ProtectedString name="Source">wait(1)
|
|
owner=script.Parent.Parent.Name
|
|
|
|
function onTouched(part)
|
|
	if part.Parent ~= nil then
|
|
		local h = part.Parent:findFirstChild("Humanoid")
|
|
			if h~=nil then
|
|
				if cantouch~=0 then
|
|
					if h.Parent.Name~=owner then
|
|
						
|
|
						if h.Parent:findFirstChild("zarm")~=nil then return end
|
|
|
|
						cantouch=0
|
|
|
|
						local larm=h.Parent:findFirstChild("Left Arm")
|
|
						local rarm=h.Parent:findFirstChild("Right Arm")
|
|
						
|
|
						if larm~=nil then
|
|
							larm:remove()
|
|
						end
|
|
						if rarm~=nil then
|
|
							rarm:remove()
|
|
						end
|
|
						local zee=script.Parent.Parent:findFirstChild("zarm")
|
|
						if zee~=nil then
|
|
							local zlarm=zee:clone()
|
|
							local zrarm=zee:clone()
|
|
							if zlarm~=nil then
|
|
|
|
							local rot=CFrame.new(0, 0, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
|
|
								zlarm.CFrame=h.Parent.Torso.CFrame * CFrame.new(Vector3.new(-1.5,0.5,-0.5)) * rot
|
|
								zrarm.CFrame=h.Parent.Torso.CFrame * CFrame.new(Vector3.new(1.5,0.5,-0.5)) * rot
|
|
								zlarm.Parent=h.Parent
|
|
								zrarm.Parent=h.Parent
|
|
								zlarm:makeJoints()
|
|
								zrarm:makeJoints()
|
|
								zlarm.Anchored=false
|
|
								zrarm.Anchored=false
|
|
								wait(0.1)
|
|
								h.Parent.Head.Color=zee.Color
|
|
							else print("no zee"); return end
|
|
						end
|
|
						wait(1)
|
|
						cantouch=1
|
|
					end
|
|
				end
|
|
			end
|
|
	end
|
|
end
|
|
|
|
script.Parent.Touched:connect(onTouched)</ProtectedString>
|
|
</Properties>
|
|
</Item>
|
|
</Item>
|
|
<Item class="Part" referent="RBX239">
|
|
<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">29</int>
|
|
<CoordinateFrame name="CFrame">
|
|
<X>5.04787636</X>
|
|
<Y>28.2171516</Y>
|
|
<Z>-9.26220608</Z>
|
|
<R00>0.708073378</R00>
|
|
<R01>-0.540302277</R01>
|
|
<R02>-0.454648674</R02>
|
|
<R10>-0.454648674</R10>
|
|
<R11>-0.841470957</R11>
|
|
<R12>0.291926563</R12>
|
|
<R20>-0.540302277</R20>
|
|
<R21>0</R21>
|
|
<R22>-0.841470957</R22>
|
|
</CoordinateFrame>
|
|
<bool name="CanCollide">true</bool>
|
|
<float name="Elasticity">0.5</float>
|
|
<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>
|
|
<token name="Material">256</token>
|
|
<string name="Name">zarm</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>4.07127958e-025</X>
|
|
<Y>3.33696291e-022</Y>
|
|
<Z>6.94702468e-025</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>3.59686403e-020</X>
|
|
<Y>0.00686328812</Y>
|
|
<Z>3.66319002e-020</Z>
|
|
</Vector3>
|
|
<token name="formFactorRaw">0</token>
|
|
<token name="shape">1</token>
|
|
<Vector3 name="size">
|
|
<X>2</X>
|
|
<Y>1</Y>
|
|
<Z>1</Z>
|
|
</Vector3>
|
|
</Properties>
|
|
<Item class="Script" referent="RBX240">
|
|
<Properties>
|
|
<bool name="Disabled">false</bool>
|
|
<Content name="LinkedSource"><null></null></Content>
|
|
<string name="Name">Script</string>
|
|
<ProtectedString name="Source">wait(1)
|
|
owner=script.Parent.Parent.Name
|
|
|
|
function onTouched(part)
|
|
	if part.Parent ~= nil then
|
|
		local h = part.Parent:findFirstChild("Humanoid")
|
|
			if h~=nil then
|
|
				if cantouch~=0 then
|
|
					if h.Parent.Name~=owner then
|
|
						
|
|
						if h.Parent:findFirstChild("zarm")~=nil then return end
|
|
|
|
						cantouch=0
|
|
|
|
						local larm=h.Parent:findFirstChild("Left Arm")
|
|
						local rarm=h.Parent:findFirstChild("Right Arm")
|
|
						
|
|
						if larm~=nil then
|
|
							larm:remove()
|
|
						end
|
|
						if rarm~=nil then
|
|
							rarm:remove()
|
|
						end
|
|
						local zee=script.Parent.Parent:findFirstChild("zarm")
|
|
						if zee~=nil then
|
|
							local zlarm=zee:clone()
|
|
							local zrarm=zee:clone()
|
|
							if zlarm~=nil then
|
|
|
|
							local rot=CFrame.new(0, 0, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
|
|
								zlarm.CFrame=h.Parent.Torso.CFrame * CFrame.new(Vector3.new(-1.5,0.5,-0.5)) * rot
|
|
								zrarm.CFrame=h.Parent.Torso.CFrame * CFrame.new(Vector3.new(1.5,0.5,-0.5)) * rot
|
|
								zlarm.Parent=h.Parent
|
|
								zrarm.Parent=h.Parent
|
|
								zlarm:makeJoints()
|
|
								zrarm:makeJoints()
|
|
								zlarm.Anchored=false
|
|
								zrarm.Anchored=false
|
|
								wait(0.1)
|
|
								h.Parent.Head.Color=zee.Color
|
|
							else print("no zee"); return end
|
|
						end
|
|
						wait(1)
|
|
						cantouch=1
|
|
					end
|
|
				end
|
|
			end
|
|
	end
|
|
end
|
|
|
|
script.Parent.Touched:connect(onTouched)</ProtectedString>
|
|
</Properties>
|
|
</Item>
|
|
</Item>
|
|
<Item class="ObjectValue" referent="RBX241">
|
|
<Properties>
|
|
<string name="Name">IsNZ</string>
|
|
<Ref name="Value">null</Ref>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="IntValue" referent="RBX242">
|
|
<Properties>
|
|
<string name="Name">Mode</string>
|
|
<int name="Value">0</int>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="Script" referent="RBX243">
|
|
<Properties>
|
|
<bool name="Disabled">false</bool>
|
|
<Content name="LinkedSource"><null></null></Content>
|
|
<string name="Name">Script</string>
|
|
<ProtectedString name="Source">local larm = script.Parent:FindFirstChild("Left Arm")
|
|
local rarm = script.Parent:FindFirstChild("Right Arm")
|
|
|
|
function findNearestTorso(pos)
|
|
	local list = game.Workspace:children()
|
|
	local torso = nil
|
|
	local dist = 1000
|
|
	local temp = nil
|
|
	local human = nil
|
|
	local temp2 = nil
|
|
	for x = 1, #list do
|
|
		temp2 = list[x]
|
|
		if (temp2.className == "Model") and (temp2 ~= script.Parent) then
|
|
			temp = temp2:findFirstChild("Right Arm")
|
|
			human = temp2:findFirstChild("Humanoid")
|
|
			if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then
|
|
				if (temp.Position - pos).magnitude < dist then
|
|
					torso = temp
|
|
					dist = (temp.Position - pos).magnitude
|
|
				end
|
|
			end
|
|
		end
|
|
	end
|
|
	return torso
|
|
end
|
|
|
|
|
|
|
|
|
|
while true do
|
|
	wait(math.random(1,5))
|
|
	local target = findNearestTorso(script.Parent.Torso.Position)
|
|
	if target ~= nil then
|
|
		script.Parent.Humanoid:MoveTo(target.Position, target)
|
|
	end
|
|
|
|
end
|
|
</ProtectedString>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="Script" referent="RBX244">
|
|
<Properties>
|
|
<bool name="Disabled">false</bool>
|
|
<Content name="LinkedSource"><null></null></Content>
|
|
<string name="Name">Health</string>
|
|
<ProtectedString name="Source">function waitForChild(parent, childName)
|
|
	while true do
|
|
		local child = parent:findFirstChild(childName)
|
|
		if child then
|
|
			return child
|
|
		end
|
|
		parent.ChildAdded:wait()
|
|
	end
|
|
end
|
|
|
|
-- declarations
|
|
|
|
local Figure = script.Parent
|
|
local Head = waitForChild(Figure, "Head")
|
|
local Humanoid = waitForChild(Figure, "Humanoid")
|
|
Humanoid.Health=500
|
|
-- regeneration
|
|
while true do
|
|
	local s = wait(4)
|
|
	local health = Humanoid.Health
|
|
	if health > 0 and health < Humanoid.MaxHealth then
|
|
		health = health + 0.08 * s * Humanoid.MaxHealth
|
|
		if health * 1.05 < Humanoid.MaxHealth then
|
|
			Humanoid.Health = health
|
|
		else
|
|
			Humanoid.Health = Humanoid.MaxHealth
|
|
		end
|
|
	end
|
|
end
|
|
</ProtectedString>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="Script" referent="RBX245">
|
|
<Properties>
|
|
<bool name="Disabled">false</bool>
|
|
<Content name="LinkedSource"><null></null></Content>
|
|
<string name="Name">Respawn</string>
|
|
<ProtectedString name="Source">name="Humanoid"
|
|
|
|
robo=script.Parent:clone()
|
|
|
|
while true do
|
|
	wait(1)
|
|
	if script.Parent.Humanoid.Health<1 then
|
|
		robot=robo:clone()
|
|
		robot.Parent=script.Parent.Parent
|
|
		robot:makeJoints()
|
|
		script.Parent:remove()
|
|
	end
|
|
end
|
|
		
|
|
|
|
|
|
</ProtectedString>
|
|
</Properties>
|
|
</Item>
|
|
</Item>
|
|
<Item class="Model" referent="RBX246">
|
|
<Properties>
|
|
<CoordinateFrame name="ModelInPrimary">
|
|
<X>0</X>
|
|
<Y>0</Y>
|
|
<Z>0</Z>
|
|
<R00>1</R00>
|
|
<R01>0</R01>
|
|
<R02>0</R02>
|
|
<R10>0</R10>
|
|
<R11>1</R11>
|
|
<R12>0</R12>
|
|
<R20>0</R20>
|
|
<R21>0</R21>
|
|
<R22>1</R22>
|
|
</CoordinateFrame>
|
|
<string name="Name">Zombie</string>
|
|
<Ref name="PrimaryPart">null</Ref>
|
|
</Properties>
|
|
<Item class="Part" referent="RBX247">
|
|
<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">29</int>
|
|
<CoordinateFrame name="CFrame">
|
|
<X>19.4981842</X>
|
|
<Y>40.8099976</Y>
|
|
<Z>-38.1379089</Z>
|
|
<R00>1.49011612e-008</R00>
|
|
<R01>0</R01>
|
|
<R02>-0.999999881</R02>
|
|
<R10>1.49011612e-008</R10>
|
|
<R11>-0.99999994</R11>
|
|
<R12>0</R12>
|
|
<R20>-0.99999994</R20>
|
|
<R21>1.49011612e-008</R21>
|
|
<R22>1.49011612e-008</R22>
|
|
</CoordinateFrame>
|
|
<bool name="CanCollide">true</bool>
|
|
<float name="Elasticity">0.5</float>
|
|
<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>
|
|
<token name="Material">256</token>
|
|
<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>4.07127958e-025</X>
|
|
<Y>3.33696291e-022</Y>
|
|
<Z>6.94702468e-025</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>3.64808751e-020</X>
|
|
<Y>0.00686328812</Y>
|
|
<Z>3.64317968e-020</Z>
|
|
</Vector3>
|
|
<token name="formFactorRaw">0</token>
|
|
<token name="shape">1</token>
|
|
<Vector3 name="size">
|
|
<X>2</X>
|
|
<Y>1</Y>
|
|
<Z>1</Z>
|
|
</Vector3>
|
|
</Properties>
|
|
<Item class="SpecialMesh" referent="RBX248">
|
|
<Properties>
|
|
<token name="LODX">2</token>
|
|
<token name="LODY">2</token>
|
|
<Content name="MeshId"><null></null></Content>
|
|
<token name="MeshType">0</token>
|
|
<string name="Name">Mesh</string>
|
|
<Vector3 name="Offset">
|
|
<X>0</X>
|
|
<Y>0</Y>
|
|
<Z>0</Z>
|
|
</Vector3>
|
|
<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>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="Decal" referent="RBX249">
|
|
<Properties>
|
|
<token name="Face">5</token>
|
|
<string name="Name">face</string>
|
|
<float name="Shiny">20</float>
|
|
<float name="Specular">0</float>
|
|
<Content name="Texture"><null></null></Content>
|
|
<float name="Transparency">0</float>
|
|
</Properties>
|
|
</Item>
|
|
</Item>
|
|
<Item class="Part" referent="RBX250">
|
|
<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>19.4981842</X>
|
|
<Y>42.3099976</Y>
|
|
<Z>-38.1379089</Z>
|
|
<R00>1.49011612e-008</R00>
|
|
<R01>0</R01>
|
|
<R02>-0.999999881</R02>
|
|
<R10>1.49011612e-008</R10>
|
|
<R11>-0.99999994</R11>
|
|
<R12>0</R12>
|
|
<R20>-0.99999994</R20>
|
|
<R21>1.49011612e-008</R21>
|
|
<R22>1.49011612e-008</R22>
|
|
</CoordinateFrame>
|
|
<bool name="CanCollide">true</bool>
|
|
<float name="Elasticity">0.5</float>
|
|
<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>
|
|
<token name="Material">256</token>
|
|
<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>4.07127958e-025</X>
|
|
<Y>3.33696291e-022</Y>
|
|
<Z>6.94702468e-025</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>3.64798347e-020</X>
|
|
<Y>0.00686328812</Y>
|
|
<Z>3.64324075e-020</Z>
|
|
</Vector3>
|
|
<token name="formFactorRaw">0</token>
|
|
<token name="shape">1</token>
|
|
<Vector3 name="size">
|
|
<X>2</X>
|
|
<Y>2</Y>
|
|
<Z>1</Z>
|
|
</Vector3>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="Part" referent="RBX251">
|
|
<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>19.4981842</X>
|
|
<Y>44.3099976</Y>
|
|
<Z>-37.6379089</Z>
|
|
<R00>1.49011612e-008</R00>
|
|
<R01>0</R01>
|
|
<R02>-0.999999881</R02>
|
|
<R10>1.49011612e-008</R10>
|
|
<R11>-0.99999994</R11>
|
|
<R12>0</R12>
|
|
<R20>-0.99999994</R20>
|
|
<R21>1.49011612e-008</R21>
|
|
<R22>1.49011612e-008</R22>
|
|
</CoordinateFrame>
|
|
<bool name="CanCollide">false</bool>
|
|
<float name="Elasticity">0.5</float>
|
|
<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>
|
|
<token name="Material">256</token>
|
|
<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>4.07127958e-025</X>
|
|
<Y>3.33696291e-022</Y>
|
|
<Z>6.94702468e-025</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>3.66452934e-020</X>
|
|
<Y>0.00686328812</Y>
|
|
<Z>3.64332218e-020</Z>
|
|
</Vector3>
|
|
<token name="formFactorRaw">0</token>
|
|
<token name="shape">1</token>
|
|
<Vector3 name="size">
|
|
<X>1</X>
|
|
<Y>2</Y>
|
|
<Z>1</Z>
|
|
</Vector3>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="Part" referent="RBX252">
|
|
<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>19.4981842</X>
|
|
<Y>44.3099976</Y>
|
|
<Z>-38.6379089</Z>
|
|
<R00>1.49011612e-008</R00>
|
|
<R01>0</R01>
|
|
<R02>-0.999999881</R02>
|
|
<R10>1.49011612e-008</R10>
|
|
<R11>-0.99999994</R11>
|
|
<R12>0</R12>
|
|
<R20>-0.99999994</R20>
|
|
<R21>1.49011612e-008</R21>
|
|
<R22>1.49011612e-008</R22>
|
|
</CoordinateFrame>
|
|
<bool name="CanCollide">false</bool>
|
|
<float name="Elasticity">0.5</float>
|
|
<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>
|
|
<token name="Material">256</token>
|
|
<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>4.07127958e-025</X>
|
|
<Y>3.33696291e-022</Y>
|
|
<Z>6.94702468e-025</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>3.63115971e-020</X>
|
|
<Y>0.00686328812</Y>
|
|
<Z>3.64332218e-020</Z>
|
|
</Vector3>
|
|
<token name="formFactorRaw">0</token>
|
|
<token name="shape">1</token>
|
|
<Vector3 name="size">
|
|
<X>1</X>
|
|
<Y>2</Y>
|
|
<Z>1</Z>
|
|
</Vector3>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="Humanoid" referent="RBX253">
|
|
<Properties>
|
|
<float name="Health">100</float>
|
|
<float name="MaxHealth">100</float>
|
|
<string name="Name">Humanoid</string>
|
|
<token name="NameOcclusion">0</token>
|
|
<float name="WalkSpeed">16</float>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="Part" referent="RBX254">
|
|
<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">29</int>
|
|
<CoordinateFrame name="CFrame">
|
|
<X>19.9981842</X>
|
|
<Y>41.8099976</Y>
|
|
<Z>-36.6379089</Z>
|
|
<R00>0.999999881</R00>
|
|
<R01>0</R01>
|
|
<R02>1.49011612e-008</R02>
|
|
<R10>0</R10>
|
|
<R11>-0.99999994</R11>
|
|
<R12>1.49011612e-008</R12>
|
|
<R20>-1.49011612e-008</R20>
|
|
<R21>1.49011612e-008</R21>
|
|
<R22>-0.99999994</R22>
|
|
</CoordinateFrame>
|
|
<bool name="CanCollide">true</bool>
|
|
<float name="Elasticity">0.5</float>
|
|
<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>
|
|
<token name="Material">256</token>
|
|
<string name="Name">zarm</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>4.07127958e-025</X>
|
|
<Y>3.33696291e-022</Y>
|
|
<Z>6.94702468e-025</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>3.69807249e-020</X>
|
|
<Y>0.00686328812</Y>
|
|
<Z>3.62653558e-020</Z>
|
|
</Vector3>
|
|
<token name="formFactorRaw">0</token>
|
|
<token name="shape">1</token>
|
|
<Vector3 name="size">
|
|
<X>2</X>
|
|
<Y>1</Y>
|
|
<Z>1</Z>
|
|
</Vector3>
|
|
</Properties>
|
|
<Item class="Script" referent="RBX255">
|
|
<Properties>
|
|
<bool name="Disabled">false</bool>
|
|
<Content name="LinkedSource"><null></null></Content>
|
|
<string name="Name">Script</string>
|
|
<ProtectedString name="Source">wait(1)
|
|
owner=script.Parent.Parent.Name
|
|
|
|
function onTouched(part)
|
|
	if part.Parent ~= nil then
|
|
		local h = part.Parent:findFirstChild("Humanoid")
|
|
			if h~=nil then
|
|
				if cantouch~=0 then
|
|
					if h.Parent.Name~=owner then
|
|
						
|
|
						if h.Parent:findFirstChild("zarm")~=nil then return end
|
|
|
|
						cantouch=0
|
|
|
|
						local larm=h.Parent:findFirstChild("Left Arm")
|
|
						local rarm=h.Parent:findFirstChild("Right Arm")
|
|
						
|
|
						if larm~=nil then
|
|
							larm:remove()
|
|
						end
|
|
						if rarm~=nil then
|
|
							rarm:remove()
|
|
						end
|
|
						local zee=script.Parent.Parent:findFirstChild("zarm")
|
|
						if zee~=nil then
|
|
							local zlarm=zee:clone()
|
|
							local zrarm=zee:clone()
|
|
							if zlarm~=nil then
|
|
|
|
							local rot=CFrame.new(0, 0, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
|
|
								zlarm.CFrame=h.Parent.Torso.CFrame * CFrame.new(Vector3.new(-1.5,0.5,-0.5)) * rot
|
|
								zrarm.CFrame=h.Parent.Torso.CFrame * CFrame.new(Vector3.new(1.5,0.5,-0.5)) * rot
|
|
								zlarm.Parent=h.Parent
|
|
								zrarm.Parent=h.Parent
|
|
								zlarm:makeJoints()
|
|
								zrarm:makeJoints()
|
|
								zlarm.Anchored=false
|
|
								zrarm.Anchored=false
|
|
								wait(0.1)
|
|
								h.Parent.Head.Color=zee.Color
|
|
							else print("no zee"); return end
|
|
						end
|
|
						wait(1)
|
|
						cantouch=1
|
|
					end
|
|
				end
|
|
			end
|
|
	end
|
|
end
|
|
|
|
script.Parent.Touched:connect(onTouched)</ProtectedString>
|
|
</Properties>
|
|
</Item>
|
|
</Item>
|
|
<Item class="Part" referent="RBX256">
|
|
<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">29</int>
|
|
<CoordinateFrame name="CFrame">
|
|
<X>19.9981842</X>
|
|
<Y>41.8099976</Y>
|
|
<Z>-39.6379089</Z>
|
|
<R00>0.999999881</R00>
|
|
<R01>0</R01>
|
|
<R02>1.49011612e-008</R02>
|
|
<R10>0</R10>
|
|
<R11>-0.99999994</R11>
|
|
<R12>1.49011612e-008</R12>
|
|
<R20>-1.49011612e-008</R20>
|
|
<R21>1.49011612e-008</R21>
|
|
<R22>-0.99999994</R22>
|
|
</CoordinateFrame>
|
|
<bool name="CanCollide">true</bool>
|
|
<float name="Elasticity">0.5</float>
|
|
<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>
|
|
<token name="Material">256</token>
|
|
<string name="Name">zarm</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>4.07127958e-025</X>
|
|
<Y>3.33696291e-022</Y>
|
|
<Z>6.94702468e-025</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>3.5979636e-020</X>
|
|
<Y>0.00686328812</Y>
|
|
<Z>3.62653558e-020</Z>
|
|
</Vector3>
|
|
<token name="formFactorRaw">0</token>
|
|
<token name="shape">1</token>
|
|
<Vector3 name="size">
|
|
<X>2</X>
|
|
<Y>1</Y>
|
|
<Z>1</Z>
|
|
</Vector3>
|
|
</Properties>
|
|
<Item class="Script" referent="RBX257">
|
|
<Properties>
|
|
<bool name="Disabled">false</bool>
|
|
<Content name="LinkedSource"><null></null></Content>
|
|
<string name="Name">Script</string>
|
|
<ProtectedString name="Source">wait(1)
|
|
owner=script.Parent.Parent.Name
|
|
|
|
function onTouched(part)
|
|
	if part.Parent ~= nil then
|
|
		local h = part.Parent:findFirstChild("Humanoid")
|
|
			if h~=nil then
|
|
				if cantouch~=0 then
|
|
					if h.Parent.Name~=owner then
|
|
						
|
|
						if h.Parent:findFirstChild("zarm")~=nil then return end
|
|
|
|
						cantouch=0
|
|
|
|
						local larm=h.Parent:findFirstChild("Left Arm")
|
|
						local rarm=h.Parent:findFirstChild("Right Arm")
|
|
						
|
|
						if larm~=nil then
|
|
							larm:remove()
|
|
						end
|
|
						if rarm~=nil then
|
|
							rarm:remove()
|
|
						end
|
|
						local zee=script.Parent.Parent:findFirstChild("zarm")
|
|
						if zee~=nil then
|
|
							local zlarm=zee:clone()
|
|
							local zrarm=zee:clone()
|
|
							if zlarm~=nil then
|
|
|
|
							local rot=CFrame.new(0, 0, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
|
|
								zlarm.CFrame=h.Parent.Torso.CFrame * CFrame.new(Vector3.new(-1.5,0.5,-0.5)) * rot
|
|
								zrarm.CFrame=h.Parent.Torso.CFrame * CFrame.new(Vector3.new(1.5,0.5,-0.5)) * rot
|
|
								zlarm.Parent=h.Parent
|
|
								zrarm.Parent=h.Parent
|
|
								zlarm:makeJoints()
|
|
								zrarm:makeJoints()
|
|
								zlarm.Anchored=false
|
|
								zrarm.Anchored=false
|
|
								wait(0.1)
|
|
								h.Parent.Head.Color=zee.Color
|
|
							else print("no zee"); return end
|
|
						end
|
|
						wait(1)
|
|
						cantouch=1
|
|
					end
|
|
				end
|
|
			end
|
|
	end
|
|
end
|
|
|
|
script.Parent.Touched:connect(onTouched)</ProtectedString>
|
|
</Properties>
|
|
</Item>
|
|
</Item>
|
|
<Item class="ObjectValue" referent="RBX258">
|
|
<Properties>
|
|
<string name="Name">IsNZ</string>
|
|
<Ref name="Value">null</Ref>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="IntValue" referent="RBX259">
|
|
<Properties>
|
|
<string name="Name">Mode</string>
|
|
<int name="Value">0</int>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="Script" referent="RBX260">
|
|
<Properties>
|
|
<bool name="Disabled">false</bool>
|
|
<Content name="LinkedSource"><null></null></Content>
|
|
<string name="Name">Script</string>
|
|
<ProtectedString name="Source">local larm = script.Parent:FindFirstChild("Left Arm")
|
|
local rarm = script.Parent:FindFirstChild("Right Arm")
|
|
|
|
function findNearestTorso(pos)
|
|
	local list = game.Workspace:children()
|
|
	local torso = nil
|
|
	local dist = 1000
|
|
	local temp = nil
|
|
	local human = nil
|
|
	local temp2 = nil
|
|
	for x = 1, #list do
|
|
		temp2 = list[x]
|
|
		if (temp2.className == "Model") and (temp2 ~= script.Parent) then
|
|
			temp = temp2:findFirstChild("Right Arm")
|
|
			human = temp2:findFirstChild("Humanoid")
|
|
			if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then
|
|
				if (temp.Position - pos).magnitude < dist then
|
|
					torso = temp
|
|
					dist = (temp.Position - pos).magnitude
|
|
				end
|
|
			end
|
|
		end
|
|
	end
|
|
	return torso
|
|
end
|
|
|
|
|
|
|
|
|
|
while true do
|
|
	wait(math.random(1,5))
|
|
	local target = findNearestTorso(script.Parent.Torso.Position)
|
|
	if target ~= nil then
|
|
		script.Parent.Humanoid:MoveTo(target.Position, target)
|
|
	end
|
|
|
|
end
|
|
</ProtectedString>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="Script" referent="RBX261">
|
|
<Properties>
|
|
<bool name="Disabled">false</bool>
|
|
<Content name="LinkedSource"><null></null></Content>
|
|
<string name="Name">Health</string>
|
|
<ProtectedString name="Source">function waitForChild(parent, childName)
|
|
	while true do
|
|
		local child = parent:findFirstChild(childName)
|
|
		if child then
|
|
			return child
|
|
		end
|
|
		parent.ChildAdded:wait()
|
|
	end
|
|
end
|
|
|
|
-- declarations
|
|
|
|
local Figure = script.Parent
|
|
local Head = waitForChild(Figure, "Head")
|
|
local Humanoid = waitForChild(Figure, "Humanoid")
|
|
Humanoid.Health=500
|
|
-- regeneration
|
|
while true do
|
|
	local s = wait(4)
|
|
	local health = Humanoid.Health
|
|
	if health > 0 and health < Humanoid.MaxHealth then
|
|
		health = health + 0.08 * s * Humanoid.MaxHealth
|
|
		if health * 1.05 < Humanoid.MaxHealth then
|
|
			Humanoid.Health = health
|
|
		else
|
|
			Humanoid.Health = Humanoid.MaxHealth
|
|
		end
|
|
	end
|
|
end
|
|
</ProtectedString>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="Script" referent="RBX262">
|
|
<Properties>
|
|
<bool name="Disabled">false</bool>
|
|
<Content name="LinkedSource"><null></null></Content>
|
|
<string name="Name">Respawn</string>
|
|
<ProtectedString name="Source">name="Humanoid"
|
|
|
|
robo=script.Parent:clone()
|
|
|
|
while true do
|
|
	wait(1)
|
|
	if script.Parent.Humanoid.Health<1 then
|
|
		robot=robo:clone()
|
|
		robot.Parent=script.Parent.Parent
|
|
		robot:makeJoints()
|
|
		script.Parent:remove()
|
|
	end
|
|
end
|
|
		
|
|
|
|
|
|
</ProtectedString>
|
|
</Properties>
|
|
</Item>
|
|
</Item>
|
|
<Item class="Model" referent="RBX263">
|
|
<Properties>
|
|
<CoordinateFrame name="ModelInPrimary">
|
|
<X>0</X>
|
|
<Y>0</Y>
|
|
<Z>0</Z>
|
|
<R00>1</R00>
|
|
<R01>0</R01>
|
|
<R02>0</R02>
|
|
<R10>0</R10>
|
|
<R11>1</R11>
|
|
<R12>0</R12>
|
|
<R20>0</R20>
|
|
<R21>0</R21>
|
|
<R22>1</R22>
|
|
</CoordinateFrame>
|
|
<string name="Name">Zombie</string>
|
|
<Ref name="PrimaryPart">null</Ref>
|
|
</Properties>
|
|
<Item class="Part" referent="RBX264">
|
|
<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">29</int>
|
|
<CoordinateFrame name="CFrame">
|
|
<X>8.83551025</X>
|
|
<Y>32.7651215</Y>
|
|
<Z>-30.7298489</Z>
|
|
<R00>-0.454648674</R00>
|
|
<R01>-0.540302277</R01>
|
|
<R02>-0.708073378</R02>
|
|
<R10>0.291926563</R10>
|
|
<R11>-0.841470957</R11>
|
|
<R12>0.454648674</R12>
|
|
<R20>-0.841470957</R20>
|
|
<R21>0</R21>
|
|
<R22>0.540302277</R22>
|
|
</CoordinateFrame>
|
|
<bool name="CanCollide">true</bool>
|
|
<float name="Elasticity">0.5</float>
|
|
<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>
|
|
<token name="Material">256</token>
|
|
<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>4.07127958e-025</X>
|
|
<Y>3.33696291e-022</Y>
|
|
<Z>6.94702468e-025</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>3.64807103e-020</X>
|
|
<Y>0.00686328812</Y>
|
|
<Z>3.67023398e-020</Z>
|
|
</Vector3>
|
|
<token name="formFactorRaw">0</token>
|
|
<token name="shape">1</token>
|
|
<Vector3 name="size">
|
|
<X>2</X>
|
|
<Y>1</Y>
|
|
<Z>1</Z>
|
|
</Vector3>
|
|
</Properties>
|
|
<Item class="SpecialMesh" referent="RBX265">
|
|
<Properties>
|
|
<token name="LODX">2</token>
|
|
<token name="LODY">2</token>
|
|
<Content name="MeshId"><null></null></Content>
|
|
<token name="MeshType">0</token>
|
|
<string name="Name">Mesh</string>
|
|
<Vector3 name="Offset">
|
|
<X>0</X>
|
|
<Y>0</Y>
|
|
<Z>0</Z>
|
|
</Vector3>
|
|
<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>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="Decal" referent="RBX266">
|
|
<Properties>
|
|
<token name="Face">5</token>
|
|
<string name="Name">face</string>
|
|
<float name="Shiny">20</float>
|
|
<float name="Specular">0</float>
|
|
<Content name="Texture"><null></null></Content>
|
|
<float name="Transparency">0</float>
|
|
</Properties>
|
|
</Item>
|
|
</Item>
|
|
<Item class="Part" referent="RBX267">
|
|
<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>9.64596367</X>
|
|
<Y>34.0273285</Y>
|
|
<Z>-30.7298489</Z>
|
|
<R00>-0.454648674</R00>
|
|
<R01>-0.540302277</R01>
|
|
<R02>-0.708073378</R02>
|
|
<R10>0.291926563</R10>
|
|
<R11>-0.841470957</R11>
|
|
<R12>0.454648674</R12>
|
|
<R20>-0.841470957</R20>
|
|
<R21>0</R21>
|
|
<R22>0.540302277</R22>
|
|
</CoordinateFrame>
|
|
<bool name="CanCollide">true</bool>
|
|
<float name="Elasticity">0.5</float>
|
|
<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>
|
|
<token name="Material">256</token>
|
|
<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>4.07127958e-025</X>
|
|
<Y>3.33696291e-022</Y>
|
|
<Z>6.94702468e-025</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>3.64798347e-020</X>
|
|
<Y>0.00686328812</Y>
|
|
<Z>3.64324075e-020</Z>
|
|
</Vector3>
|
|
<token name="formFactorRaw">0</token>
|
|
<token name="shape">1</token>
|
|
<Vector3 name="size">
|
|
<X>2</X>
|
|
<Y>2</Y>
|
|
<Z>1</Z>
|
|
</Vector3>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="Part" referent="RBX268">
|
|
<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>10.9538927</X>
|
|
<Y>35.5643082</Y>
|
|
<Z>-30.3091125</Z>
|
|
<R00>-0.454648674</R00>
|
|
<R01>-0.540302277</R01>
|
|
<R02>-0.708073378</R02>
|
|
<R10>0.291926563</R10>
|
|
<R11>-0.841470957</R11>
|
|
<R12>0.454648674</R12>
|
|
<R20>-0.841470957</R20>
|
|
<R21>0</R21>
|
|
<R22>0.540302277</R22>
|
|
</CoordinateFrame>
|
|
<bool name="CanCollide">false</bool>
|
|
<float name="Elasticity">0.5</float>
|
|
<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>
|
|
<token name="Material">256</token>
|
|
<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>4.07127958e-025</X>
|
|
<Y>3.33696291e-022</Y>
|
|
<Z>6.94702468e-025</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>3.66191662e-020</X>
|
|
<Y>0.00686328812</Y>
|
|
<Z>3.59965835e-020</Z>
|
|
</Vector3>
|
|
<token name="formFactorRaw">0</token>
|
|
<token name="shape">1</token>
|
|
<Vector3 name="size">
|
|
<X>1</X>
|
|
<Y>2</Y>
|
|
<Z>1</Z>
|
|
</Vector3>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="Part" referent="RBX269">
|
|
<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>10.4992437</X>
|
|
<Y>35.8562355</Y>
|
|
<Z>-31.1505852</Z>
|
|
<R00>-0.454648674</R00>
|
|
<R01>-0.540302277</R01>
|
|
<R02>-0.708073378</R02>
|
|
<R10>0.291926563</R10>
|
|
<R11>-0.841470957</R11>
|
|
<R12>0.454648674</R12>
|
|
<R20>-0.841470957</R20>
|
|
<R21>0</R21>
|
|
<R22>0.540302277</R22>
|
|
</CoordinateFrame>
|
|
<bool name="CanCollide">false</bool>
|
|
<float name="Elasticity">0.5</float>
|
|
<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>
|
|
<token name="Material">256</token>
|
|
<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>4.07127958e-025</X>
|
|
<Y>3.33696291e-022</Y>
|
|
<Z>6.94702468e-025</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>3.63381671e-020</X>
|
|
<Y>0.00686328812</Y>
|
|
<Z>3.61484164e-020</Z>
|
|
</Vector3>
|
|
<token name="formFactorRaw">0</token>
|
|
<token name="shape">1</token>
|
|
<Vector3 name="size">
|
|
<X>1</X>
|
|
<Y>2</Y>
|
|
<Z>1</Z>
|
|
</Vector3>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="Humanoid" referent="RBX270">
|
|
<Properties>
|
|
<float name="Health">100</float>
|
|
<float name="MaxHealth">100</float>
|
|
<string name="Name">Humanoid</string>
|
|
<token name="NameOcclusion">0</token>
|
|
<float name="WalkSpeed">16</float>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="Part" referent="RBX271">
|
|
<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">29</int>
|
|
<CoordinateFrame name="CFrame">
|
|
<X>10.4118223</X>
|
|
<Y>32.9413795</Y>
|
|
<Z>-29.737793</Z>
|
|
<R00>0.708073378</R00>
|
|
<R01>-0.540302277</R01>
|
|
<R02>-0.454648674</R02>
|
|
<R10>-0.454648674</R10>
|
|
<R11>-0.841470957</R11>
|
|
<R12>0.291926563</R12>
|
|
<R20>-0.540302277</R20>
|
|
<R21>0</R21>
|
|
<R22>-0.841470957</R22>
|
|
</CoordinateFrame>
|
|
<bool name="CanCollide">true</bool>
|
|
<float name="Elasticity">0.5</float>
|
|
<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>
|
|
<token name="Material">256</token>
|
|
<string name="Name">zarm</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>4.07127958e-025</X>
|
|
<Y>3.33696291e-022</Y>
|
|
<Z>6.94702468e-025</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>3.68116343e-020</X>
|
|
<Y>0.00686328812</Y>
|
|
<Z>3.61764016e-020</Z>
|
|
</Vector3>
|
|
<token name="formFactorRaw">0</token>
|
|
<token name="shape">1</token>
|
|
<Vector3 name="size">
|
|
<X>2</X>
|
|
<Y>1</Y>
|
|
<Z>1</Z>
|
|
</Vector3>
|
|
</Properties>
|
|
<Item class="Script" referent="RBX272">
|
|
<Properties>
|
|
<bool name="Disabled">false</bool>
|
|
<Content name="LinkedSource"><null></null></Content>
|
|
<string name="Name">Script</string>
|
|
<ProtectedString name="Source">wait(1)
|
|
owner=script.Parent.Parent.Name
|
|
|
|
function onTouched(part)
|
|
	if part.Parent ~= nil then
|
|
		local h = part.Parent:findFirstChild("Humanoid")
|
|
			if h~=nil then
|
|
				if cantouch~=0 then
|
|
					if h.Parent.Name~=owner then
|
|
						
|
|
						if h.Parent:findFirstChild("zarm")~=nil then return end
|
|
|
|
						cantouch=0
|
|
|
|
						local larm=h.Parent:findFirstChild("Left Arm")
|
|
						local rarm=h.Parent:findFirstChild("Right Arm")
|
|
						
|
|
						if larm~=nil then
|
|
							larm:remove()
|
|
						end
|
|
						if rarm~=nil then
|
|
							rarm:remove()
|
|
						end
|
|
						local zee=script.Parent.Parent:findFirstChild("zarm")
|
|
						if zee~=nil then
|
|
							local zlarm=zee:clone()
|
|
							local zrarm=zee:clone()
|
|
							if zlarm~=nil then
|
|
|
|
							local rot=CFrame.new(0, 0, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
|
|
								zlarm.CFrame=h.Parent.Torso.CFrame * CFrame.new(Vector3.new(-1.5,0.5,-0.5)) * rot
|
|
								zrarm.CFrame=h.Parent.Torso.CFrame * CFrame.new(Vector3.new(1.5,0.5,-0.5)) * rot
|
|
								zlarm.Parent=h.Parent
|
|
								zrarm.Parent=h.Parent
|
|
								zlarm:makeJoints()
|
|
								zrarm:makeJoints()
|
|
								zlarm.Anchored=false
|
|
								zrarm.Anchored=false
|
|
								wait(0.1)
|
|
								h.Parent.Head.Color=zee.Color
|
|
							else print("no zee"); return end
|
|
						end
|
|
						wait(1)
|
|
						cantouch=1
|
|
					end
|
|
				end
|
|
			end
|
|
	end
|
|
end
|
|
|
|
script.Parent.Touched:connect(onTouched)</ProtectedString>
|
|
</Properties>
|
|
</Item>
|
|
</Item>
|
|
<Item class="Part" referent="RBX273">
|
|
<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">29</int>
|
|
<CoordinateFrame name="CFrame">
|
|
<X>9.04787636</X>
|
|
<Y>33.8171577</Y>
|
|
<Z>-32.262207</Z>
|
|
<R00>0.708073378</R00>
|
|
<R01>-0.540302277</R01>
|
|
<R02>-0.454648674</R02>
|
|
<R10>-0.454648674</R10>
|
|
<R11>-0.841470957</R11>
|
|
<R12>0.291926563</R12>
|
|
<R20>-0.540302277</R20>
|
|
<R21>0</R21>
|
|
<R22>-0.841470957</R22>
|
|
</CoordinateFrame>
|
|
<bool name="CanCollide">true</bool>
|
|
<float name="Elasticity">0.5</float>
|
|
<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>
|
|
<token name="Material">256</token>
|
|
<string name="Name">zarm</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>4.07127958e-025</X>
|
|
<Y>3.33696291e-022</Y>
|
|
<Z>6.94702468e-025</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>3.59686371e-020</X>
|
|
<Y>0.00686328812</Y>
|
|
<Z>3.66319002e-020</Z>
|
|
</Vector3>
|
|
<token name="formFactorRaw">0</token>
|
|
<token name="shape">1</token>
|
|
<Vector3 name="size">
|
|
<X>2</X>
|
|
<Y>1</Y>
|
|
<Z>1</Z>
|
|
</Vector3>
|
|
</Properties>
|
|
<Item class="Script" referent="RBX274">
|
|
<Properties>
|
|
<bool name="Disabled">false</bool>
|
|
<Content name="LinkedSource"><null></null></Content>
|
|
<string name="Name">Script</string>
|
|
<ProtectedString name="Source">wait(1)
|
|
owner=script.Parent.Parent.Name
|
|
|
|
function onTouched(part)
|
|
	if part.Parent ~= nil then
|
|
		local h = part.Parent:findFirstChild("Humanoid")
|
|
			if h~=nil then
|
|
				if cantouch~=0 then
|
|
					if h.Parent.Name~=owner then
|
|
						
|
|
						if h.Parent:findFirstChild("zarm")~=nil then return end
|
|
|
|
						cantouch=0
|
|
|
|
						local larm=h.Parent:findFirstChild("Left Arm")
|
|
						local rarm=h.Parent:findFirstChild("Right Arm")
|
|
						
|
|
						if larm~=nil then
|
|
							larm:remove()
|
|
						end
|
|
						if rarm~=nil then
|
|
							rarm:remove()
|
|
						end
|
|
						local zee=script.Parent.Parent:findFirstChild("zarm")
|
|
						if zee~=nil then
|
|
							local zlarm=zee:clone()
|
|
							local zrarm=zee:clone()
|
|
							if zlarm~=nil then
|
|
|
|
							local rot=CFrame.new(0, 0, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
|
|
								zlarm.CFrame=h.Parent.Torso.CFrame * CFrame.new(Vector3.new(-1.5,0.5,-0.5)) * rot
|
|
								zrarm.CFrame=h.Parent.Torso.CFrame * CFrame.new(Vector3.new(1.5,0.5,-0.5)) * rot
|
|
								zlarm.Parent=h.Parent
|
|
								zrarm.Parent=h.Parent
|
|
								zlarm:makeJoints()
|
|
								zrarm:makeJoints()
|
|
								zlarm.Anchored=false
|
|
								zrarm.Anchored=false
|
|
								wait(0.1)
|
|
								h.Parent.Head.Color=zee.Color
|
|
							else print("no zee"); return end
|
|
						end
|
|
						wait(1)
|
|
						cantouch=1
|
|
					end
|
|
				end
|
|
			end
|
|
	end
|
|
end
|
|
|
|
script.Parent.Touched:connect(onTouched)</ProtectedString>
|
|
</Properties>
|
|
</Item>
|
|
</Item>
|
|
<Item class="ObjectValue" referent="RBX275">
|
|
<Properties>
|
|
<string name="Name">IsNZ</string>
|
|
<Ref name="Value">null</Ref>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="IntValue" referent="RBX276">
|
|
<Properties>
|
|
<string name="Name">Mode</string>
|
|
<int name="Value">0</int>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="Script" referent="RBX277">
|
|
<Properties>
|
|
<bool name="Disabled">false</bool>
|
|
<Content name="LinkedSource"><null></null></Content>
|
|
<string name="Name">Script</string>
|
|
<ProtectedString name="Source">local larm = script.Parent:FindFirstChild("Left Arm")
|
|
local rarm = script.Parent:FindFirstChild("Right Arm")
|
|
|
|
function findNearestTorso(pos)
|
|
	local list = game.Workspace:children()
|
|
	local torso = nil
|
|
	local dist = 1000
|
|
	local temp = nil
|
|
	local human = nil
|
|
	local temp2 = nil
|
|
	for x = 1, #list do
|
|
		temp2 = list[x]
|
|
		if (temp2.className == "Model") and (temp2 ~= script.Parent) then
|
|
			temp = temp2:findFirstChild("Right Arm")
|
|
			human = temp2:findFirstChild("Humanoid")
|
|
			if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then
|
|
				if (temp.Position - pos).magnitude < dist then
|
|
					torso = temp
|
|
					dist = (temp.Position - pos).magnitude
|
|
				end
|
|
			end
|
|
		end
|
|
	end
|
|
	return torso
|
|
end
|
|
|
|
|
|
|
|
|
|
while true do
|
|
	wait(math.random(1,5))
|
|
	local target = findNearestTorso(script.Parent.Torso.Position)
|
|
	if target ~= nil then
|
|
		script.Parent.Humanoid:MoveTo(target.Position, target)
|
|
	end
|
|
|
|
end
|
|
</ProtectedString>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="Script" referent="RBX278">
|
|
<Properties>
|
|
<bool name="Disabled">false</bool>
|
|
<Content name="LinkedSource"><null></null></Content>
|
|
<string name="Name">Health</string>
|
|
<ProtectedString name="Source">function waitForChild(parent, childName)
|
|
	while true do
|
|
		local child = parent:findFirstChild(childName)
|
|
		if child then
|
|
			return child
|
|
		end
|
|
		parent.ChildAdded:wait()
|
|
	end
|
|
end
|
|
|
|
-- declarations
|
|
|
|
local Figure = script.Parent
|
|
local Head = waitForChild(Figure, "Head")
|
|
local Humanoid = waitForChild(Figure, "Humanoid")
|
|
Humanoid.Health=500
|
|
-- regeneration
|
|
while true do
|
|
	local s = wait(4)
|
|
	local health = Humanoid.Health
|
|
	if health > 0 and health < Humanoid.MaxHealth then
|
|
		health = health + 0.08 * s * Humanoid.MaxHealth
|
|
		if health * 1.05 < Humanoid.MaxHealth then
|
|
			Humanoid.Health = health
|
|
		else
|
|
			Humanoid.Health = Humanoid.MaxHealth
|
|
		end
|
|
	end
|
|
end
|
|
</ProtectedString>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="Script" referent="RBX279">
|
|
<Properties>
|
|
<bool name="Disabled">false</bool>
|
|
<Content name="LinkedSource"><null></null></Content>
|
|
<string name="Name">Respawn</string>
|
|
<ProtectedString name="Source">name="Humanoid"
|
|
|
|
robo=script.Parent:clone()
|
|
|
|
while true do
|
|
	wait(1)
|
|
	if script.Parent.Humanoid.Health<1 then
|
|
		robot=robo:clone()
|
|
		robot.Parent=script.Parent.Parent
|
|
		robot:makeJoints()
|
|
		script.Parent:remove()
|
|
	end
|
|
end
|
|
		
|
|
|
|
|
|
</ProtectedString>
|
|
</Properties>
|
|
</Item>
|
|
</Item>
|
|
<Item class="Model" referent="RBX280">
|
|
<Properties>
|
|
<CoordinateFrame name="ModelInPrimary">
|
|
<X>0</X>
|
|
<Y>0</Y>
|
|
<Z>0</Z>
|
|
<R00>1</R00>
|
|
<R01>0</R01>
|
|
<R02>0</R02>
|
|
<R10>0</R10>
|
|
<R11>1</R11>
|
|
<R12>0</R12>
|
|
<R20>0</R20>
|
|
<R21>0</R21>
|
|
<R22>1</R22>
|
|
</CoordinateFrame>
|
|
<string name="Name">Zombie</string>
|
|
<Ref name="PrimaryPart">null</Ref>
|
|
</Properties>
|
|
<Item class="Part" referent="RBX281">
|
|
<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">29</int>
|
|
<CoordinateFrame name="CFrame">
|
|
<X>4.83551025</X>
|
|
<Y>13.9651194</Y>
|
|
<Z>-7.72984886</Z>
|
|
<R00>-0.454648674</R00>
|
|
<R01>-0.540302277</R01>
|
|
<R02>-0.708073378</R02>
|
|
<R10>0.291926563</R10>
|
|
<R11>-0.841470957</R11>
|
|
<R12>0.454648674</R12>
|
|
<R20>-0.841470957</R20>
|
|
<R21>0</R21>
|
|
<R22>0.540302277</R22>
|
|
</CoordinateFrame>
|
|
<bool name="CanCollide">true</bool>
|
|
<float name="Elasticity">0.5</float>
|
|
<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>
|
|
<token name="Material">256</token>
|
|
<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>4.07127958e-025</X>
|
|
<Y>3.33696291e-022</Y>
|
|
<Z>6.94702468e-025</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>3.64807103e-020</X>
|
|
<Y>0.00686328812</Y>
|
|
<Z>3.67023398e-020</Z>
|
|
</Vector3>
|
|
<token name="formFactorRaw">0</token>
|
|
<token name="shape">1</token>
|
|
<Vector3 name="size">
|
|
<X>2</X>
|
|
<Y>1</Y>
|
|
<Z>1</Z>
|
|
</Vector3>
|
|
</Properties>
|
|
<Item class="SpecialMesh" referent="RBX282">
|
|
<Properties>
|
|
<token name="LODX">2</token>
|
|
<token name="LODY">2</token>
|
|
<Content name="MeshId"><null></null></Content>
|
|
<token name="MeshType">0</token>
|
|
<string name="Name">Mesh</string>
|
|
<Vector3 name="Offset">
|
|
<X>0</X>
|
|
<Y>0</Y>
|
|
<Z>0</Z>
|
|
</Vector3>
|
|
<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>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="Decal" referent="RBX283">
|
|
<Properties>
|
|
<token name="Face">5</token>
|
|
<string name="Name">face</string>
|
|
<float name="Shiny">20</float>
|
|
<float name="Specular">0</float>
|
|
<Content name="Texture"><null></null></Content>
|
|
<float name="Transparency">0</float>
|
|
</Properties>
|
|
</Item>
|
|
</Item>
|
|
<Item class="Part" referent="RBX284">
|
|
<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>5.64596367</X>
|
|
<Y>15.2273254</Y>
|
|
<Z>-7.72984886</Z>
|
|
<R00>-0.454648674</R00>
|
|
<R01>-0.540302277</R01>
|
|
<R02>-0.708073378</R02>
|
|
<R10>0.291926563</R10>
|
|
<R11>-0.841470957</R11>
|
|
<R12>0.454648674</R12>
|
|
<R20>-0.841470957</R20>
|
|
<R21>0</R21>
|
|
<R22>0.540302277</R22>
|
|
</CoordinateFrame>
|
|
<bool name="CanCollide">true</bool>
|
|
<float name="Elasticity">0.5</float>
|
|
<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>
|
|
<token name="Material">256</token>
|
|
<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>4.07127958e-025</X>
|
|
<Y>3.33696291e-022</Y>
|
|
<Z>6.94702468e-025</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>3.64798347e-020</X>
|
|
<Y>0.00686328812</Y>
|
|
<Z>3.64324075e-020</Z>
|
|
</Vector3>
|
|
<token name="formFactorRaw">0</token>
|
|
<token name="shape">1</token>
|
|
<Vector3 name="size">
|
|
<X>2</X>
|
|
<Y>2</Y>
|
|
<Z>1</Z>
|
|
</Vector3>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="Part" referent="RBX285">
|
|
<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>6.95389271</X>
|
|
<Y>16.7643032</Y>
|
|
<Z>-7.3091135</Z>
|
|
<R00>-0.454648674</R00>
|
|
<R01>-0.540302277</R01>
|
|
<R02>-0.708073378</R02>
|
|
<R10>0.291926563</R10>
|
|
<R11>-0.841470957</R11>
|
|
<R12>0.454648674</R12>
|
|
<R20>-0.841470957</R20>
|
|
<R21>0</R21>
|
|
<R22>0.540302277</R22>
|
|
</CoordinateFrame>
|
|
<bool name="CanCollide">false</bool>
|
|
<float name="Elasticity">0.5</float>
|
|
<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>
|
|
<token name="Material">256</token>
|
|
<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>4.07127958e-025</X>
|
|
<Y>3.33696291e-022</Y>
|
|
<Z>6.94702468e-025</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>3.66191662e-020</X>
|
|
<Y>0.00686328812</Y>
|
|
<Z>3.59965835e-020</Z>
|
|
</Vector3>
|
|
<token name="formFactorRaw">0</token>
|
|
<token name="shape">1</token>
|
|
<Vector3 name="size">
|
|
<X>1</X>
|
|
<Y>2</Y>
|
|
<Z>1</Z>
|
|
</Vector3>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="Part" referent="RBX286">
|
|
<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>6.49924374</X>
|
|
<Y>17.0562305</Y>
|
|
<Z>-8.15058422</Z>
|
|
<R00>-0.454648674</R00>
|
|
<R01>-0.540302277</R01>
|
|
<R02>-0.708073378</R02>
|
|
<R10>0.291926563</R10>
|
|
<R11>-0.841470957</R11>
|
|
<R12>0.454648674</R12>
|
|
<R20>-0.841470957</R20>
|
|
<R21>0</R21>
|
|
<R22>0.540302277</R22>
|
|
</CoordinateFrame>
|
|
<bool name="CanCollide">false</bool>
|
|
<float name="Elasticity">0.5</float>
|
|
<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>
|
|
<token name="Material">256</token>
|
|
<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>4.07127958e-025</X>
|
|
<Y>3.33696291e-022</Y>
|
|
<Z>6.94702468e-025</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>3.63381671e-020</X>
|
|
<Y>0.00686328812</Y>
|
|
<Z>3.61484164e-020</Z>
|
|
</Vector3>
|
|
<token name="formFactorRaw">0</token>
|
|
<token name="shape">1</token>
|
|
<Vector3 name="size">
|
|
<X>1</X>
|
|
<Y>2</Y>
|
|
<Z>1</Z>
|
|
</Vector3>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="Humanoid" referent="RBX287">
|
|
<Properties>
|
|
<float name="Health">100</float>
|
|
<float name="MaxHealth">100</float>
|
|
<string name="Name">Humanoid</string>
|
|
<token name="NameOcclusion">0</token>
|
|
<float name="WalkSpeed">16</float>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="Part" referent="RBX288">
|
|
<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">29</int>
|
|
<CoordinateFrame name="CFrame">
|
|
<X>6.41182232</X>
|
|
<Y>14.1413755</Y>
|
|
<Z>-6.73779345</Z>
|
|
<R00>0.708073378</R00>
|
|
<R01>-0.540302277</R01>
|
|
<R02>-0.454648674</R02>
|
|
<R10>-0.454648674</R10>
|
|
<R11>-0.841470957</R11>
|
|
<R12>0.291926563</R12>
|
|
<R20>-0.540302277</R20>
|
|
<R21>0</R21>
|
|
<R22>-0.841470957</R22>
|
|
</CoordinateFrame>
|
|
<bool name="CanCollide">true</bool>
|
|
<float name="Elasticity">0.5</float>
|
|
<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>
|
|
<token name="Material">256</token>
|
|
<string name="Name">zarm</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>4.07127958e-025</X>
|
|
<Y>3.33696291e-022</Y>
|
|
<Z>6.94702468e-025</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>3.68116343e-020</X>
|
|
<Y>0.00686328812</Y>
|
|
<Z>3.61764016e-020</Z>
|
|
</Vector3>
|
|
<token name="formFactorRaw">0</token>
|
|
<token name="shape">1</token>
|
|
<Vector3 name="size">
|
|
<X>2</X>
|
|
<Y>1</Y>
|
|
<Z>1</Z>
|
|
</Vector3>
|
|
</Properties>
|
|
<Item class="Script" referent="RBX289">
|
|
<Properties>
|
|
<bool name="Disabled">false</bool>
|
|
<Content name="LinkedSource"><null></null></Content>
|
|
<string name="Name">Script</string>
|
|
<ProtectedString name="Source">wait(1)
|
|
owner=script.Parent.Parent.Name
|
|
|
|
function onTouched(part)
|
|
	if part.Parent ~= nil then
|
|
		local h = part.Parent:findFirstChild("Humanoid")
|
|
			if h~=nil then
|
|
				if cantouch~=0 then
|
|
					if h.Parent.Name~=owner then
|
|
						
|
|
						if h.Parent:findFirstChild("zarm")~=nil then return end
|
|
|
|
						cantouch=0
|
|
|
|
						local larm=h.Parent:findFirstChild("Left Arm")
|
|
						local rarm=h.Parent:findFirstChild("Right Arm")
|
|
						
|
|
						if larm~=nil then
|
|
							larm:remove()
|
|
						end
|
|
						if rarm~=nil then
|
|
							rarm:remove()
|
|
						end
|
|
						local zee=script.Parent.Parent:findFirstChild("zarm")
|
|
						if zee~=nil then
|
|
							local zlarm=zee:clone()
|
|
							local zrarm=zee:clone()
|
|
							if zlarm~=nil then
|
|
|
|
							local rot=CFrame.new(0, 0, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
|
|
								zlarm.CFrame=h.Parent.Torso.CFrame * CFrame.new(Vector3.new(-1.5,0.5,-0.5)) * rot
|
|
								zrarm.CFrame=h.Parent.Torso.CFrame * CFrame.new(Vector3.new(1.5,0.5,-0.5)) * rot
|
|
								zlarm.Parent=h.Parent
|
|
								zrarm.Parent=h.Parent
|
|
								zlarm:makeJoints()
|
|
								zrarm:makeJoints()
|
|
								zlarm.Anchored=false
|
|
								zrarm.Anchored=false
|
|
								wait(0.1)
|
|
								h.Parent.Head.Color=zee.Color
|
|
							else print("no zee"); return end
|
|
						end
|
|
						wait(1)
|
|
						cantouch=1
|
|
					end
|
|
				end
|
|
			end
|
|
	end
|
|
end
|
|
|
|
script.Parent.Touched:connect(onTouched)</ProtectedString>
|
|
</Properties>
|
|
</Item>
|
|
</Item>
|
|
<Item class="Part" referent="RBX290">
|
|
<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">29</int>
|
|
<CoordinateFrame name="CFrame">
|
|
<X>5.04787636</X>
|
|
<Y>15.0171556</Y>
|
|
<Z>-9.26220608</Z>
|
|
<R00>0.708073378</R00>
|
|
<R01>-0.540302277</R01>
|
|
<R02>-0.454648674</R02>
|
|
<R10>-0.454648674</R10>
|
|
<R11>-0.841470957</R11>
|
|
<R12>0.291926563</R12>
|
|
<R20>-0.540302277</R20>
|
|
<R21>0</R21>
|
|
<R22>-0.841470957</R22>
|
|
</CoordinateFrame>
|
|
<bool name="CanCollide">true</bool>
|
|
<float name="Elasticity">0.5</float>
|
|
<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>
|
|
<token name="Material">256</token>
|
|
<string name="Name">zarm</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>4.07127958e-025</X>
|
|
<Y>3.33696291e-022</Y>
|
|
<Z>6.94702468e-025</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>3.59686403e-020</X>
|
|
<Y>0.00686328812</Y>
|
|
<Z>3.66319002e-020</Z>
|
|
</Vector3>
|
|
<token name="formFactorRaw">0</token>
|
|
<token name="shape">1</token>
|
|
<Vector3 name="size">
|
|
<X>2</X>
|
|
<Y>1</Y>
|
|
<Z>1</Z>
|
|
</Vector3>
|
|
</Properties>
|
|
<Item class="Script" referent="RBX291">
|
|
<Properties>
|
|
<bool name="Disabled">false</bool>
|
|
<Content name="LinkedSource"><null></null></Content>
|
|
<string name="Name">Script</string>
|
|
<ProtectedString name="Source">wait(1)
|
|
owner=script.Parent.Parent.Name
|
|
|
|
function onTouched(part)
|
|
	if part.Parent ~= nil then
|
|
		local h = part.Parent:findFirstChild("Humanoid")
|
|
			if h~=nil then
|
|
				if cantouch~=0 then
|
|
					if h.Parent.Name~=owner then
|
|
						
|
|
						if h.Parent:findFirstChild("zarm")~=nil then return end
|
|
|
|
						cantouch=0
|
|
|
|
						local larm=h.Parent:findFirstChild("Left Arm")
|
|
						local rarm=h.Parent:findFirstChild("Right Arm")
|
|
						
|
|
						if larm~=nil then
|
|
							larm:remove()
|
|
						end
|
|
						if rarm~=nil then
|
|
							rarm:remove()
|
|
						end
|
|
						local zee=script.Parent.Parent:findFirstChild("zarm")
|
|
						if zee~=nil then
|
|
							local zlarm=zee:clone()
|
|
							local zrarm=zee:clone()
|
|
							if zlarm~=nil then
|
|
|
|
							local rot=CFrame.new(0, 0, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
|
|
								zlarm.CFrame=h.Parent.Torso.CFrame * CFrame.new(Vector3.new(-1.5,0.5,-0.5)) * rot
|
|
								zrarm.CFrame=h.Parent.Torso.CFrame * CFrame.new(Vector3.new(1.5,0.5,-0.5)) * rot
|
|
								zlarm.Parent=h.Parent
|
|
								zrarm.Parent=h.Parent
|
|
								zlarm:makeJoints()
|
|
								zrarm:makeJoints()
|
|
								zlarm.Anchored=false
|
|
								zrarm.Anchored=false
|
|
								wait(0.1)
|
|
								h.Parent.Head.Color=zee.Color
|
|
							else print("no zee"); return end
|
|
						end
|
|
						wait(1)
|
|
						cantouch=1
|
|
					end
|
|
				end
|
|
			end
|
|
	end
|
|
end
|
|
|
|
script.Parent.Touched:connect(onTouched)</ProtectedString>
|
|
</Properties>
|
|
</Item>
|
|
</Item>
|
|
<Item class="ObjectValue" referent="RBX292">
|
|
<Properties>
|
|
<string name="Name">IsNZ</string>
|
|
<Ref name="Value">null</Ref>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="IntValue" referent="RBX293">
|
|
<Properties>
|
|
<string name="Name">Mode</string>
|
|
<int name="Value">0</int>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="Script" referent="RBX294">
|
|
<Properties>
|
|
<bool name="Disabled">false</bool>
|
|
<Content name="LinkedSource"><null></null></Content>
|
|
<string name="Name">Script</string>
|
|
<ProtectedString name="Source">local larm = script.Parent:FindFirstChild("Left Arm")
|
|
local rarm = script.Parent:FindFirstChild("Right Arm")
|
|
|
|
function findNearestTorso(pos)
|
|
	local list = game.Workspace:children()
|
|
	local torso = nil
|
|
	local dist = 1000
|
|
	local temp = nil
|
|
	local human = nil
|
|
	local temp2 = nil
|
|
	for x = 1, #list do
|
|
		temp2 = list[x]
|
|
		if (temp2.className == "Model") and (temp2 ~= script.Parent) then
|
|
			temp = temp2:findFirstChild("Right Arm")
|
|
			human = temp2:findFirstChild("Humanoid")
|
|
			if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then
|
|
				if (temp.Position - pos).magnitude < dist then
|
|
					torso = temp
|
|
					dist = (temp.Position - pos).magnitude
|
|
				end
|
|
			end
|
|
		end
|
|
	end
|
|
	return torso
|
|
end
|
|
|
|
|
|
|
|
|
|
while true do
|
|
	wait(math.random(1,5))
|
|
	local target = findNearestTorso(script.Parent.Torso.Position)
|
|
	if target ~= nil then
|
|
		script.Parent.Humanoid:MoveTo(target.Position, target)
|
|
	end
|
|
|
|
end
|
|
</ProtectedString>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="Script" referent="RBX295">
|
|
<Properties>
|
|
<bool name="Disabled">false</bool>
|
|
<Content name="LinkedSource"><null></null></Content>
|
|
<string name="Name">Health</string>
|
|
<ProtectedString name="Source">function waitForChild(parent, childName)
|
|
	while true do
|
|
		local child = parent:findFirstChild(childName)
|
|
		if child then
|
|
			return child
|
|
		end
|
|
		parent.ChildAdded:wait()
|
|
	end
|
|
end
|
|
|
|
-- declarations
|
|
|
|
local Figure = script.Parent
|
|
local Head = waitForChild(Figure, "Head")
|
|
local Humanoid = waitForChild(Figure, "Humanoid")
|
|
Humanoid.Health=500
|
|
-- regeneration
|
|
while true do
|
|
	local s = wait(4)
|
|
	local health = Humanoid.Health
|
|
	if health > 0 and health < Humanoid.MaxHealth then
|
|
		health = health + 0.08 * s * Humanoid.MaxHealth
|
|
		if health * 1.05 < Humanoid.MaxHealth then
|
|
			Humanoid.Health = health
|
|
		else
|
|
			Humanoid.Health = Humanoid.MaxHealth
|
|
		end
|
|
	end
|
|
end
|
|
</ProtectedString>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="Script" referent="RBX296">
|
|
<Properties>
|
|
<bool name="Disabled">false</bool>
|
|
<Content name="LinkedSource"><null></null></Content>
|
|
<string name="Name">Respawn</string>
|
|
<ProtectedString name="Source">name="Humanoid"
|
|
|
|
robo=script.Parent:clone()
|
|
|
|
while true do
|
|
	wait(1)
|
|
	if script.Parent.Humanoid.Health<1 then
|
|
		robot=robo:clone()
|
|
		robot.Parent=script.Parent.Parent
|
|
		robot:makeJoints()
|
|
		script.Parent:remove()
|
|
	end
|
|
end
|
|
		
|
|
|
|
|
|
</ProtectedString>
|
|
</Properties>
|
|
</Item>
|
|
</Item>
|
|
<Item class="Model" referent="RBX297">
|
|
<Properties>
|
|
<CoordinateFrame name="ModelInPrimary">
|
|
<X>0</X>
|
|
<Y>0</Y>
|
|
<Z>0</Z>
|
|
<R00>1</R00>
|
|
<R01>0</R01>
|
|
<R02>0</R02>
|
|
<R10>0</R10>
|
|
<R11>1</R11>
|
|
<R12>0</R12>
|
|
<R20>0</R20>
|
|
<R21>0</R21>
|
|
<R22>1</R22>
|
|
</CoordinateFrame>
|
|
<string name="Name">Zombie</string>
|
|
<Ref name="PrimaryPart">null</Ref>
|
|
</Properties>
|
|
<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">4</token>
|
|
<token name="BottomSurfaceInput">0</token>
|
|
<int name="BrickColor">29</int>
|
|
<CoordinateFrame name="CFrame">
|
|
<X>25.5004578</X>
|
|
<Y>16.6975098</Y>
|
|
<Z>-8.71552277</Z>
|
|
<R00>1.49011612e-008</R00>
|
|
<R01>0</R01>
|
|
<R02>-0.999999881</R02>
|
|
<R10>1.49011612e-008</R10>
|
|
<R11>-0.99999994</R11>
|
|
<R12>0</R12>
|
|
<R20>-0.99999994</R20>
|
|
<R21>1.49011612e-008</R21>
|
|
<R22>1.49011612e-008</R22>
|
|
</CoordinateFrame>
|
|
<bool name="CanCollide">true</bool>
|
|
<float name="Elasticity">0.5</float>
|
|
<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>
|
|
<token name="Material">256</token>
|
|
<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>4.07127958e-025</X>
|
|
<Y>3.33696291e-022</Y>
|
|
<Z>6.94702468e-025</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>3.64808751e-020</X>
|
|
<Y>0.00686328812</Y>
|
|
<Z>3.64317968e-020</Z>
|
|
</Vector3>
|
|
<token name="formFactorRaw">0</token>
|
|
<token name="shape">1</token>
|
|
<Vector3 name="size">
|
|
<X>2</X>
|
|
<Y>1</Y>
|
|
<Z>1</Z>
|
|
</Vector3>
|
|
</Properties>
|
|
<Item class="SpecialMesh" referent="RBX299">
|
|
<Properties>
|
|
<token name="LODX">2</token>
|
|
<token name="LODY">2</token>
|
|
<Content name="MeshId"><null></null></Content>
|
|
<token name="MeshType">0</token>
|
|
<string name="Name">Mesh</string>
|
|
<Vector3 name="Offset">
|
|
<X>0</X>
|
|
<Y>0</Y>
|
|
<Z>0</Z>
|
|
</Vector3>
|
|
<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>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="Decal" referent="RBX300">
|
|
<Properties>
|
|
<token name="Face">5</token>
|
|
<string name="Name">face</string>
|
|
<float name="Shiny">20</float>
|
|
<float name="Specular">0</float>
|
|
<Content name="Texture"><null></null></Content>
|
|
<float name="Transparency">0</float>
|
|
</Properties>
|
|
</Item>
|
|
</Item>
|
|
<Item class="Part" referent="RBX301">
|
|
<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>25.5004578</X>
|
|
<Y>18.1975098</Y>
|
|
<Z>-8.71552277</Z>
|
|
<R00>1.49011612e-008</R00>
|
|
<R01>0</R01>
|
|
<R02>-0.999999881</R02>
|
|
<R10>1.49011612e-008</R10>
|
|
<R11>-0.99999994</R11>
|
|
<R12>0</R12>
|
|
<R20>-0.99999994</R20>
|
|
<R21>1.49011612e-008</R21>
|
|
<R22>1.49011612e-008</R22>
|
|
</CoordinateFrame>
|
|
<bool name="CanCollide">true</bool>
|
|
<float name="Elasticity">0.5</float>
|
|
<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>
|
|
<token name="Material">256</token>
|
|
<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>4.07127958e-025</X>
|
|
<Y>3.33696291e-022</Y>
|
|
<Z>6.94702468e-025</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>3.64798347e-020</X>
|
|
<Y>0.00686328812</Y>
|
|
<Z>3.64324075e-020</Z>
|
|
</Vector3>
|
|
<token name="formFactorRaw">0</token>
|
|
<token name="shape">1</token>
|
|
<Vector3 name="size">
|
|
<X>2</X>
|
|
<Y>2</Y>
|
|
<Z>1</Z>
|
|
</Vector3>
|
|
</Properties>
|
|
</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">192</int>
|
|
<CoordinateFrame name="CFrame">
|
|
<X>25.5004578</X>
|
|
<Y>20.1975098</Y>
|
|
<Z>-8.21552277</Z>
|
|
<R00>1.49011612e-008</R00>
|
|
<R01>0</R01>
|
|
<R02>-0.999999881</R02>
|
|
<R10>1.49011612e-008</R10>
|
|
<R11>-0.99999994</R11>
|
|
<R12>0</R12>
|
|
<R20>-0.99999994</R20>
|
|
<R21>1.49011612e-008</R21>
|
|
<R22>1.49011612e-008</R22>
|
|
</CoordinateFrame>
|
|
<bool name="CanCollide">false</bool>
|
|
<float name="Elasticity">0.5</float>
|
|
<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>
|
|
<token name="Material">256</token>
|
|
<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>4.07127958e-025</X>
|
|
<Y>3.33696291e-022</Y>
|
|
<Z>6.94702468e-025</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>3.66452934e-020</X>
|
|
<Y>0.00686328812</Y>
|
|
<Z>3.64332218e-020</Z>
|
|
</Vector3>
|
|
<token name="formFactorRaw">0</token>
|
|
<token name="shape">1</token>
|
|
<Vector3 name="size">
|
|
<X>1</X>
|
|
<Y>2</Y>
|
|
<Z>1</Z>
|
|
</Vector3>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="Part" referent="RBX303">
|
|
<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>25.5004578</X>
|
|
<Y>20.1975098</Y>
|
|
<Z>-9.21552277</Z>
|
|
<R00>1.49011612e-008</R00>
|
|
<R01>0</R01>
|
|
<R02>-0.999999881</R02>
|
|
<R10>1.49011612e-008</R10>
|
|
<R11>-0.99999994</R11>
|
|
<R12>0</R12>
|
|
<R20>-0.99999994</R20>
|
|
<R21>1.49011612e-008</R21>
|
|
<R22>1.49011612e-008</R22>
|
|
</CoordinateFrame>
|
|
<bool name="CanCollide">false</bool>
|
|
<float name="Elasticity">0.5</float>
|
|
<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>
|
|
<token name="Material">256</token>
|
|
<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>4.07127958e-025</X>
|
|
<Y>3.33696291e-022</Y>
|
|
<Z>6.94702468e-025</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>3.63115971e-020</X>
|
|
<Y>0.00686328812</Y>
|
|
<Z>3.64332218e-020</Z>
|
|
</Vector3>
|
|
<token name="formFactorRaw">0</token>
|
|
<token name="shape">1</token>
|
|
<Vector3 name="size">
|
|
<X>1</X>
|
|
<Y>2</Y>
|
|
<Z>1</Z>
|
|
</Vector3>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="Humanoid" referent="RBX304">
|
|
<Properties>
|
|
<float name="Health">100</float>
|
|
<float name="MaxHealth">100</float>
|
|
<string name="Name">Humanoid</string>
|
|
<token name="NameOcclusion">0</token>
|
|
<float name="WalkSpeed">16</float>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="Part" referent="RBX305">
|
|
<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">29</int>
|
|
<CoordinateFrame name="CFrame">
|
|
<X>26.0004578</X>
|
|
<Y>17.6975098</Y>
|
|
<Z>-7.21552277</Z>
|
|
<R00>0.999999881</R00>
|
|
<R01>0</R01>
|
|
<R02>1.49011612e-008</R02>
|
|
<R10>0</R10>
|
|
<R11>-0.99999994</R11>
|
|
<R12>1.49011612e-008</R12>
|
|
<R20>-1.49011612e-008</R20>
|
|
<R21>1.49011612e-008</R21>
|
|
<R22>-0.99999994</R22>
|
|
</CoordinateFrame>
|
|
<bool name="CanCollide">true</bool>
|
|
<float name="Elasticity">0.5</float>
|
|
<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>
|
|
<token name="Material">256</token>
|
|
<string name="Name">zarm</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>4.07127958e-025</X>
|
|
<Y>3.33696291e-022</Y>
|
|
<Z>6.94702468e-025</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>3.69807249e-020</X>
|
|
<Y>0.00686328812</Y>
|
|
<Z>3.62653558e-020</Z>
|
|
</Vector3>
|
|
<token name="formFactorRaw">0</token>
|
|
<token name="shape">1</token>
|
|
<Vector3 name="size">
|
|
<X>2</X>
|
|
<Y>1</Y>
|
|
<Z>1</Z>
|
|
</Vector3>
|
|
</Properties>
|
|
<Item class="Script" referent="RBX306">
|
|
<Properties>
|
|
<bool name="Disabled">false</bool>
|
|
<Content name="LinkedSource"><null></null></Content>
|
|
<string name="Name">Script</string>
|
|
<ProtectedString name="Source">wait(1)
|
|
owner=script.Parent.Parent.Name
|
|
|
|
function onTouched(part)
|
|
	if part.Parent ~= nil then
|
|
		local h = part.Parent:findFirstChild("Humanoid")
|
|
			if h~=nil then
|
|
				if cantouch~=0 then
|
|
					if h.Parent.Name~=owner then
|
|
						
|
|
						if h.Parent:findFirstChild("zarm")~=nil then return end
|
|
|
|
						cantouch=0
|
|
|
|
						local larm=h.Parent:findFirstChild("Left Arm")
|
|
						local rarm=h.Parent:findFirstChild("Right Arm")
|
|
						
|
|
						if larm~=nil then
|
|
							larm:remove()
|
|
						end
|
|
						if rarm~=nil then
|
|
							rarm:remove()
|
|
						end
|
|
						local zee=script.Parent.Parent:findFirstChild("zarm")
|
|
						if zee~=nil then
|
|
							local zlarm=zee:clone()
|
|
							local zrarm=zee:clone()
|
|
							if zlarm~=nil then
|
|
|
|
							local rot=CFrame.new(0, 0, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
|
|
								zlarm.CFrame=h.Parent.Torso.CFrame * CFrame.new(Vector3.new(-1.5,0.5,-0.5)) * rot
|
|
								zrarm.CFrame=h.Parent.Torso.CFrame * CFrame.new(Vector3.new(1.5,0.5,-0.5)) * rot
|
|
								zlarm.Parent=h.Parent
|
|
								zrarm.Parent=h.Parent
|
|
								zlarm:makeJoints()
|
|
								zrarm:makeJoints()
|
|
								zlarm.Anchored=false
|
|
								zrarm.Anchored=false
|
|
								wait(0.1)
|
|
								h.Parent.Head.Color=zee.Color
|
|
							else print("no zee"); return end
|
|
						end
|
|
						wait(1)
|
|
						cantouch=1
|
|
					end
|
|
				end
|
|
			end
|
|
	end
|
|
end
|
|
|
|
script.Parent.Touched:connect(onTouched)</ProtectedString>
|
|
</Properties>
|
|
</Item>
|
|
</Item>
|
|
<Item class="Part" referent="RBX307">
|
|
<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">29</int>
|
|
<CoordinateFrame name="CFrame">
|
|
<X>26.0004578</X>
|
|
<Y>17.6975098</Y>
|
|
<Z>-10.2155228</Z>
|
|
<R00>0.999999881</R00>
|
|
<R01>0</R01>
|
|
<R02>1.49011612e-008</R02>
|
|
<R10>0</R10>
|
|
<R11>-0.99999994</R11>
|
|
<R12>1.49011612e-008</R12>
|
|
<R20>-1.49011612e-008</R20>
|
|
<R21>1.49011612e-008</R21>
|
|
<R22>-0.99999994</R22>
|
|
</CoordinateFrame>
|
|
<bool name="CanCollide">true</bool>
|
|
<float name="Elasticity">0.5</float>
|
|
<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>
|
|
<token name="Material">256</token>
|
|
<string name="Name">zarm</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>4.07127958e-025</X>
|
|
<Y>3.33696291e-022</Y>
|
|
<Z>6.94702468e-025</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>3.5979636e-020</X>
|
|
<Y>0.00686328812</Y>
|
|
<Z>3.62653558e-020</Z>
|
|
</Vector3>
|
|
<token name="formFactorRaw">0</token>
|
|
<token name="shape">1</token>
|
|
<Vector3 name="size">
|
|
<X>2</X>
|
|
<Y>1</Y>
|
|
<Z>1</Z>
|
|
</Vector3>
|
|
</Properties>
|
|
<Item class="Script" referent="RBX308">
|
|
<Properties>
|
|
<bool name="Disabled">false</bool>
|
|
<Content name="LinkedSource"><null></null></Content>
|
|
<string name="Name">Script</string>
|
|
<ProtectedString name="Source">wait(1)
|
|
owner=script.Parent.Parent.Name
|
|
|
|
function onTouched(part)
|
|
	if part.Parent ~= nil then
|
|
		local h = part.Parent:findFirstChild("Humanoid")
|
|
			if h~=nil then
|
|
				if cantouch~=0 then
|
|
					if h.Parent.Name~=owner then
|
|
						
|
|
						if h.Parent:findFirstChild("zarm")~=nil then return end
|
|
|
|
						cantouch=0
|
|
|
|
						local larm=h.Parent:findFirstChild("Left Arm")
|
|
						local rarm=h.Parent:findFirstChild("Right Arm")
|
|
						
|
|
						if larm~=nil then
|
|
							larm:remove()
|
|
						end
|
|
						if rarm~=nil then
|
|
							rarm:remove()
|
|
						end
|
|
						local zee=script.Parent.Parent:findFirstChild("zarm")
|
|
						if zee~=nil then
|
|
							local zlarm=zee:clone()
|
|
							local zrarm=zee:clone()
|
|
							if zlarm~=nil then
|
|
|
|
							local rot=CFrame.new(0, 0, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
|
|
								zlarm.CFrame=h.Parent.Torso.CFrame * CFrame.new(Vector3.new(-1.5,0.5,-0.5)) * rot
|
|
								zrarm.CFrame=h.Parent.Torso.CFrame * CFrame.new(Vector3.new(1.5,0.5,-0.5)) * rot
|
|
								zlarm.Parent=h.Parent
|
|
								zrarm.Parent=h.Parent
|
|
								zlarm:makeJoints()
|
|
								zrarm:makeJoints()
|
|
								zlarm.Anchored=false
|
|
								zrarm.Anchored=false
|
|
								wait(0.1)
|
|
								h.Parent.Head.Color=zee.Color
|
|
							else print("no zee"); return end
|
|
						end
|
|
						wait(1)
|
|
						cantouch=1
|
|
					end
|
|
				end
|
|
			end
|
|
	end
|
|
end
|
|
|
|
script.Parent.Touched:connect(onTouched)</ProtectedString>
|
|
</Properties>
|
|
</Item>
|
|
</Item>
|
|
<Item class="ObjectValue" referent="RBX309">
|
|
<Properties>
|
|
<string name="Name">IsNZ</string>
|
|
<Ref name="Value">null</Ref>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="IntValue" referent="RBX310">
|
|
<Properties>
|
|
<string name="Name">Mode</string>
|
|
<int name="Value">0</int>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="Script" referent="RBX311">
|
|
<Properties>
|
|
<bool name="Disabled">false</bool>
|
|
<Content name="LinkedSource"><null></null></Content>
|
|
<string name="Name">Script</string>
|
|
<ProtectedString name="Source">local larm = script.Parent:FindFirstChild("Left Arm")
|
|
local rarm = script.Parent:FindFirstChild("Right Arm")
|
|
|
|
function findNearestTorso(pos)
|
|
	local list = game.Workspace:children()
|
|
	local torso = nil
|
|
	local dist = 1000
|
|
	local temp = nil
|
|
	local human = nil
|
|
	local temp2 = nil
|
|
	for x = 1, #list do
|
|
		temp2 = list[x]
|
|
		if (temp2.className == "Model") and (temp2 ~= script.Parent) then
|
|
			temp = temp2:findFirstChild("Right Arm")
|
|
			human = temp2:findFirstChild("Humanoid")
|
|
			if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then
|
|
				if (temp.Position - pos).magnitude < dist then
|
|
					torso = temp
|
|
					dist = (temp.Position - pos).magnitude
|
|
				end
|
|
			end
|
|
		end
|
|
	end
|
|
	return torso
|
|
end
|
|
|
|
|
|
|
|
|
|
while true do
|
|
	wait(math.random(1,5))
|
|
	local target = findNearestTorso(script.Parent.Torso.Position)
|
|
	if target ~= nil then
|
|
		script.Parent.Humanoid:MoveTo(target.Position, target)
|
|
	end
|
|
|
|
end
|
|
</ProtectedString>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="Script" referent="RBX312">
|
|
<Properties>
|
|
<bool name="Disabled">false</bool>
|
|
<Content name="LinkedSource"><null></null></Content>
|
|
<string name="Name">Health</string>
|
|
<ProtectedString name="Source">function waitForChild(parent, childName)
|
|
	while true do
|
|
		local child = parent:findFirstChild(childName)
|
|
		if child then
|
|
			return child
|
|
		end
|
|
		parent.ChildAdded:wait()
|
|
	end
|
|
end
|
|
|
|
-- declarations
|
|
|
|
local Figure = script.Parent
|
|
local Head = waitForChild(Figure, "Head")
|
|
local Humanoid = waitForChild(Figure, "Humanoid")
|
|
Humanoid.Health=500
|
|
-- regeneration
|
|
while true do
|
|
	local s = wait(4)
|
|
	local health = Humanoid.Health
|
|
	if health > 0 and health < Humanoid.MaxHealth then
|
|
		health = health + 0.08 * s * Humanoid.MaxHealth
|
|
		if health * 1.05 < Humanoid.MaxHealth then
|
|
			Humanoid.Health = health
|
|
		else
|
|
			Humanoid.Health = Humanoid.MaxHealth
|
|
		end
|
|
	end
|
|
end
|
|
</ProtectedString>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="Script" referent="RBX313">
|
|
<Properties>
|
|
<bool name="Disabled">false</bool>
|
|
<Content name="LinkedSource"><null></null></Content>
|
|
<string name="Name">Respawn</string>
|
|
<ProtectedString name="Source">name="Humanoid"
|
|
|
|
robo=script.Parent:clone()
|
|
|
|
while true do
|
|
	wait(1)
|
|
	if script.Parent.Humanoid.Health<1 then
|
|
		robot=robo:clone()
|
|
		robot.Parent=script.Parent.Parent
|
|
		robot:makeJoints()
|
|
		script.Parent:remove()
|
|
	end
|
|
end
|
|
		
|
|
|
|
|
|
</ProtectedString>
|
|
</Properties>
|
|
</Item>
|
|
</Item>
|
|
<Item class="Model" referent="RBX314">
|
|
<Properties>
|
|
<CoordinateFrame name="ModelInPrimary">
|
|
<X>0</X>
|
|
<Y>0</Y>
|
|
<Z>0</Z>
|
|
<R00>1</R00>
|
|
<R01>0</R01>
|
|
<R02>0</R02>
|
|
<R10>0</R10>
|
|
<R11>1</R11>
|
|
<R12>0</R12>
|
|
<R20>0</R20>
|
|
<R21>0</R21>
|
|
<R22>1</R22>
|
|
</CoordinateFrame>
|
|
<string name="Name">Zombie</string>
|
|
<Ref name="PrimaryPart">null</Ref>
|
|
</Properties>
|
|
<Item class="Part" referent="RBX315">
|
|
<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">29</int>
|
|
<CoordinateFrame name="CFrame">
|
|
<X>4.83551025</X>
|
|
<Y>22.7651215</Y>
|
|
<Z>-7.72984886</Z>
|
|
<R00>-0.454648674</R00>
|
|
<R01>-0.540302277</R01>
|
|
<R02>-0.708073378</R02>
|
|
<R10>0.291926563</R10>
|
|
<R11>-0.841470957</R11>
|
|
<R12>0.454648674</R12>
|
|
<R20>-0.841470957</R20>
|
|
<R21>0</R21>
|
|
<R22>0.540302277</R22>
|
|
</CoordinateFrame>
|
|
<bool name="CanCollide">true</bool>
|
|
<float name="Elasticity">0.5</float>
|
|
<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>
|
|
<token name="Material">256</token>
|
|
<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>4.07127958e-025</X>
|
|
<Y>3.33696291e-022</Y>
|
|
<Z>6.94702468e-025</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>3.64807103e-020</X>
|
|
<Y>0.00686328812</Y>
|
|
<Z>3.67023398e-020</Z>
|
|
</Vector3>
|
|
<token name="formFactorRaw">0</token>
|
|
<token name="shape">1</token>
|
|
<Vector3 name="size">
|
|
<X>2</X>
|
|
<Y>1</Y>
|
|
<Z>1</Z>
|
|
</Vector3>
|
|
</Properties>
|
|
<Item class="SpecialMesh" referent="RBX316">
|
|
<Properties>
|
|
<token name="LODX">2</token>
|
|
<token name="LODY">2</token>
|
|
<Content name="MeshId"><null></null></Content>
|
|
<token name="MeshType">0</token>
|
|
<string name="Name">Mesh</string>
|
|
<Vector3 name="Offset">
|
|
<X>0</X>
|
|
<Y>0</Y>
|
|
<Z>0</Z>
|
|
</Vector3>
|
|
<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>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="Decal" referent="RBX317">
|
|
<Properties>
|
|
<token name="Face">5</token>
|
|
<string name="Name">face</string>
|
|
<float name="Shiny">20</float>
|
|
<float name="Specular">0</float>
|
|
<Content name="Texture"><null></null></Content>
|
|
<float name="Transparency">0</float>
|
|
</Properties>
|
|
</Item>
|
|
</Item>
|
|
<Item class="Part" referent="RBX318">
|
|
<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>5.64596367</X>
|
|
<Y>24.0273285</Y>
|
|
<Z>-7.72984886</Z>
|
|
<R00>-0.454648674</R00>
|
|
<R01>-0.540302277</R01>
|
|
<R02>-0.708073378</R02>
|
|
<R10>0.291926563</R10>
|
|
<R11>-0.841470957</R11>
|
|
<R12>0.454648674</R12>
|
|
<R20>-0.841470957</R20>
|
|
<R21>0</R21>
|
|
<R22>0.540302277</R22>
|
|
</CoordinateFrame>
|
|
<bool name="CanCollide">true</bool>
|
|
<float name="Elasticity">0.5</float>
|
|
<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>
|
|
<token name="Material">256</token>
|
|
<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>4.07127958e-025</X>
|
|
<Y>3.33696291e-022</Y>
|
|
<Z>6.94702468e-025</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>3.64798347e-020</X>
|
|
<Y>0.00686328812</Y>
|
|
<Z>3.64324075e-020</Z>
|
|
</Vector3>
|
|
<token name="formFactorRaw">0</token>
|
|
<token name="shape">1</token>
|
|
<Vector3 name="size">
|
|
<X>2</X>
|
|
<Y>2</Y>
|
|
<Z>1</Z>
|
|
</Vector3>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="Part" referent="RBX319">
|
|
<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>6.95389271</X>
|
|
<Y>25.5643063</Y>
|
|
<Z>-7.3091135</Z>
|
|
<R00>-0.454648674</R00>
|
|
<R01>-0.540302277</R01>
|
|
<R02>-0.708073378</R02>
|
|
<R10>0.291926563</R10>
|
|
<R11>-0.841470957</R11>
|
|
<R12>0.454648674</R12>
|
|
<R20>-0.841470957</R20>
|
|
<R21>0</R21>
|
|
<R22>0.540302277</R22>
|
|
</CoordinateFrame>
|
|
<bool name="CanCollide">false</bool>
|
|
<float name="Elasticity">0.5</float>
|
|
<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>
|
|
<token name="Material">256</token>
|
|
<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>4.07127958e-025</X>
|
|
<Y>3.33696291e-022</Y>
|
|
<Z>6.94702468e-025</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>3.66191662e-020</X>
|
|
<Y>0.00686328812</Y>
|
|
<Z>3.59965835e-020</Z>
|
|
</Vector3>
|
|
<token name="formFactorRaw">0</token>
|
|
<token name="shape">1</token>
|
|
<Vector3 name="size">
|
|
<X>1</X>
|
|
<Y>2</Y>
|
|
<Z>1</Z>
|
|
</Vector3>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="Part" referent="RBX320">
|
|
<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>6.49924374</X>
|
|
<Y>25.8562336</Y>
|
|
<Z>-8.15058422</Z>
|
|
<R00>-0.454648674</R00>
|
|
<R01>-0.540302277</R01>
|
|
<R02>-0.708073378</R02>
|
|
<R10>0.291926563</R10>
|
|
<R11>-0.841470957</R11>
|
|
<R12>0.454648674</R12>
|
|
<R20>-0.841470957</R20>
|
|
<R21>0</R21>
|
|
<R22>0.540302277</R22>
|
|
</CoordinateFrame>
|
|
<bool name="CanCollide">false</bool>
|
|
<float name="Elasticity">0.5</float>
|
|
<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>
|
|
<token name="Material">256</token>
|
|
<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>4.07127958e-025</X>
|
|
<Y>3.33696291e-022</Y>
|
|
<Z>6.94702468e-025</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>3.63381671e-020</X>
|
|
<Y>0.00686328812</Y>
|
|
<Z>3.61484164e-020</Z>
|
|
</Vector3>
|
|
<token name="formFactorRaw">0</token>
|
|
<token name="shape">1</token>
|
|
<Vector3 name="size">
|
|
<X>1</X>
|
|
<Y>2</Y>
|
|
<Z>1</Z>
|
|
</Vector3>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="Humanoid" referent="RBX321">
|
|
<Properties>
|
|
<float name="Health">100</float>
|
|
<float name="MaxHealth">100</float>
|
|
<string name="Name">Humanoid</string>
|
|
<token name="NameOcclusion">0</token>
|
|
<float name="WalkSpeed">16</float>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="Part" referent="RBX322">
|
|
<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">29</int>
|
|
<CoordinateFrame name="CFrame">
|
|
<X>6.41182232</X>
|
|
<Y>22.9413795</Y>
|
|
<Z>-6.73779345</Z>
|
|
<R00>0.708073378</R00>
|
|
<R01>-0.540302277</R01>
|
|
<R02>-0.454648674</R02>
|
|
<R10>-0.454648674</R10>
|
|
<R11>-0.841470957</R11>
|
|
<R12>0.291926563</R12>
|
|
<R20>-0.540302277</R20>
|
|
<R21>0</R21>
|
|
<R22>-0.841470957</R22>
|
|
</CoordinateFrame>
|
|
<bool name="CanCollide">true</bool>
|
|
<float name="Elasticity">0.5</float>
|
|
<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>
|
|
<token name="Material">256</token>
|
|
<string name="Name">zarm</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>4.07127958e-025</X>
|
|
<Y>3.33696291e-022</Y>
|
|
<Z>6.94702468e-025</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>3.68116343e-020</X>
|
|
<Y>0.00686328812</Y>
|
|
<Z>3.61764016e-020</Z>
|
|
</Vector3>
|
|
<token name="formFactorRaw">0</token>
|
|
<token name="shape">1</token>
|
|
<Vector3 name="size">
|
|
<X>2</X>
|
|
<Y>1</Y>
|
|
<Z>1</Z>
|
|
</Vector3>
|
|
</Properties>
|
|
<Item class="Script" referent="RBX323">
|
|
<Properties>
|
|
<bool name="Disabled">false</bool>
|
|
<Content name="LinkedSource"><null></null></Content>
|
|
<string name="Name">Script</string>
|
|
<ProtectedString name="Source">wait(1)
|
|
owner=script.Parent.Parent.Name
|
|
|
|
function onTouched(part)
|
|
	if part.Parent ~= nil then
|
|
		local h = part.Parent:findFirstChild("Humanoid")
|
|
			if h~=nil then
|
|
				if cantouch~=0 then
|
|
					if h.Parent.Name~=owner then
|
|
						
|
|
						if h.Parent:findFirstChild("zarm")~=nil then return end
|
|
|
|
						cantouch=0
|
|
|
|
						local larm=h.Parent:findFirstChild("Left Arm")
|
|
						local rarm=h.Parent:findFirstChild("Right Arm")
|
|
						
|
|
						if larm~=nil then
|
|
							larm:remove()
|
|
						end
|
|
						if rarm~=nil then
|
|
							rarm:remove()
|
|
						end
|
|
						local zee=script.Parent.Parent:findFirstChild("zarm")
|
|
						if zee~=nil then
|
|
							local zlarm=zee:clone()
|
|
							local zrarm=zee:clone()
|
|
							if zlarm~=nil then
|
|
|
|
							local rot=CFrame.new(0, 0, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
|
|
								zlarm.CFrame=h.Parent.Torso.CFrame * CFrame.new(Vector3.new(-1.5,0.5,-0.5)) * rot
|
|
								zrarm.CFrame=h.Parent.Torso.CFrame * CFrame.new(Vector3.new(1.5,0.5,-0.5)) * rot
|
|
								zlarm.Parent=h.Parent
|
|
								zrarm.Parent=h.Parent
|
|
								zlarm:makeJoints()
|
|
								zrarm:makeJoints()
|
|
								zlarm.Anchored=false
|
|
								zrarm.Anchored=false
|
|
								wait(0.1)
|
|
								h.Parent.Head.Color=zee.Color
|
|
							else print("no zee"); return end
|
|
						end
|
|
						wait(1)
|
|
						cantouch=1
|
|
					end
|
|
				end
|
|
			end
|
|
	end
|
|
end
|
|
|
|
script.Parent.Touched:connect(onTouched)</ProtectedString>
|
|
</Properties>
|
|
</Item>
|
|
</Item>
|
|
<Item class="Part" referent="RBX324">
|
|
<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">29</int>
|
|
<CoordinateFrame name="CFrame">
|
|
<X>5.04787636</X>
|
|
<Y>23.8171577</Y>
|
|
<Z>-9.26220608</Z>
|
|
<R00>0.708073378</R00>
|
|
<R01>-0.540302277</R01>
|
|
<R02>-0.454648674</R02>
|
|
<R10>-0.454648674</R10>
|
|
<R11>-0.841470957</R11>
|
|
<R12>0.291926563</R12>
|
|
<R20>-0.540302277</R20>
|
|
<R21>0</R21>
|
|
<R22>-0.841470957</R22>
|
|
</CoordinateFrame>
|
|
<bool name="CanCollide">true</bool>
|
|
<float name="Elasticity">0.5</float>
|
|
<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>
|
|
<token name="Material">256</token>
|
|
<string name="Name">zarm</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>4.07127958e-025</X>
|
|
<Y>3.33696291e-022</Y>
|
|
<Z>6.94702468e-025</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>3.59686403e-020</X>
|
|
<Y>0.00686328812</Y>
|
|
<Z>3.66319002e-020</Z>
|
|
</Vector3>
|
|
<token name="formFactorRaw">0</token>
|
|
<token name="shape">1</token>
|
|
<Vector3 name="size">
|
|
<X>2</X>
|
|
<Y>1</Y>
|
|
<Z>1</Z>
|
|
</Vector3>
|
|
</Properties>
|
|
<Item class="Script" referent="RBX325">
|
|
<Properties>
|
|
<bool name="Disabled">false</bool>
|
|
<Content name="LinkedSource"><null></null></Content>
|
|
<string name="Name">Script</string>
|
|
<ProtectedString name="Source">wait(1)
|
|
owner=script.Parent.Parent.Name
|
|
|
|
function onTouched(part)
|
|
	if part.Parent ~= nil then
|
|
		local h = part.Parent:findFirstChild("Humanoid")
|
|
			if h~=nil then
|
|
				if cantouch~=0 then
|
|
					if h.Parent.Name~=owner then
|
|
						
|
|
						if h.Parent:findFirstChild("zarm")~=nil then return end
|
|
|
|
						cantouch=0
|
|
|
|
						local larm=h.Parent:findFirstChild("Left Arm")
|
|
						local rarm=h.Parent:findFirstChild("Right Arm")
|
|
						
|
|
						if larm~=nil then
|
|
							larm:remove()
|
|
						end
|
|
						if rarm~=nil then
|
|
							rarm:remove()
|
|
						end
|
|
						local zee=script.Parent.Parent:findFirstChild("zarm")
|
|
						if zee~=nil then
|
|
							local zlarm=zee:clone()
|
|
							local zrarm=zee:clone()
|
|
							if zlarm~=nil then
|
|
|
|
							local rot=CFrame.new(0, 0, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
|
|
								zlarm.CFrame=h.Parent.Torso.CFrame * CFrame.new(Vector3.new(-1.5,0.5,-0.5)) * rot
|
|
								zrarm.CFrame=h.Parent.Torso.CFrame * CFrame.new(Vector3.new(1.5,0.5,-0.5)) * rot
|
|
								zlarm.Parent=h.Parent
|
|
								zrarm.Parent=h.Parent
|
|
								zlarm:makeJoints()
|
|
								zrarm:makeJoints()
|
|
								zlarm.Anchored=false
|
|
								zrarm.Anchored=false
|
|
								wait(0.1)
|
|
								h.Parent.Head.Color=zee.Color
|
|
							else print("no zee"); return end
|
|
						end
|
|
						wait(1)
|
|
						cantouch=1
|
|
					end
|
|
				end
|
|
			end
|
|
	end
|
|
end
|
|
|
|
script.Parent.Touched:connect(onTouched)</ProtectedString>
|
|
</Properties>
|
|
</Item>
|
|
</Item>
|
|
<Item class="ObjectValue" referent="RBX326">
|
|
<Properties>
|
|
<string name="Name">IsNZ</string>
|
|
<Ref name="Value">null</Ref>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="IntValue" referent="RBX327">
|
|
<Properties>
|
|
<string name="Name">Mode</string>
|
|
<int name="Value">0</int>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="Script" referent="RBX328">
|
|
<Properties>
|
|
<bool name="Disabled">false</bool>
|
|
<Content name="LinkedSource"><null></null></Content>
|
|
<string name="Name">Script</string>
|
|
<ProtectedString name="Source">local larm = script.Parent:FindFirstChild("Left Arm")
|
|
local rarm = script.Parent:FindFirstChild("Right Arm")
|
|
|
|
function findNearestTorso(pos)
|
|
	local list = game.Workspace:children()
|
|
	local torso = nil
|
|
	local dist = 1000
|
|
	local temp = nil
|
|
	local human = nil
|
|
	local temp2 = nil
|
|
	for x = 1, #list do
|
|
		temp2 = list[x]
|
|
		if (temp2.className == "Model") and (temp2 ~= script.Parent) then
|
|
			temp = temp2:findFirstChild("Right Arm")
|
|
			human = temp2:findFirstChild("Humanoid")
|
|
			if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then
|
|
				if (temp.Position - pos).magnitude < dist then
|
|
					torso = temp
|
|
					dist = (temp.Position - pos).magnitude
|
|
				end
|
|
			end
|
|
		end
|
|
	end
|
|
	return torso
|
|
end
|
|
|
|
|
|
|
|
|
|
while true do
|
|
	wait(math.random(1,5))
|
|
	local target = findNearestTorso(script.Parent.Torso.Position)
|
|
	if target ~= nil then
|
|
		script.Parent.Humanoid:MoveTo(target.Position, target)
|
|
	end
|
|
|
|
end
|
|
</ProtectedString>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="Script" referent="RBX329">
|
|
<Properties>
|
|
<bool name="Disabled">false</bool>
|
|
<Content name="LinkedSource"><null></null></Content>
|
|
<string name="Name">Health</string>
|
|
<ProtectedString name="Source">function waitForChild(parent, childName)
|
|
	while true do
|
|
		local child = parent:findFirstChild(childName)
|
|
		if child then
|
|
			return child
|
|
		end
|
|
		parent.ChildAdded:wait()
|
|
	end
|
|
end
|
|
|
|
-- declarations
|
|
|
|
local Figure = script.Parent
|
|
local Head = waitForChild(Figure, "Head")
|
|
local Humanoid = waitForChild(Figure, "Humanoid")
|
|
Humanoid.Health=500
|
|
-- regeneration
|
|
while true do
|
|
	local s = wait(4)
|
|
	local health = Humanoid.Health
|
|
	if health > 0 and health < Humanoid.MaxHealth then
|
|
		health = health + 0.08 * s * Humanoid.MaxHealth
|
|
		if health * 1.05 < Humanoid.MaxHealth then
|
|
			Humanoid.Health = health
|
|
		else
|
|
			Humanoid.Health = Humanoid.MaxHealth
|
|
		end
|
|
	end
|
|
end
|
|
</ProtectedString>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="Script" referent="RBX330">
|
|
<Properties>
|
|
<bool name="Disabled">false</bool>
|
|
<Content name="LinkedSource"><null></null></Content>
|
|
<string name="Name">Respawn</string>
|
|
<ProtectedString name="Source">name="Humanoid"
|
|
|
|
robo=script.Parent:clone()
|
|
|
|
while true do
|
|
	wait(1)
|
|
	if script.Parent.Humanoid.Health<1 then
|
|
		robot=robo:clone()
|
|
		robot.Parent=script.Parent.Parent
|
|
		robot:makeJoints()
|
|
		script.Parent:remove()
|
|
	end
|
|
end
|
|
		
|
|
|
|
|
|
</ProtectedString>
|
|
</Properties>
|
|
</Item>
|
|
</Item>
|
|
<Item class="Model" referent="RBX331">
|
|
<Properties>
|
|
<CoordinateFrame name="ModelInPrimary">
|
|
<X>0</X>
|
|
<Y>0</Y>
|
|
<Z>0</Z>
|
|
<R00>1</R00>
|
|
<R01>0</R01>
|
|
<R02>0</R02>
|
|
<R10>0</R10>
|
|
<R11>1</R11>
|
|
<R12>0</R12>
|
|
<R20>0</R20>
|
|
<R21>0</R21>
|
|
<R22>1</R22>
|
|
</CoordinateFrame>
|
|
<string name="Name">Zombie</string>
|
|
<Ref name="PrimaryPart">null</Ref>
|
|
</Properties>
|
|
<Item class="Part" referent="RBX332">
|
|
<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">29</int>
|
|
<CoordinateFrame name="CFrame">
|
|
<X>17.4986343</X>
|
|
<Y>31.5075226</Y>
|
|
<Z>-13.8534317</Z>
|
|
<R00>1.49011612e-008</R00>
|
|
<R01>0</R01>
|
|
<R02>-0.999999881</R02>
|
|
<R10>1.49011612e-008</R10>
|
|
<R11>-0.99999994</R11>
|
|
<R12>0</R12>
|
|
<R20>-0.99999994</R20>
|
|
<R21>1.49011612e-008</R21>
|
|
<R22>1.49011612e-008</R22>
|
|
</CoordinateFrame>
|
|
<bool name="CanCollide">true</bool>
|
|
<float name="Elasticity">0.5</float>
|
|
<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>
|
|
<token name="Material">256</token>
|
|
<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>4.07127958e-025</X>
|
|
<Y>3.33696291e-022</Y>
|
|
<Z>6.94702468e-025</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>3.64808751e-020</X>
|
|
<Y>0.00686328812</Y>
|
|
<Z>3.64317968e-020</Z>
|
|
</Vector3>
|
|
<token name="formFactorRaw">0</token>
|
|
<token name="shape">1</token>
|
|
<Vector3 name="size">
|
|
<X>2</X>
|
|
<Y>1</Y>
|
|
<Z>1</Z>
|
|
</Vector3>
|
|
</Properties>
|
|
<Item class="SpecialMesh" referent="RBX333">
|
|
<Properties>
|
|
<token name="LODX">2</token>
|
|
<token name="LODY">2</token>
|
|
<Content name="MeshId"><null></null></Content>
|
|
<token name="MeshType">0</token>
|
|
<string name="Name">Mesh</string>
|
|
<Vector3 name="Offset">
|
|
<X>0</X>
|
|
<Y>0</Y>
|
|
<Z>0</Z>
|
|
</Vector3>
|
|
<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>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="Decal" referent="RBX334">
|
|
<Properties>
|
|
<token name="Face">5</token>
|
|
<string name="Name">face</string>
|
|
<float name="Shiny">20</float>
|
|
<float name="Specular">0</float>
|
|
<Content name="Texture"><null></null></Content>
|
|
<float name="Transparency">0</float>
|
|
</Properties>
|
|
</Item>
|
|
</Item>
|
|
<Item class="Part" referent="RBX335">
|
|
<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>17.4986343</X>
|
|
<Y>33.0075226</Y>
|
|
<Z>-13.8534317</Z>
|
|
<R00>1.49011612e-008</R00>
|
|
<R01>0</R01>
|
|
<R02>-0.999999881</R02>
|
|
<R10>1.49011612e-008</R10>
|
|
<R11>-0.99999994</R11>
|
|
<R12>0</R12>
|
|
<R20>-0.99999994</R20>
|
|
<R21>1.49011612e-008</R21>
|
|
<R22>1.49011612e-008</R22>
|
|
</CoordinateFrame>
|
|
<bool name="CanCollide">true</bool>
|
|
<float name="Elasticity">0.5</float>
|
|
<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>
|
|
<token name="Material">256</token>
|
|
<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>4.07127958e-025</X>
|
|
<Y>3.33696291e-022</Y>
|
|
<Z>6.94702468e-025</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>3.64798347e-020</X>
|
|
<Y>0.00686328812</Y>
|
|
<Z>3.64324075e-020</Z>
|
|
</Vector3>
|
|
<token name="formFactorRaw">0</token>
|
|
<token name="shape">1</token>
|
|
<Vector3 name="size">
|
|
<X>2</X>
|
|
<Y>2</Y>
|
|
<Z>1</Z>
|
|
</Vector3>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="Part" referent="RBX336">
|
|
<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>17.4986343</X>
|
|
<Y>35.0075226</Y>
|
|
<Z>-13.3534317</Z>
|
|
<R00>1.49011612e-008</R00>
|
|
<R01>0</R01>
|
|
<R02>-0.999999881</R02>
|
|
<R10>1.49011612e-008</R10>
|
|
<R11>-0.99999994</R11>
|
|
<R12>0</R12>
|
|
<R20>-0.99999994</R20>
|
|
<R21>1.49011612e-008</R21>
|
|
<R22>1.49011612e-008</R22>
|
|
</CoordinateFrame>
|
|
<bool name="CanCollide">false</bool>
|
|
<float name="Elasticity">0.5</float>
|
|
<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>
|
|
<token name="Material">256</token>
|
|
<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>4.07127958e-025</X>
|
|
<Y>3.33696291e-022</Y>
|
|
<Z>6.94702468e-025</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>3.66452934e-020</X>
|
|
<Y>0.00686328812</Y>
|
|
<Z>3.64332218e-020</Z>
|
|
</Vector3>
|
|
<token name="formFactorRaw">0</token>
|
|
<token name="shape">1</token>
|
|
<Vector3 name="size">
|
|
<X>1</X>
|
|
<Y>2</Y>
|
|
<Z>1</Z>
|
|
</Vector3>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="Part" referent="RBX337">
|
|
<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>17.4986343</X>
|
|
<Y>35.0075226</Y>
|
|
<Z>-14.3534317</Z>
|
|
<R00>1.49011612e-008</R00>
|
|
<R01>0</R01>
|
|
<R02>-0.999999881</R02>
|
|
<R10>1.49011612e-008</R10>
|
|
<R11>-0.99999994</R11>
|
|
<R12>0</R12>
|
|
<R20>-0.99999994</R20>
|
|
<R21>1.49011612e-008</R21>
|
|
<R22>1.49011612e-008</R22>
|
|
</CoordinateFrame>
|
|
<bool name="CanCollide">false</bool>
|
|
<float name="Elasticity">0.5</float>
|
|
<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>
|
|
<token name="Material">256</token>
|
|
<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>4.07127958e-025</X>
|
|
<Y>3.33696291e-022</Y>
|
|
<Z>6.94702468e-025</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>3.63115971e-020</X>
|
|
<Y>0.00686328812</Y>
|
|
<Z>3.64332218e-020</Z>
|
|
</Vector3>
|
|
<token name="formFactorRaw">0</token>
|
|
<token name="shape">1</token>
|
|
<Vector3 name="size">
|
|
<X>1</X>
|
|
<Y>2</Y>
|
|
<Z>1</Z>
|
|
</Vector3>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="Humanoid" referent="RBX338">
|
|
<Properties>
|
|
<float name="Health">100</float>
|
|
<float name="MaxHealth">100</float>
|
|
<string name="Name">Humanoid</string>
|
|
<token name="NameOcclusion">0</token>
|
|
<float name="WalkSpeed">16</float>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="Part" referent="RBX339">
|
|
<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">29</int>
|
|
<CoordinateFrame name="CFrame">
|
|
<X>17.9986343</X>
|
|
<Y>32.5075226</Y>
|
|
<Z>-12.3534317</Z>
|
|
<R00>0.999999881</R00>
|
|
<R01>0</R01>
|
|
<R02>1.49011612e-008</R02>
|
|
<R10>0</R10>
|
|
<R11>-0.99999994</R11>
|
|
<R12>1.49011612e-008</R12>
|
|
<R20>-1.49011612e-008</R20>
|
|
<R21>1.49011612e-008</R21>
|
|
<R22>-0.99999994</R22>
|
|
</CoordinateFrame>
|
|
<bool name="CanCollide">true</bool>
|
|
<float name="Elasticity">0.5</float>
|
|
<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>
|
|
<token name="Material">256</token>
|
|
<string name="Name">zarm</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>4.07127958e-025</X>
|
|
<Y>3.33696291e-022</Y>
|
|
<Z>6.94702468e-025</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>3.69807249e-020</X>
|
|
<Y>0.00686328812</Y>
|
|
<Z>3.62653558e-020</Z>
|
|
</Vector3>
|
|
<token name="formFactorRaw">0</token>
|
|
<token name="shape">1</token>
|
|
<Vector3 name="size">
|
|
<X>2</X>
|
|
<Y>1</Y>
|
|
<Z>1</Z>
|
|
</Vector3>
|
|
</Properties>
|
|
<Item class="Script" referent="RBX340">
|
|
<Properties>
|
|
<bool name="Disabled">false</bool>
|
|
<Content name="LinkedSource"><null></null></Content>
|
|
<string name="Name">Script</string>
|
|
<ProtectedString name="Source">wait(1)
|
|
owner=script.Parent.Parent.Name
|
|
|
|
function onTouched(part)
|
|
	if part.Parent ~= nil then
|
|
		local h = part.Parent:findFirstChild("Humanoid")
|
|
			if h~=nil then
|
|
				if cantouch~=0 then
|
|
					if h.Parent.Name~=owner then
|
|
						
|
|
						if h.Parent:findFirstChild("zarm")~=nil then return end
|
|
|
|
						cantouch=0
|
|
|
|
						local larm=h.Parent:findFirstChild("Left Arm")
|
|
						local rarm=h.Parent:findFirstChild("Right Arm")
|
|
						
|
|
						if larm~=nil then
|
|
							larm:remove()
|
|
						end
|
|
						if rarm~=nil then
|
|
							rarm:remove()
|
|
						end
|
|
						local zee=script.Parent.Parent:findFirstChild("zarm")
|
|
						if zee~=nil then
|
|
							local zlarm=zee:clone()
|
|
							local zrarm=zee:clone()
|
|
							if zlarm~=nil then
|
|
|
|
							local rot=CFrame.new(0, 0, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
|
|
								zlarm.CFrame=h.Parent.Torso.CFrame * CFrame.new(Vector3.new(-1.5,0.5,-0.5)) * rot
|
|
								zrarm.CFrame=h.Parent.Torso.CFrame * CFrame.new(Vector3.new(1.5,0.5,-0.5)) * rot
|
|
								zlarm.Parent=h.Parent
|
|
								zrarm.Parent=h.Parent
|
|
								zlarm:makeJoints()
|
|
								zrarm:makeJoints()
|
|
								zlarm.Anchored=false
|
|
								zrarm.Anchored=false
|
|
								wait(0.1)
|
|
								h.Parent.Head.Color=zee.Color
|
|
							else print("no zee"); return end
|
|
						end
|
|
						wait(1)
|
|
						cantouch=1
|
|
					end
|
|
				end
|
|
			end
|
|
	end
|
|
end
|
|
|
|
script.Parent.Touched:connect(onTouched)</ProtectedString>
|
|
</Properties>
|
|
</Item>
|
|
</Item>
|
|
<Item class="Part" referent="RBX341">
|
|
<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">29</int>
|
|
<CoordinateFrame name="CFrame">
|
|
<X>17.9986343</X>
|
|
<Y>32.5075226</Y>
|
|
<Z>-15.3534317</Z>
|
|
<R00>0.999999881</R00>
|
|
<R01>0</R01>
|
|
<R02>1.49011612e-008</R02>
|
|
<R10>0</R10>
|
|
<R11>-0.99999994</R11>
|
|
<R12>1.49011612e-008</R12>
|
|
<R20>-1.49011612e-008</R20>
|
|
<R21>1.49011612e-008</R21>
|
|
<R22>-0.99999994</R22>
|
|
</CoordinateFrame>
|
|
<bool name="CanCollide">true</bool>
|
|
<float name="Elasticity">0.5</float>
|
|
<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>
|
|
<token name="Material">256</token>
|
|
<string name="Name">zarm</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>4.07127958e-025</X>
|
|
<Y>3.33696291e-022</Y>
|
|
<Z>6.94702468e-025</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>3.5979636e-020</X>
|
|
<Y>0.00686328812</Y>
|
|
<Z>3.62653558e-020</Z>
|
|
</Vector3>
|
|
<token name="formFactorRaw">0</token>
|
|
<token name="shape">1</token>
|
|
<Vector3 name="size">
|
|
<X>2</X>
|
|
<Y>1</Y>
|
|
<Z>1</Z>
|
|
</Vector3>
|
|
</Properties>
|
|
<Item class="Script" referent="RBX342">
|
|
<Properties>
|
|
<bool name="Disabled">false</bool>
|
|
<Content name="LinkedSource"><null></null></Content>
|
|
<string name="Name">Script</string>
|
|
<ProtectedString name="Source">wait(1)
|
|
owner=script.Parent.Parent.Name
|
|
|
|
function onTouched(part)
|
|
	if part.Parent ~= nil then
|
|
		local h = part.Parent:findFirstChild("Humanoid")
|
|
			if h~=nil then
|
|
				if cantouch~=0 then
|
|
					if h.Parent.Name~=owner then
|
|
						
|
|
						if h.Parent:findFirstChild("zarm")~=nil then return end
|
|
|
|
						cantouch=0
|
|
|
|
						local larm=h.Parent:findFirstChild("Left Arm")
|
|
						local rarm=h.Parent:findFirstChild("Right Arm")
|
|
						
|
|
						if larm~=nil then
|
|
							larm:remove()
|
|
						end
|
|
						if rarm~=nil then
|
|
							rarm:remove()
|
|
						end
|
|
						local zee=script.Parent.Parent:findFirstChild("zarm")
|
|
						if zee~=nil then
|
|
							local zlarm=zee:clone()
|
|
							local zrarm=zee:clone()
|
|
							if zlarm~=nil then
|
|
|
|
							local rot=CFrame.new(0, 0, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
|
|
								zlarm.CFrame=h.Parent.Torso.CFrame * CFrame.new(Vector3.new(-1.5,0.5,-0.5)) * rot
|
|
								zrarm.CFrame=h.Parent.Torso.CFrame * CFrame.new(Vector3.new(1.5,0.5,-0.5)) * rot
|
|
								zlarm.Parent=h.Parent
|
|
								zrarm.Parent=h.Parent
|
|
								zlarm:makeJoints()
|
|
								zrarm:makeJoints()
|
|
								zlarm.Anchored=false
|
|
								zrarm.Anchored=false
|
|
								wait(0.1)
|
|
								h.Parent.Head.Color=zee.Color
|
|
							else print("no zee"); return end
|
|
						end
|
|
						wait(1)
|
|
						cantouch=1
|
|
					end
|
|
				end
|
|
			end
|
|
	end
|
|
end
|
|
|
|
script.Parent.Touched:connect(onTouched)</ProtectedString>
|
|
</Properties>
|
|
</Item>
|
|
</Item>
|
|
<Item class="ObjectValue" referent="RBX343">
|
|
<Properties>
|
|
<string name="Name">IsNZ</string>
|
|
<Ref name="Value">null</Ref>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="IntValue" referent="RBX344">
|
|
<Properties>
|
|
<string name="Name">Mode</string>
|
|
<int name="Value">0</int>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="Script" referent="RBX345">
|
|
<Properties>
|
|
<bool name="Disabled">false</bool>
|
|
<Content name="LinkedSource"><null></null></Content>
|
|
<string name="Name">Script</string>
|
|
<ProtectedString name="Source">local larm = script.Parent:FindFirstChild("Left Arm")
|
|
local rarm = script.Parent:FindFirstChild("Right Arm")
|
|
|
|
function findNearestTorso(pos)
|
|
	local list = game.Workspace:children()
|
|
	local torso = nil
|
|
	local dist = 1000
|
|
	local temp = nil
|
|
	local human = nil
|
|
	local temp2 = nil
|
|
	for x = 1, #list do
|
|
		temp2 = list[x]
|
|
		if (temp2.className == "Model") and (temp2 ~= script.Parent) then
|
|
			temp = temp2:findFirstChild("Right Arm")
|
|
			human = temp2:findFirstChild("Humanoid")
|
|
			if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then
|
|
				if (temp.Position - pos).magnitude < dist then
|
|
					torso = temp
|
|
					dist = (temp.Position - pos).magnitude
|
|
				end
|
|
			end
|
|
		end
|
|
	end
|
|
	return torso
|
|
end
|
|
|
|
|
|
|
|
|
|
while true do
|
|
	wait(math.random(1,5))
|
|
	local target = findNearestTorso(script.Parent.Torso.Position)
|
|
	if target ~= nil then
|
|
		script.Parent.Humanoid:MoveTo(target.Position, target)
|
|
	end
|
|
|
|
end
|
|
</ProtectedString>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="Script" referent="RBX346">
|
|
<Properties>
|
|
<bool name="Disabled">false</bool>
|
|
<Content name="LinkedSource"><null></null></Content>
|
|
<string name="Name">Health</string>
|
|
<ProtectedString name="Source">function waitForChild(parent, childName)
|
|
	while true do
|
|
		local child = parent:findFirstChild(childName)
|
|
		if child then
|
|
			return child
|
|
		end
|
|
		parent.ChildAdded:wait()
|
|
	end
|
|
end
|
|
|
|
-- declarations
|
|
|
|
local Figure = script.Parent
|
|
local Head = waitForChild(Figure, "Head")
|
|
local Humanoid = waitForChild(Figure, "Humanoid")
|
|
Humanoid.Health=500
|
|
-- regeneration
|
|
while true do
|
|
	local s = wait(4)
|
|
	local health = Humanoid.Health
|
|
	if health > 0 and health < Humanoid.MaxHealth then
|
|
		health = health + 0.08 * s * Humanoid.MaxHealth
|
|
		if health * 1.05 < Humanoid.MaxHealth then
|
|
			Humanoid.Health = health
|
|
		else
|
|
			Humanoid.Health = Humanoid.MaxHealth
|
|
		end
|
|
	end
|
|
end
|
|
</ProtectedString>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="Script" referent="RBX347">
|
|
<Properties>
|
|
<bool name="Disabled">false</bool>
|
|
<Content name="LinkedSource"><null></null></Content>
|
|
<string name="Name">Respawn</string>
|
|
<ProtectedString name="Source">name="Humanoid"
|
|
|
|
robo=script.Parent:clone()
|
|
|
|
while true do
|
|
	wait(1)
|
|
	if script.Parent.Humanoid.Health<1 then
|
|
		robot=robo:clone()
|
|
		robot.Parent=script.Parent.Parent
|
|
		robot:makeJoints()
|
|
		script.Parent:remove()
|
|
	end
|
|
end
|
|
		
|
|
|
|
|
|
</ProtectedString>
|
|
</Properties>
|
|
</Item>
|
|
</Item>
|
|
<Item class="Model" referent="RBX348">
|
|
<Properties>
|
|
<CoordinateFrame name="ModelInPrimary">
|
|
<X>0</X>
|
|
<Y>0</Y>
|
|
<Z>0</Z>
|
|
<R00>1</R00>
|
|
<R01>0</R01>
|
|
<R02>0</R02>
|
|
<R10>0</R10>
|
|
<R11>1</R11>
|
|
<R12>0</R12>
|
|
<R20>0</R20>
|
|
<R21>0</R21>
|
|
<R22>1</R22>
|
|
</CoordinateFrame>
|
|
<string name="Name">Zombie</string>
|
|
<Ref name="PrimaryPart">null</Ref>
|
|
</Properties>
|
|
<Item class="Part" referent="RBX349">
|
|
<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">29</int>
|
|
<CoordinateFrame name="CFrame">
|
|
<X>21.4986343</X>
|
|
<Y>37.1075287</Y>
|
|
<Z>-36.8534317</Z>
|
|
<R00>1.49011612e-008</R00>
|
|
<R01>0</R01>
|
|
<R02>-0.999999881</R02>
|
|
<R10>1.49011612e-008</R10>
|
|
<R11>-0.99999994</R11>
|
|
<R12>0</R12>
|
|
<R20>-0.99999994</R20>
|
|
<R21>1.49011612e-008</R21>
|
|
<R22>1.49011612e-008</R22>
|
|
</CoordinateFrame>
|
|
<bool name="CanCollide">true</bool>
|
|
<float name="Elasticity">0.5</float>
|
|
<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>
|
|
<token name="Material">256</token>
|
|
<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>4.07127958e-025</X>
|
|
<Y>3.33696291e-022</Y>
|
|
<Z>6.94702468e-025</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>3.64808751e-020</X>
|
|
<Y>0.00686328812</Y>
|
|
<Z>3.64317968e-020</Z>
|
|
</Vector3>
|
|
<token name="formFactorRaw">0</token>
|
|
<token name="shape">1</token>
|
|
<Vector3 name="size">
|
|
<X>2</X>
|
|
<Y>1</Y>
|
|
<Z>1</Z>
|
|
</Vector3>
|
|
</Properties>
|
|
<Item class="SpecialMesh" referent="RBX350">
|
|
<Properties>
|
|
<token name="LODX">2</token>
|
|
<token name="LODY">2</token>
|
|
<Content name="MeshId"><null></null></Content>
|
|
<token name="MeshType">0</token>
|
|
<string name="Name">Mesh</string>
|
|
<Vector3 name="Offset">
|
|
<X>0</X>
|
|
<Y>0</Y>
|
|
<Z>0</Z>
|
|
</Vector3>
|
|
<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>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="Decal" referent="RBX351">
|
|
<Properties>
|
|
<token name="Face">5</token>
|
|
<string name="Name">face</string>
|
|
<float name="Shiny">20</float>
|
|
<float name="Specular">0</float>
|
|
<Content name="Texture"><null></null></Content>
|
|
<float name="Transparency">0</float>
|
|
</Properties>
|
|
</Item>
|
|
</Item>
|
|
<Item class="Part" referent="RBX352">
|
|
<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>21.4986343</X>
|
|
<Y>38.6075287</Y>
|
|
<Z>-36.8534317</Z>
|
|
<R00>1.49011612e-008</R00>
|
|
<R01>0</R01>
|
|
<R02>-0.999999881</R02>
|
|
<R10>1.49011612e-008</R10>
|
|
<R11>-0.99999994</R11>
|
|
<R12>0</R12>
|
|
<R20>-0.99999994</R20>
|
|
<R21>1.49011612e-008</R21>
|
|
<R22>1.49011612e-008</R22>
|
|
</CoordinateFrame>
|
|
<bool name="CanCollide">true</bool>
|
|
<float name="Elasticity">0.5</float>
|
|
<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>
|
|
<token name="Material">256</token>
|
|
<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>4.07127958e-025</X>
|
|
<Y>3.33696291e-022</Y>
|
|
<Z>6.94702468e-025</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>3.64798347e-020</X>
|
|
<Y>0.00686328812</Y>
|
|
<Z>3.64324075e-020</Z>
|
|
</Vector3>
|
|
<token name="formFactorRaw">0</token>
|
|
<token name="shape">1</token>
|
|
<Vector3 name="size">
|
|
<X>2</X>
|
|
<Y>2</Y>
|
|
<Z>1</Z>
|
|
</Vector3>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="Part" referent="RBX353">
|
|
<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>21.4986343</X>
|
|
<Y>40.6075287</Y>
|
|
<Z>-36.3534317</Z>
|
|
<R00>1.49011612e-008</R00>
|
|
<R01>0</R01>
|
|
<R02>-0.999999881</R02>
|
|
<R10>1.49011612e-008</R10>
|
|
<R11>-0.99999994</R11>
|
|
<R12>0</R12>
|
|
<R20>-0.99999994</R20>
|
|
<R21>1.49011612e-008</R21>
|
|
<R22>1.49011612e-008</R22>
|
|
</CoordinateFrame>
|
|
<bool name="CanCollide">false</bool>
|
|
<float name="Elasticity">0.5</float>
|
|
<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>
|
|
<token name="Material">256</token>
|
|
<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>4.07127958e-025</X>
|
|
<Y>3.33696291e-022</Y>
|
|
<Z>6.94702468e-025</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>3.66452934e-020</X>
|
|
<Y>0.00686328812</Y>
|
|
<Z>3.64332218e-020</Z>
|
|
</Vector3>
|
|
<token name="formFactorRaw">0</token>
|
|
<token name="shape">1</token>
|
|
<Vector3 name="size">
|
|
<X>1</X>
|
|
<Y>2</Y>
|
|
<Z>1</Z>
|
|
</Vector3>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="Part" referent="RBX354">
|
|
<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>21.4986343</X>
|
|
<Y>40.6075287</Y>
|
|
<Z>-37.3534317</Z>
|
|
<R00>1.49011612e-008</R00>
|
|
<R01>0</R01>
|
|
<R02>-0.999999881</R02>
|
|
<R10>1.49011612e-008</R10>
|
|
<R11>-0.99999994</R11>
|
|
<R12>0</R12>
|
|
<R20>-0.99999994</R20>
|
|
<R21>1.49011612e-008</R21>
|
|
<R22>1.49011612e-008</R22>
|
|
</CoordinateFrame>
|
|
<bool name="CanCollide">false</bool>
|
|
<float name="Elasticity">0.5</float>
|
|
<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>
|
|
<token name="Material">256</token>
|
|
<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>4.07127958e-025</X>
|
|
<Y>3.33696291e-022</Y>
|
|
<Z>6.94702468e-025</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>3.63115971e-020</X>
|
|
<Y>0.00686328812</Y>
|
|
<Z>3.64332218e-020</Z>
|
|
</Vector3>
|
|
<token name="formFactorRaw">0</token>
|
|
<token name="shape">1</token>
|
|
<Vector3 name="size">
|
|
<X>1</X>
|
|
<Y>2</Y>
|
|
<Z>1</Z>
|
|
</Vector3>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="Humanoid" referent="RBX355">
|
|
<Properties>
|
|
<float name="Health">100</float>
|
|
<float name="MaxHealth">100</float>
|
|
<string name="Name">Humanoid</string>
|
|
<token name="NameOcclusion">0</token>
|
|
<float name="WalkSpeed">16</float>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="Part" referent="RBX356">
|
|
<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">29</int>
|
|
<CoordinateFrame name="CFrame">
|
|
<X>21.9986343</X>
|
|
<Y>38.1075287</Y>
|
|
<Z>-35.3534317</Z>
|
|
<R00>0.999999881</R00>
|
|
<R01>0</R01>
|
|
<R02>1.49011612e-008</R02>
|
|
<R10>0</R10>
|
|
<R11>-0.99999994</R11>
|
|
<R12>1.49011612e-008</R12>
|
|
<R20>-1.49011612e-008</R20>
|
|
<R21>1.49011612e-008</R21>
|
|
<R22>-0.99999994</R22>
|
|
</CoordinateFrame>
|
|
<bool name="CanCollide">true</bool>
|
|
<float name="Elasticity">0.5</float>
|
|
<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>
|
|
<token name="Material">256</token>
|
|
<string name="Name">zarm</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>4.07127958e-025</X>
|
|
<Y>3.33696291e-022</Y>
|
|
<Z>6.94702468e-025</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>3.69807249e-020</X>
|
|
<Y>0.00686328812</Y>
|
|
<Z>3.62653558e-020</Z>
|
|
</Vector3>
|
|
<token name="formFactorRaw">0</token>
|
|
<token name="shape">1</token>
|
|
<Vector3 name="size">
|
|
<X>2</X>
|
|
<Y>1</Y>
|
|
<Z>1</Z>
|
|
</Vector3>
|
|
</Properties>
|
|
<Item class="Script" referent="RBX357">
|
|
<Properties>
|
|
<bool name="Disabled">false</bool>
|
|
<Content name="LinkedSource"><null></null></Content>
|
|
<string name="Name">Script</string>
|
|
<ProtectedString name="Source">wait(1)
|
|
owner=script.Parent.Parent.Name
|
|
|
|
function onTouched(part)
|
|
	if part.Parent ~= nil then
|
|
		local h = part.Parent:findFirstChild("Humanoid")
|
|
			if h~=nil then
|
|
				if cantouch~=0 then
|
|
					if h.Parent.Name~=owner then
|
|
						
|
|
						if h.Parent:findFirstChild("zarm")~=nil then return end
|
|
|
|
						cantouch=0
|
|
|
|
						local larm=h.Parent:findFirstChild("Left Arm")
|
|
						local rarm=h.Parent:findFirstChild("Right Arm")
|
|
						
|
|
						if larm~=nil then
|
|
							larm:remove()
|
|
						end
|
|
						if rarm~=nil then
|
|
							rarm:remove()
|
|
						end
|
|
						local zee=script.Parent.Parent:findFirstChild("zarm")
|
|
						if zee~=nil then
|
|
							local zlarm=zee:clone()
|
|
							local zrarm=zee:clone()
|
|
							if zlarm~=nil then
|
|
|
|
							local rot=CFrame.new(0, 0, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
|
|
								zlarm.CFrame=h.Parent.Torso.CFrame * CFrame.new(Vector3.new(-1.5,0.5,-0.5)) * rot
|
|
								zrarm.CFrame=h.Parent.Torso.CFrame * CFrame.new(Vector3.new(1.5,0.5,-0.5)) * rot
|
|
								zlarm.Parent=h.Parent
|
|
								zrarm.Parent=h.Parent
|
|
								zlarm:makeJoints()
|
|
								zrarm:makeJoints()
|
|
								zlarm.Anchored=false
|
|
								zrarm.Anchored=false
|
|
								wait(0.1)
|
|
								h.Parent.Head.Color=zee.Color
|
|
							else print("no zee"); return end
|
|
						end
|
|
						wait(1)
|
|
						cantouch=1
|
|
					end
|
|
				end
|
|
			end
|
|
	end
|
|
end
|
|
|
|
script.Parent.Touched:connect(onTouched)</ProtectedString>
|
|
</Properties>
|
|
</Item>
|
|
</Item>
|
|
<Item class="Part" referent="RBX358">
|
|
<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">29</int>
|
|
<CoordinateFrame name="CFrame">
|
|
<X>21.9986343</X>
|
|
<Y>38.1075287</Y>
|
|
<Z>-38.3534317</Z>
|
|
<R00>0.999999881</R00>
|
|
<R01>0</R01>
|
|
<R02>1.49011612e-008</R02>
|
|
<R10>0</R10>
|
|
<R11>-0.99999994</R11>
|
|
<R12>1.49011612e-008</R12>
|
|
<R20>-1.49011612e-008</R20>
|
|
<R21>1.49011612e-008</R21>
|
|
<R22>-0.99999994</R22>
|
|
</CoordinateFrame>
|
|
<bool name="CanCollide">true</bool>
|
|
<float name="Elasticity">0.5</float>
|
|
<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>
|
|
<token name="Material">256</token>
|
|
<string name="Name">zarm</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>4.07127958e-025</X>
|
|
<Y>3.33696291e-022</Y>
|
|
<Z>6.94702468e-025</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>3.5979636e-020</X>
|
|
<Y>0.00686328812</Y>
|
|
<Z>3.62653558e-020</Z>
|
|
</Vector3>
|
|
<token name="formFactorRaw">0</token>
|
|
<token name="shape">1</token>
|
|
<Vector3 name="size">
|
|
<X>2</X>
|
|
<Y>1</Y>
|
|
<Z>1</Z>
|
|
</Vector3>
|
|
</Properties>
|
|
<Item class="Script" referent="RBX359">
|
|
<Properties>
|
|
<bool name="Disabled">false</bool>
|
|
<Content name="LinkedSource"><null></null></Content>
|
|
<string name="Name">Script</string>
|
|
<ProtectedString name="Source">wait(1)
|
|
owner=script.Parent.Parent.Name
|
|
|
|
function onTouched(part)
|
|
	if part.Parent ~= nil then
|
|
		local h = part.Parent:findFirstChild("Humanoid")
|
|
			if h~=nil then
|
|
				if cantouch~=0 then
|
|
					if h.Parent.Name~=owner then
|
|
						
|
|
						if h.Parent:findFirstChild("zarm")~=nil then return end
|
|
|
|
						cantouch=0
|
|
|
|
						local larm=h.Parent:findFirstChild("Left Arm")
|
|
						local rarm=h.Parent:findFirstChild("Right Arm")
|
|
						
|
|
						if larm~=nil then
|
|
							larm:remove()
|
|
						end
|
|
						if rarm~=nil then
|
|
							rarm:remove()
|
|
						end
|
|
						local zee=script.Parent.Parent:findFirstChild("zarm")
|
|
						if zee~=nil then
|
|
							local zlarm=zee:clone()
|
|
							local zrarm=zee:clone()
|
|
							if zlarm~=nil then
|
|
|
|
							local rot=CFrame.new(0, 0, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
|
|
								zlarm.CFrame=h.Parent.Torso.CFrame * CFrame.new(Vector3.new(-1.5,0.5,-0.5)) * rot
|
|
								zrarm.CFrame=h.Parent.Torso.CFrame * CFrame.new(Vector3.new(1.5,0.5,-0.5)) * rot
|
|
								zlarm.Parent=h.Parent
|
|
								zrarm.Parent=h.Parent
|
|
								zlarm:makeJoints()
|
|
								zrarm:makeJoints()
|
|
								zlarm.Anchored=false
|
|
								zrarm.Anchored=false
|
|
								wait(0.1)
|
|
								h.Parent.Head.Color=zee.Color
|
|
							else print("no zee"); return end
|
|
						end
|
|
						wait(1)
|
|
						cantouch=1
|
|
					end
|
|
				end
|
|
			end
|
|
	end
|
|
end
|
|
|
|
script.Parent.Touched:connect(onTouched)</ProtectedString>
|
|
</Properties>
|
|
</Item>
|
|
</Item>
|
|
<Item class="ObjectValue" referent="RBX360">
|
|
<Properties>
|
|
<string name="Name">IsNZ</string>
|
|
<Ref name="Value">null</Ref>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="IntValue" referent="RBX361">
|
|
<Properties>
|
|
<string name="Name">Mode</string>
|
|
<int name="Value">0</int>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="Script" referent="RBX362">
|
|
<Properties>
|
|
<bool name="Disabled">false</bool>
|
|
<Content name="LinkedSource"><null></null></Content>
|
|
<string name="Name">Script</string>
|
|
<ProtectedString name="Source">local larm = script.Parent:FindFirstChild("Left Arm")
|
|
local rarm = script.Parent:FindFirstChild("Right Arm")
|
|
|
|
function findNearestTorso(pos)
|
|
	local list = game.Workspace:children()
|
|
	local torso = nil
|
|
	local dist = 1000
|
|
	local temp = nil
|
|
	local human = nil
|
|
	local temp2 = nil
|
|
	for x = 1, #list do
|
|
		temp2 = list[x]
|
|
		if (temp2.className == "Model") and (temp2 ~= script.Parent) then
|
|
			temp = temp2:findFirstChild("Right Arm")
|
|
			human = temp2:findFirstChild("Humanoid")
|
|
			if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then
|
|
				if (temp.Position - pos).magnitude < dist then
|
|
					torso = temp
|
|
					dist = (temp.Position - pos).magnitude
|
|
				end
|
|
			end
|
|
		end
|
|
	end
|
|
	return torso
|
|
end
|
|
|
|
|
|
|
|
|
|
while true do
|
|
	wait(math.random(1,5))
|
|
	local target = findNearestTorso(script.Parent.Torso.Position)
|
|
	if target ~= nil then
|
|
		script.Parent.Humanoid:MoveTo(target.Position, target)
|
|
	end
|
|
|
|
end
|
|
</ProtectedString>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="Script" referent="RBX363">
|
|
<Properties>
|
|
<bool name="Disabled">false</bool>
|
|
<Content name="LinkedSource"><null></null></Content>
|
|
<string name="Name">Health</string>
|
|
<ProtectedString name="Source">function waitForChild(parent, childName)
|
|
	while true do
|
|
		local child = parent:findFirstChild(childName)
|
|
		if child then
|
|
			return child
|
|
		end
|
|
		parent.ChildAdded:wait()
|
|
	end
|
|
end
|
|
|
|
-- declarations
|
|
|
|
local Figure = script.Parent
|
|
local Head = waitForChild(Figure, "Head")
|
|
local Humanoid = waitForChild(Figure, "Humanoid")
|
|
Humanoid.Health=500
|
|
-- regeneration
|
|
while true do
|
|
	local s = wait(4)
|
|
	local health = Humanoid.Health
|
|
	if health > 0 and health < Humanoid.MaxHealth then
|
|
		health = health + 0.08 * s * Humanoid.MaxHealth
|
|
		if health * 1.05 < Humanoid.MaxHealth then
|
|
			Humanoid.Health = health
|
|
		else
|
|
			Humanoid.Health = Humanoid.MaxHealth
|
|
		end
|
|
	end
|
|
end
|
|
</ProtectedString>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="Script" referent="RBX364">
|
|
<Properties>
|
|
<bool name="Disabled">false</bool>
|
|
<Content name="LinkedSource"><null></null></Content>
|
|
<string name="Name">Respawn</string>
|
|
<ProtectedString name="Source">name="Humanoid"
|
|
|
|
robo=script.Parent:clone()
|
|
|
|
while true do
|
|
	wait(1)
|
|
	if script.Parent.Humanoid.Health<1 then
|
|
		robot=robo:clone()
|
|
		robot.Parent=script.Parent.Parent
|
|
		robot:makeJoints()
|
|
		script.Parent:remove()
|
|
	end
|
|
end
|
|
		
|
|
|
|
|
|
</ProtectedString>
|
|
</Properties>
|
|
</Item>
|
|
</Item>
|
|
<Item class="Model" referent="RBX365">
|
|
<Properties>
|
|
<CoordinateFrame name="ModelInPrimary">
|
|
<X>0</X>
|
|
<Y>0</Y>
|
|
<Z>0</Z>
|
|
<R00>1</R00>
|
|
<R01>0</R01>
|
|
<R02>0</R02>
|
|
<R10>0</R10>
|
|
<R11>1</R11>
|
|
<R12>0</R12>
|
|
<R20>0</R20>
|
|
<R21>0</R21>
|
|
<R22>1</R22>
|
|
</CoordinateFrame>
|
|
<string name="Name">Zombie</string>
|
|
<Ref name="PrimaryPart">null</Ref>
|
|
</Properties>
|
|
<Item class="Part" referent="RBX366">
|
|
<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">29</int>
|
|
<CoordinateFrame name="CFrame">
|
|
<X>8.83551025</X>
|
|
<Y>19.5651245</Y>
|
|
<Z>-30.7298489</Z>
|
|
<R00>-0.454648674</R00>
|
|
<R01>-0.540302277</R01>
|
|
<R02>-0.708073378</R02>
|
|
<R10>0.291926563</R10>
|
|
<R11>-0.841470957</R11>
|
|
<R12>0.454648674</R12>
|
|
<R20>-0.841470957</R20>
|
|
<R21>0</R21>
|
|
<R22>0.540302277</R22>
|
|
</CoordinateFrame>
|
|
<bool name="CanCollide">true</bool>
|
|
<float name="Elasticity">0.5</float>
|
|
<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>
|
|
<token name="Material">256</token>
|
|
<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>4.07127958e-025</X>
|
|
<Y>3.33696291e-022</Y>
|
|
<Z>6.94702468e-025</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>3.64807103e-020</X>
|
|
<Y>0.00686328812</Y>
|
|
<Z>3.67023398e-020</Z>
|
|
</Vector3>
|
|
<token name="formFactorRaw">0</token>
|
|
<token name="shape">1</token>
|
|
<Vector3 name="size">
|
|
<X>2</X>
|
|
<Y>1</Y>
|
|
<Z>1</Z>
|
|
</Vector3>
|
|
</Properties>
|
|
<Item class="SpecialMesh" referent="RBX367">
|
|
<Properties>
|
|
<token name="LODX">2</token>
|
|
<token name="LODY">2</token>
|
|
<Content name="MeshId"><null></null></Content>
|
|
<token name="MeshType">0</token>
|
|
<string name="Name">Mesh</string>
|
|
<Vector3 name="Offset">
|
|
<X>0</X>
|
|
<Y>0</Y>
|
|
<Z>0</Z>
|
|
</Vector3>
|
|
<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>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="Decal" referent="RBX368">
|
|
<Properties>
|
|
<token name="Face">5</token>
|
|
<string name="Name">face</string>
|
|
<float name="Shiny">20</float>
|
|
<float name="Specular">0</float>
|
|
<Content name="Texture"><null></null></Content>
|
|
<float name="Transparency">0</float>
|
|
</Properties>
|
|
</Item>
|
|
</Item>
|
|
<Item class="Part" referent="RBX369">
|
|
<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>9.64596367</X>
|
|
<Y>20.8273315</Y>
|
|
<Z>-30.7298489</Z>
|
|
<R00>-0.454648674</R00>
|
|
<R01>-0.540302277</R01>
|
|
<R02>-0.708073378</R02>
|
|
<R10>0.291926563</R10>
|
|
<R11>-0.841470957</R11>
|
|
<R12>0.454648674</R12>
|
|
<R20>-0.841470957</R20>
|
|
<R21>0</R21>
|
|
<R22>0.540302277</R22>
|
|
</CoordinateFrame>
|
|
<bool name="CanCollide">true</bool>
|
|
<float name="Elasticity">0.5</float>
|
|
<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>
|
|
<token name="Material">256</token>
|
|
<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>4.07127958e-025</X>
|
|
<Y>3.33696291e-022</Y>
|
|
<Z>6.94702468e-025</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>3.64798347e-020</X>
|
|
<Y>0.00686328812</Y>
|
|
<Z>3.64324075e-020</Z>
|
|
</Vector3>
|
|
<token name="formFactorRaw">0</token>
|
|
<token name="shape">1</token>
|
|
<Vector3 name="size">
|
|
<X>2</X>
|
|
<Y>2</Y>
|
|
<Z>1</Z>
|
|
</Vector3>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="Part" referent="RBX370">
|
|
<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>10.9538927</X>
|
|
<Y>22.3643093</Y>
|
|
<Z>-30.3091125</Z>
|
|
<R00>-0.454648674</R00>
|
|
<R01>-0.540302277</R01>
|
|
<R02>-0.708073378</R02>
|
|
<R10>0.291926563</R10>
|
|
<R11>-0.841470957</R11>
|
|
<R12>0.454648674</R12>
|
|
<R20>-0.841470957</R20>
|
|
<R21>0</R21>
|
|
<R22>0.540302277</R22>
|
|
</CoordinateFrame>
|
|
<bool name="CanCollide">false</bool>
|
|
<float name="Elasticity">0.5</float>
|
|
<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>
|
|
<token name="Material">256</token>
|
|
<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>4.07127958e-025</X>
|
|
<Y>3.33696291e-022</Y>
|
|
<Z>6.94702468e-025</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>3.66191662e-020</X>
|
|
<Y>0.00686328812</Y>
|
|
<Z>3.59965835e-020</Z>
|
|
</Vector3>
|
|
<token name="formFactorRaw">0</token>
|
|
<token name="shape">1</token>
|
|
<Vector3 name="size">
|
|
<X>1</X>
|
|
<Y>2</Y>
|
|
<Z>1</Z>
|
|
</Vector3>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="Part" referent="RBX371">
|
|
<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>10.4992437</X>
|
|
<Y>22.6562366</Y>
|
|
<Z>-31.1505852</Z>
|
|
<R00>-0.454648674</R00>
|
|
<R01>-0.540302277</R01>
|
|
<R02>-0.708073378</R02>
|
|
<R10>0.291926563</R10>
|
|
<R11>-0.841470957</R11>
|
|
<R12>0.454648674</R12>
|
|
<R20>-0.841470957</R20>
|
|
<R21>0</R21>
|
|
<R22>0.540302277</R22>
|
|
</CoordinateFrame>
|
|
<bool name="CanCollide">false</bool>
|
|
<float name="Elasticity">0.5</float>
|
|
<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>
|
|
<token name="Material">256</token>
|
|
<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>4.07127958e-025</X>
|
|
<Y>3.33696291e-022</Y>
|
|
<Z>6.94702468e-025</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>3.63381671e-020</X>
|
|
<Y>0.00686328812</Y>
|
|
<Z>3.61484164e-020</Z>
|
|
</Vector3>
|
|
<token name="formFactorRaw">0</token>
|
|
<token name="shape">1</token>
|
|
<Vector3 name="size">
|
|
<X>1</X>
|
|
<Y>2</Y>
|
|
<Z>1</Z>
|
|
</Vector3>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="Humanoid" referent="RBX372">
|
|
<Properties>
|
|
<float name="Health">100</float>
|
|
<float name="MaxHealth">100</float>
|
|
<string name="Name">Humanoid</string>
|
|
<token name="NameOcclusion">0</token>
|
|
<float name="WalkSpeed">16</float>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="Part" referent="RBX373">
|
|
<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">29</int>
|
|
<CoordinateFrame name="CFrame">
|
|
<X>10.4118223</X>
|
|
<Y>19.7413826</Y>
|
|
<Z>-29.737793</Z>
|
|
<R00>0.708073378</R00>
|
|
<R01>-0.540302277</R01>
|
|
<R02>-0.454648674</R02>
|
|
<R10>-0.454648674</R10>
|
|
<R11>-0.841470957</R11>
|
|
<R12>0.291926563</R12>
|
|
<R20>-0.540302277</R20>
|
|
<R21>0</R21>
|
|
<R22>-0.841470957</R22>
|
|
</CoordinateFrame>
|
|
<bool name="CanCollide">true</bool>
|
|
<float name="Elasticity">0.5</float>
|
|
<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>
|
|
<token name="Material">256</token>
|
|
<string name="Name">zarm</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>4.07127958e-025</X>
|
|
<Y>3.33696291e-022</Y>
|
|
<Z>6.94702468e-025</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>3.68116343e-020</X>
|
|
<Y>0.00686328812</Y>
|
|
<Z>3.61764016e-020</Z>
|
|
</Vector3>
|
|
<token name="formFactorRaw">0</token>
|
|
<token name="shape">1</token>
|
|
<Vector3 name="size">
|
|
<X>2</X>
|
|
<Y>1</Y>
|
|
<Z>1</Z>
|
|
</Vector3>
|
|
</Properties>
|
|
<Item class="Script" referent="RBX374">
|
|
<Properties>
|
|
<bool name="Disabled">false</bool>
|
|
<Content name="LinkedSource"><null></null></Content>
|
|
<string name="Name">Script</string>
|
|
<ProtectedString name="Source">wait(1)
|
|
owner=script.Parent.Parent.Name
|
|
|
|
function onTouched(part)
|
|
	if part.Parent ~= nil then
|
|
		local h = part.Parent:findFirstChild("Humanoid")
|
|
			if h~=nil then
|
|
				if cantouch~=0 then
|
|
					if h.Parent.Name~=owner then
|
|
						
|
|
						if h.Parent:findFirstChild("zarm")~=nil then return end
|
|
|
|
						cantouch=0
|
|
|
|
						local larm=h.Parent:findFirstChild("Left Arm")
|
|
						local rarm=h.Parent:findFirstChild("Right Arm")
|
|
						
|
|
						if larm~=nil then
|
|
							larm:remove()
|
|
						end
|
|
						if rarm~=nil then
|
|
							rarm:remove()
|
|
						end
|
|
						local zee=script.Parent.Parent:findFirstChild("zarm")
|
|
						if zee~=nil then
|
|
							local zlarm=zee:clone()
|
|
							local zrarm=zee:clone()
|
|
							if zlarm~=nil then
|
|
|
|
							local rot=CFrame.new(0, 0, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
|
|
								zlarm.CFrame=h.Parent.Torso.CFrame * CFrame.new(Vector3.new(-1.5,0.5,-0.5)) * rot
|
|
								zrarm.CFrame=h.Parent.Torso.CFrame * CFrame.new(Vector3.new(1.5,0.5,-0.5)) * rot
|
|
								zlarm.Parent=h.Parent
|
|
								zrarm.Parent=h.Parent
|
|
								zlarm:makeJoints()
|
|
								zrarm:makeJoints()
|
|
								zlarm.Anchored=false
|
|
								zrarm.Anchored=false
|
|
								wait(0.1)
|
|
								h.Parent.Head.Color=zee.Color
|
|
							else print("no zee"); return end
|
|
						end
|
|
						wait(1)
|
|
						cantouch=1
|
|
					end
|
|
				end
|
|
			end
|
|
	end
|
|
end
|
|
|
|
script.Parent.Touched:connect(onTouched)</ProtectedString>
|
|
</Properties>
|
|
</Item>
|
|
</Item>
|
|
<Item class="Part" referent="RBX375">
|
|
<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">29</int>
|
|
<CoordinateFrame name="CFrame">
|
|
<X>9.04787636</X>
|
|
<Y>20.6171608</Y>
|
|
<Z>-32.262207</Z>
|
|
<R00>0.708073378</R00>
|
|
<R01>-0.540302277</R01>
|
|
<R02>-0.454648674</R02>
|
|
<R10>-0.454648674</R10>
|
|
<R11>-0.841470957</R11>
|
|
<R12>0.291926563</R12>
|
|
<R20>-0.540302277</R20>
|
|
<R21>0</R21>
|
|
<R22>-0.841470957</R22>
|
|
</CoordinateFrame>
|
|
<bool name="CanCollide">true</bool>
|
|
<float name="Elasticity">0.5</float>
|
|
<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>
|
|
<token name="Material">256</token>
|
|
<string name="Name">zarm</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>4.07127958e-025</X>
|
|
<Y>3.33696291e-022</Y>
|
|
<Z>6.94702468e-025</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>3.59686371e-020</X>
|
|
<Y>0.00686328812</Y>
|
|
<Z>3.66319002e-020</Z>
|
|
</Vector3>
|
|
<token name="formFactorRaw">0</token>
|
|
<token name="shape">1</token>
|
|
<Vector3 name="size">
|
|
<X>2</X>
|
|
<Y>1</Y>
|
|
<Z>1</Z>
|
|
</Vector3>
|
|
</Properties>
|
|
<Item class="Script" referent="RBX376">
|
|
<Properties>
|
|
<bool name="Disabled">false</bool>
|
|
<Content name="LinkedSource"><null></null></Content>
|
|
<string name="Name">Script</string>
|
|
<ProtectedString name="Source">wait(1)
|
|
owner=script.Parent.Parent.Name
|
|
|
|
function onTouched(part)
|
|
	if part.Parent ~= nil then
|
|
		local h = part.Parent:findFirstChild("Humanoid")
|
|
			if h~=nil then
|
|
				if cantouch~=0 then
|
|
					if h.Parent.Name~=owner then
|
|
						
|
|
						if h.Parent:findFirstChild("zarm")~=nil then return end
|
|
|
|
						cantouch=0
|
|
|
|
						local larm=h.Parent:findFirstChild("Left Arm")
|
|
						local rarm=h.Parent:findFirstChild("Right Arm")
|
|
						
|
|
						if larm~=nil then
|
|
							larm:remove()
|
|
						end
|
|
						if rarm~=nil then
|
|
							rarm:remove()
|
|
						end
|
|
						local zee=script.Parent.Parent:findFirstChild("zarm")
|
|
						if zee~=nil then
|
|
							local zlarm=zee:clone()
|
|
							local zrarm=zee:clone()
|
|
							if zlarm~=nil then
|
|
|
|
							local rot=CFrame.new(0, 0, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
|
|
								zlarm.CFrame=h.Parent.Torso.CFrame * CFrame.new(Vector3.new(-1.5,0.5,-0.5)) * rot
|
|
								zrarm.CFrame=h.Parent.Torso.CFrame * CFrame.new(Vector3.new(1.5,0.5,-0.5)) * rot
|
|
								zlarm.Parent=h.Parent
|
|
								zrarm.Parent=h.Parent
|
|
								zlarm:makeJoints()
|
|
								zrarm:makeJoints()
|
|
								zlarm.Anchored=false
|
|
								zrarm.Anchored=false
|
|
								wait(0.1)
|
|
								h.Parent.Head.Color=zee.Color
|
|
							else print("no zee"); return end
|
|
						end
|
|
						wait(1)
|
|
						cantouch=1
|
|
					end
|
|
				end
|
|
			end
|
|
	end
|
|
end
|
|
|
|
script.Parent.Touched:connect(onTouched)</ProtectedString>
|
|
</Properties>
|
|
</Item>
|
|
</Item>
|
|
<Item class="ObjectValue" referent="RBX377">
|
|
<Properties>
|
|
<string name="Name">IsNZ</string>
|
|
<Ref name="Value">null</Ref>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="IntValue" referent="RBX378">
|
|
<Properties>
|
|
<string name="Name">Mode</string>
|
|
<int name="Value">0</int>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="Script" referent="RBX379">
|
|
<Properties>
|
|
<bool name="Disabled">false</bool>
|
|
<Content name="LinkedSource"><null></null></Content>
|
|
<string name="Name">Script</string>
|
|
<ProtectedString name="Source">local larm = script.Parent:FindFirstChild("Left Arm")
|
|
local rarm = script.Parent:FindFirstChild("Right Arm")
|
|
|
|
function findNearestTorso(pos)
|
|
	local list = game.Workspace:children()
|
|
	local torso = nil
|
|
	local dist = 1000
|
|
	local temp = nil
|
|
	local human = nil
|
|
	local temp2 = nil
|
|
	for x = 1, #list do
|
|
		temp2 = list[x]
|
|
		if (temp2.className == "Model") and (temp2 ~= script.Parent) then
|
|
			temp = temp2:findFirstChild("Right Arm")
|
|
			human = temp2:findFirstChild("Humanoid")
|
|
			if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then
|
|
				if (temp.Position - pos).magnitude < dist then
|
|
					torso = temp
|
|
					dist = (temp.Position - pos).magnitude
|
|
				end
|
|
			end
|
|
		end
|
|
	end
|
|
	return torso
|
|
end
|
|
|
|
|
|
|
|
|
|
while true do
|
|
	wait(math.random(1,5))
|
|
	local target = findNearestTorso(script.Parent.Torso.Position)
|
|
	if target ~= nil then
|
|
		script.Parent.Humanoid:MoveTo(target.Position, target)
|
|
	end
|
|
|
|
end
|
|
</ProtectedString>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="Script" referent="RBX380">
|
|
<Properties>
|
|
<bool name="Disabled">false</bool>
|
|
<Content name="LinkedSource"><null></null></Content>
|
|
<string name="Name">Health</string>
|
|
<ProtectedString name="Source">function waitForChild(parent, childName)
|
|
	while true do
|
|
		local child = parent:findFirstChild(childName)
|
|
		if child then
|
|
			return child
|
|
		end
|
|
		parent.ChildAdded:wait()
|
|
	end
|
|
end
|
|
|
|
-- declarations
|
|
|
|
local Figure = script.Parent
|
|
local Head = waitForChild(Figure, "Head")
|
|
local Humanoid = waitForChild(Figure, "Humanoid")
|
|
Humanoid.Health=500
|
|
-- regeneration
|
|
while true do
|
|
	local s = wait(4)
|
|
	local health = Humanoid.Health
|
|
	if health > 0 and health < Humanoid.MaxHealth then
|
|
		health = health + 0.08 * s * Humanoid.MaxHealth
|
|
		if health * 1.05 < Humanoid.MaxHealth then
|
|
			Humanoid.Health = health
|
|
		else
|
|
			Humanoid.Health = Humanoid.MaxHealth
|
|
		end
|
|
	end
|
|
end
|
|
</ProtectedString>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="Script" referent="RBX381">
|
|
<Properties>
|
|
<bool name="Disabled">false</bool>
|
|
<Content name="LinkedSource"><null></null></Content>
|
|
<string name="Name">Respawn</string>
|
|
<ProtectedString name="Source">name="Humanoid"
|
|
|
|
robo=script.Parent:clone()
|
|
|
|
while true do
|
|
	wait(1)
|
|
	if script.Parent.Humanoid.Health<1 then
|
|
		robot=robo:clone()
|
|
		robot.Parent=script.Parent.Parent
|
|
		robot:makeJoints()
|
|
		script.Parent:remove()
|
|
	end
|
|
end
|
|
		
|
|
|
|
|
|
</ProtectedString>
|
|
</Properties>
|
|
</Item>
|
|
</Item>
|
|
<Item class="Model" referent="RBX382">
|
|
<Properties>
|
|
<CoordinateFrame name="ModelInPrimary">
|
|
<X>0</X>
|
|
<Y>0</Y>
|
|
<Z>0</Z>
|
|
<R00>1</R00>
|
|
<R01>0</R01>
|
|
<R02>0</R02>
|
|
<R10>0</R10>
|
|
<R11>1</R11>
|
|
<R12>0</R12>
|
|
<R20>0</R20>
|
|
<R21>0</R21>
|
|
<R22>1</R22>
|
|
</CoordinateFrame>
|
|
<string name="Name">Zombie</string>
|
|
<Ref name="PrimaryPart">null</Ref>
|
|
</Properties>
|
|
<Item class="Part" referent="RBX383">
|
|
<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">29</int>
|
|
<CoordinateFrame name="CFrame">
|
|
<X>13.4977264</X>
|
|
<Y>38.9124908</Y>
|
|
<Z>-16.4223785</Z>
|
|
<R00>1.49011612e-008</R00>
|
|
<R01>0</R01>
|
|
<R02>-0.999999881</R02>
|
|
<R10>1.49011612e-008</R10>
|
|
<R11>-0.99999994</R11>
|
|
<R12>0</R12>
|
|
<R20>-0.99999994</R20>
|
|
<R21>1.49011612e-008</R21>
|
|
<R22>1.49011612e-008</R22>
|
|
</CoordinateFrame>
|
|
<bool name="CanCollide">true</bool>
|
|
<float name="Elasticity">0.5</float>
|
|
<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>
|
|
<token name="Material">256</token>
|
|
<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>4.07127958e-025</X>
|
|
<Y>3.33696291e-022</Y>
|
|
<Z>6.94702468e-025</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>3.64808751e-020</X>
|
|
<Y>0.00686328812</Y>
|
|
<Z>3.64317968e-020</Z>
|
|
</Vector3>
|
|
<token name="formFactorRaw">0</token>
|
|
<token name="shape">1</token>
|
|
<Vector3 name="size">
|
|
<X>2</X>
|
|
<Y>1</Y>
|
|
<Z>1</Z>
|
|
</Vector3>
|
|
</Properties>
|
|
<Item class="SpecialMesh" referent="RBX384">
|
|
<Properties>
|
|
<token name="LODX">2</token>
|
|
<token name="LODY">2</token>
|
|
<Content name="MeshId"><null></null></Content>
|
|
<token name="MeshType">0</token>
|
|
<string name="Name">Mesh</string>
|
|
<Vector3 name="Offset">
|
|
<X>0</X>
|
|
<Y>0</Y>
|
|
<Z>0</Z>
|
|
</Vector3>
|
|
<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>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="Decal" referent="RBX385">
|
|
<Properties>
|
|
<token name="Face">5</token>
|
|
<string name="Name">face</string>
|
|
<float name="Shiny">20</float>
|
|
<float name="Specular">0</float>
|
|
<Content name="Texture"><null></null></Content>
|
|
<float name="Transparency">0</float>
|
|
</Properties>
|
|
</Item>
|
|
</Item>
|
|
<Item class="Part" referent="RBX386">
|
|
<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>13.4977264</X>
|
|
<Y>40.4124908</Y>
|
|
<Z>-16.4223785</Z>
|
|
<R00>1.49011612e-008</R00>
|
|
<R01>0</R01>
|
|
<R02>-0.999999881</R02>
|
|
<R10>1.49011612e-008</R10>
|
|
<R11>-0.99999994</R11>
|
|
<R12>0</R12>
|
|
<R20>-0.99999994</R20>
|
|
<R21>1.49011612e-008</R21>
|
|
<R22>1.49011612e-008</R22>
|
|
</CoordinateFrame>
|
|
<bool name="CanCollide">true</bool>
|
|
<float name="Elasticity">0.5</float>
|
|
<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>
|
|
<token name="Material">256</token>
|
|
<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>4.07127958e-025</X>
|
|
<Y>3.33696291e-022</Y>
|
|
<Z>6.94702468e-025</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>3.64798347e-020</X>
|
|
<Y>0.00686328812</Y>
|
|
<Z>3.64324075e-020</Z>
|
|
</Vector3>
|
|
<token name="formFactorRaw">0</token>
|
|
<token name="shape">1</token>
|
|
<Vector3 name="size">
|
|
<X>2</X>
|
|
<Y>2</Y>
|
|
<Z>1</Z>
|
|
</Vector3>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="Part" referent="RBX387">
|
|
<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>13.4977264</X>
|
|
<Y>42.4124908</Y>
|
|
<Z>-15.9223785</Z>
|
|
<R00>1.49011612e-008</R00>
|
|
<R01>0</R01>
|
|
<R02>-0.999999881</R02>
|
|
<R10>1.49011612e-008</R10>
|
|
<R11>-0.99999994</R11>
|
|
<R12>0</R12>
|
|
<R20>-0.99999994</R20>
|
|
<R21>1.49011612e-008</R21>
|
|
<R22>1.49011612e-008</R22>
|
|
</CoordinateFrame>
|
|
<bool name="CanCollide">false</bool>
|
|
<float name="Elasticity">0.5</float>
|
|
<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>
|
|
<token name="Material">256</token>
|
|
<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>4.07127958e-025</X>
|
|
<Y>3.33696291e-022</Y>
|
|
<Z>6.94702468e-025</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>3.66452934e-020</X>
|
|
<Y>0.00686328812</Y>
|
|
<Z>3.64332218e-020</Z>
|
|
</Vector3>
|
|
<token name="formFactorRaw">0</token>
|
|
<token name="shape">1</token>
|
|
<Vector3 name="size">
|
|
<X>1</X>
|
|
<Y>2</Y>
|
|
<Z>1</Z>
|
|
</Vector3>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="Part" referent="RBX388">
|
|
<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>13.4977264</X>
|
|
<Y>42.4124908</Y>
|
|
<Z>-16.9223785</Z>
|
|
<R00>1.49011612e-008</R00>
|
|
<R01>0</R01>
|
|
<R02>-0.999999881</R02>
|
|
<R10>1.49011612e-008</R10>
|
|
<R11>-0.99999994</R11>
|
|
<R12>0</R12>
|
|
<R20>-0.99999994</R20>
|
|
<R21>1.49011612e-008</R21>
|
|
<R22>1.49011612e-008</R22>
|
|
</CoordinateFrame>
|
|
<bool name="CanCollide">false</bool>
|
|
<float name="Elasticity">0.5</float>
|
|
<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>
|
|
<token name="Material">256</token>
|
|
<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>4.07127958e-025</X>
|
|
<Y>3.33696291e-022</Y>
|
|
<Z>6.94702468e-025</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>3.63115971e-020</X>
|
|
<Y>0.00686328812</Y>
|
|
<Z>3.64332218e-020</Z>
|
|
</Vector3>
|
|
<token name="formFactorRaw">0</token>
|
|
<token name="shape">1</token>
|
|
<Vector3 name="size">
|
|
<X>1</X>
|
|
<Y>2</Y>
|
|
<Z>1</Z>
|
|
</Vector3>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="Humanoid" referent="RBX389">
|
|
<Properties>
|
|
<float name="Health">100</float>
|
|
<float name="MaxHealth">100</float>
|
|
<string name="Name">Humanoid</string>
|
|
<token name="NameOcclusion">0</token>
|
|
<float name="WalkSpeed">16</float>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="Part" referent="RBX390">
|
|
<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">29</int>
|
|
<CoordinateFrame name="CFrame">
|
|
<X>13.9977264</X>
|
|
<Y>39.9124908</Y>
|
|
<Z>-14.9223785</Z>
|
|
<R00>0.999999881</R00>
|
|
<R01>0</R01>
|
|
<R02>1.49011612e-008</R02>
|
|
<R10>0</R10>
|
|
<R11>-0.99999994</R11>
|
|
<R12>1.49011612e-008</R12>
|
|
<R20>-1.49011612e-008</R20>
|
|
<R21>1.49011612e-008</R21>
|
|
<R22>-0.99999994</R22>
|
|
</CoordinateFrame>
|
|
<bool name="CanCollide">true</bool>
|
|
<float name="Elasticity">0.5</float>
|
|
<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>
|
|
<token name="Material">256</token>
|
|
<string name="Name">zarm</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>4.07127958e-025</X>
|
|
<Y>3.33696291e-022</Y>
|
|
<Z>6.94702468e-025</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>3.69807249e-020</X>
|
|
<Y>0.00686328812</Y>
|
|
<Z>3.62653558e-020</Z>
|
|
</Vector3>
|
|
<token name="formFactorRaw">0</token>
|
|
<token name="shape">1</token>
|
|
<Vector3 name="size">
|
|
<X>2</X>
|
|
<Y>1</Y>
|
|
<Z>1</Z>
|
|
</Vector3>
|
|
</Properties>
|
|
<Item class="Script" referent="RBX391">
|
|
<Properties>
|
|
<bool name="Disabled">false</bool>
|
|
<Content name="LinkedSource"><null></null></Content>
|
|
<string name="Name">Script</string>
|
|
<ProtectedString name="Source">wait(1)
|
|
owner=script.Parent.Parent.Name
|
|
|
|
function onTouched(part)
|
|
	if part.Parent ~= nil then
|
|
		local h = part.Parent:findFirstChild("Humanoid")
|
|
			if h~=nil then
|
|
				if cantouch~=0 then
|
|
					if h.Parent.Name~=owner then
|
|
						
|
|
						if h.Parent:findFirstChild("zarm")~=nil then return end
|
|
|
|
						cantouch=0
|
|
|
|
						local larm=h.Parent:findFirstChild("Left Arm")
|
|
						local rarm=h.Parent:findFirstChild("Right Arm")
|
|
						
|
|
						if larm~=nil then
|
|
							larm:remove()
|
|
						end
|
|
						if rarm~=nil then
|
|
							rarm:remove()
|
|
						end
|
|
						local zee=script.Parent.Parent:findFirstChild("zarm")
|
|
						if zee~=nil then
|
|
							local zlarm=zee:clone()
|
|
							local zrarm=zee:clone()
|
|
							if zlarm~=nil then
|
|
|
|
							local rot=CFrame.new(0, 0, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
|
|
								zlarm.CFrame=h.Parent.Torso.CFrame * CFrame.new(Vector3.new(-1.5,0.5,-0.5)) * rot
|
|
								zrarm.CFrame=h.Parent.Torso.CFrame * CFrame.new(Vector3.new(1.5,0.5,-0.5)) * rot
|
|
								zlarm.Parent=h.Parent
|
|
								zrarm.Parent=h.Parent
|
|
								zlarm:makeJoints()
|
|
								zrarm:makeJoints()
|
|
								zlarm.Anchored=false
|
|
								zrarm.Anchored=false
|
|
								wait(0.1)
|
|
								h.Parent.Head.Color=zee.Color
|
|
							else print("no zee"); return end
|
|
						end
|
|
						wait(1)
|
|
						cantouch=1
|
|
					end
|
|
				end
|
|
			end
|
|
	end
|
|
end
|
|
|
|
script.Parent.Touched:connect(onTouched)</ProtectedString>
|
|
</Properties>
|
|
</Item>
|
|
</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">29</int>
|
|
<CoordinateFrame name="CFrame">
|
|
<X>13.9977264</X>
|
|
<Y>39.9124908</Y>
|
|
<Z>-17.9223785</Z>
|
|
<R00>0.999999881</R00>
|
|
<R01>0</R01>
|
|
<R02>1.49011612e-008</R02>
|
|
<R10>0</R10>
|
|
<R11>-0.99999994</R11>
|
|
<R12>1.49011612e-008</R12>
|
|
<R20>-1.49011612e-008</R20>
|
|
<R21>1.49011612e-008</R21>
|
|
<R22>-0.99999994</R22>
|
|
</CoordinateFrame>
|
|
<bool name="CanCollide">true</bool>
|
|
<float name="Elasticity">0.5</float>
|
|
<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>
|
|
<token name="Material">256</token>
|
|
<string name="Name">zarm</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>4.07127958e-025</X>
|
|
<Y>3.33696291e-022</Y>
|
|
<Z>6.94702468e-025</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>3.5979636e-020</X>
|
|
<Y>0.00686328812</Y>
|
|
<Z>3.62653558e-020</Z>
|
|
</Vector3>
|
|
<token name="formFactorRaw">0</token>
|
|
<token name="shape">1</token>
|
|
<Vector3 name="size">
|
|
<X>2</X>
|
|
<Y>1</Y>
|
|
<Z>1</Z>
|
|
</Vector3>
|
|
</Properties>
|
|
<Item class="Script" referent="RBX393">
|
|
<Properties>
|
|
<bool name="Disabled">false</bool>
|
|
<Content name="LinkedSource"><null></null></Content>
|
|
<string name="Name">Script</string>
|
|
<ProtectedString name="Source">wait(1)
|
|
owner=script.Parent.Parent.Name
|
|
|
|
function onTouched(part)
|
|
	if part.Parent ~= nil then
|
|
		local h = part.Parent:findFirstChild("Humanoid")
|
|
			if h~=nil then
|
|
				if cantouch~=0 then
|
|
					if h.Parent.Name~=owner then
|
|
						
|
|
						if h.Parent:findFirstChild("zarm")~=nil then return end
|
|
|
|
						cantouch=0
|
|
|
|
						local larm=h.Parent:findFirstChild("Left Arm")
|
|
						local rarm=h.Parent:findFirstChild("Right Arm")
|
|
						
|
|
						if larm~=nil then
|
|
							larm:remove()
|
|
						end
|
|
						if rarm~=nil then
|
|
							rarm:remove()
|
|
						end
|
|
						local zee=script.Parent.Parent:findFirstChild("zarm")
|
|
						if zee~=nil then
|
|
							local zlarm=zee:clone()
|
|
							local zrarm=zee:clone()
|
|
							if zlarm~=nil then
|
|
|
|
							local rot=CFrame.new(0, 0, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
|
|
								zlarm.CFrame=h.Parent.Torso.CFrame * CFrame.new(Vector3.new(-1.5,0.5,-0.5)) * rot
|
|
								zrarm.CFrame=h.Parent.Torso.CFrame * CFrame.new(Vector3.new(1.5,0.5,-0.5)) * rot
|
|
								zlarm.Parent=h.Parent
|
|
								zrarm.Parent=h.Parent
|
|
								zlarm:makeJoints()
|
|
								zrarm:makeJoints()
|
|
								zlarm.Anchored=false
|
|
								zrarm.Anchored=false
|
|
								wait(0.1)
|
|
								h.Parent.Head.Color=zee.Color
|
|
							else print("no zee"); return end
|
|
						end
|
|
						wait(1)
|
|
						cantouch=1
|
|
					end
|
|
				end
|
|
			end
|
|
	end
|
|
end
|
|
|
|
script.Parent.Touched:connect(onTouched)</ProtectedString>
|
|
</Properties>
|
|
</Item>
|
|
</Item>
|
|
<Item class="ObjectValue" referent="RBX394">
|
|
<Properties>
|
|
<string name="Name">IsNZ</string>
|
|
<Ref name="Value">null</Ref>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="IntValue" referent="RBX395">
|
|
<Properties>
|
|
<string name="Name">Mode</string>
|
|
<int name="Value">0</int>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="Script" referent="RBX396">
|
|
<Properties>
|
|
<bool name="Disabled">false</bool>
|
|
<Content name="LinkedSource"><null></null></Content>
|
|
<string name="Name">Script</string>
|
|
<ProtectedString name="Source">local larm = script.Parent:FindFirstChild("Left Arm")
|
|
local rarm = script.Parent:FindFirstChild("Right Arm")
|
|
|
|
function findNearestTorso(pos)
|
|
	local list = game.Workspace:children()
|
|
	local torso = nil
|
|
	local dist = 1000
|
|
	local temp = nil
|
|
	local human = nil
|
|
	local temp2 = nil
|
|
	for x = 1, #list do
|
|
		temp2 = list[x]
|
|
		if (temp2.className == "Model") and (temp2 ~= script.Parent) then
|
|
			temp = temp2:findFirstChild("Right Arm")
|
|
			human = temp2:findFirstChild("Humanoid")
|
|
			if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then
|
|
				if (temp.Position - pos).magnitude < dist then
|
|
					torso = temp
|
|
					dist = (temp.Position - pos).magnitude
|
|
				end
|
|
			end
|
|
		end
|
|
	end
|
|
	return torso
|
|
end
|
|
|
|
|
|
|
|
|
|
while true do
|
|
	wait(math.random(1,5))
|
|
	local target = findNearestTorso(script.Parent.Torso.Position)
|
|
	if target ~= nil then
|
|
		script.Parent.Humanoid:MoveTo(target.Position, target)
|
|
	end
|
|
|
|
end
|
|
</ProtectedString>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="Script" referent="RBX397">
|
|
<Properties>
|
|
<bool name="Disabled">false</bool>
|
|
<Content name="LinkedSource"><null></null></Content>
|
|
<string name="Name">Health</string>
|
|
<ProtectedString name="Source">function waitForChild(parent, childName)
|
|
	while true do
|
|
		local child = parent:findFirstChild(childName)
|
|
		if child then
|
|
			return child
|
|
		end
|
|
		parent.ChildAdded:wait()
|
|
	end
|
|
end
|
|
|
|
-- declarations
|
|
|
|
local Figure = script.Parent
|
|
local Head = waitForChild(Figure, "Head")
|
|
local Humanoid = waitForChild(Figure, "Humanoid")
|
|
Humanoid.Health=500
|
|
-- regeneration
|
|
while true do
|
|
	local s = wait(4)
|
|
	local health = Humanoid.Health
|
|
	if health > 0 and health < Humanoid.MaxHealth then
|
|
		health = health + 0.08 * s * Humanoid.MaxHealth
|
|
		if health * 1.05 < Humanoid.MaxHealth then
|
|
			Humanoid.Health = health
|
|
		else
|
|
			Humanoid.Health = Humanoid.MaxHealth
|
|
		end
|
|
	end
|
|
end
|
|
</ProtectedString>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="Script" referent="RBX398">
|
|
<Properties>
|
|
<bool name="Disabled">false</bool>
|
|
<Content name="LinkedSource"><null></null></Content>
|
|
<string name="Name">Respawn</string>
|
|
<ProtectedString name="Source">name="Humanoid"
|
|
|
|
robo=script.Parent:clone()
|
|
|
|
while true do
|
|
	wait(1)
|
|
	if script.Parent.Humanoid.Health<1 then
|
|
		robot=robo:clone()
|
|
		robot.Parent=script.Parent.Parent
|
|
		robot:makeJoints()
|
|
		script.Parent:remove()
|
|
	end
|
|
end
|
|
		
|
|
|
|
|
|
</ProtectedString>
|
|
</Properties>
|
|
</Item>
|
|
</Item>
|
|
<Item class="Model" referent="RBX399">
|
|
<Properties>
|
|
<CoordinateFrame name="ModelInPrimary">
|
|
<X>0</X>
|
|
<Y>0</Y>
|
|
<Z>0</Z>
|
|
<R00>1</R00>
|
|
<R01>0</R01>
|
|
<R02>0</R02>
|
|
<R10>0</R10>
|
|
<R11>1</R11>
|
|
<R12>0</R12>
|
|
<R20>0</R20>
|
|
<R21>0</R21>
|
|
<R22>1</R22>
|
|
</CoordinateFrame>
|
|
<string name="Name">Zombie</string>
|
|
<Ref name="PrimaryPart">null</Ref>
|
|
</Properties>
|
|
<Item class="Part" referent="RBX400">
|
|
<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">29</int>
|
|
<CoordinateFrame name="CFrame">
|
|
<X>23.5</X>
|
|
<Y>20.3999996</Y>
|
|
<Z>-10</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>
|
|
<float name="Elasticity">0.5</float>
|
|
<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>
|
|
<token name="Material">256</token>
|
|
<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>4.07127958e-025</X>
|
|
<Y>3.33696291e-022</Y>
|
|
<Z>6.94702468e-025</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>3.64808751e-020</X>
|
|
<Y>0.00686328812</Y>
|
|
<Z>3.64317968e-020</Z>
|
|
</Vector3>
|
|
<token name="formFactorRaw">0</token>
|
|
<token name="shape">1</token>
|
|
<Vector3 name="size">
|
|
<X>2</X>
|
|
<Y>1</Y>
|
|
<Z>1</Z>
|
|
</Vector3>
|
|
</Properties>
|
|
<Item class="SpecialMesh" referent="RBX401">
|
|
<Properties>
|
|
<token name="LODX">2</token>
|
|
<token name="LODY">2</token>
|
|
<Content name="MeshId"><null></null></Content>
|
|
<token name="MeshType">0</token>
|
|
<string name="Name">Mesh</string>
|
|
<Vector3 name="Offset">
|
|
<X>0</X>
|
|
<Y>0</Y>
|
|
<Z>0</Z>
|
|
</Vector3>
|
|
<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>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="Decal" referent="RBX402">
|
|
<Properties>
|
|
<token name="Face">5</token>
|
|
<string name="Name">face</string>
|
|
<float name="Shiny">20</float>
|
|
<float name="Specular">0</float>
|
|
<Content name="Texture"><null></null></Content>
|
|
<float name="Transparency">0</float>
|
|
</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">4</token>
|
|
<token name="BottomSurfaceInput">0</token>
|
|
<int name="BrickColor">192</int>
|
|
<CoordinateFrame name="CFrame">
|
|
<X>23.5</X>
|
|
<Y>21.8999996</Y>
|
|
<Z>-10</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>
|
|
<float name="Elasticity">0.5</float>
|
|
<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>
|
|
<token name="Material">256</token>
|
|
<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>4.07127958e-025</X>
|
|
<Y>3.33696291e-022</Y>
|
|
<Z>6.94702468e-025</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>3.64798347e-020</X>
|
|
<Y>0.00686328812</Y>
|
|
<Z>3.64324075e-020</Z>
|
|
</Vector3>
|
|
<token name="formFactorRaw">0</token>
|
|
<token name="shape">1</token>
|
|
<Vector3 name="size">
|
|
<X>2</X>
|
|
<Y>2</Y>
|
|
<Z>1</Z>
|
|
</Vector3>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="Part" referent="RBX404">
|
|
<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>23.8999996</Y>
|
|
<Z>-9.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">false</bool>
|
|
<float name="Elasticity">0.5</float>
|
|
<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>
|
|
<token name="Material">256</token>
|
|
<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>4.07127958e-025</X>
|
|
<Y>3.33696291e-022</Y>
|
|
<Z>6.94702468e-025</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>3.66452934e-020</X>
|
|
<Y>0.00686328812</Y>
|
|
<Z>3.64332218e-020</Z>
|
|
</Vector3>
|
|
<token name="formFactorRaw">0</token>
|
|
<token name="shape">1</token>
|
|
<Vector3 name="size">
|
|
<X>1</X>
|
|
<Y>2</Y>
|
|
<Z>1</Z>
|
|
</Vector3>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="Part" referent="RBX405">
|
|
<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>23.8999996</Y>
|
|
<Z>-10.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">false</bool>
|
|
<float name="Elasticity">0.5</float>
|
|
<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>
|
|
<token name="Material">256</token>
|
|
<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>4.07127958e-025</X>
|
|
<Y>3.33696291e-022</Y>
|
|
<Z>6.94702468e-025</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>3.63115971e-020</X>
|
|
<Y>0.00686328812</Y>
|
|
<Z>3.64332218e-020</Z>
|
|
</Vector3>
|
|
<token name="formFactorRaw">0</token>
|
|
<token name="shape">1</token>
|
|
<Vector3 name="size">
|
|
<X>1</X>
|
|
<Y>2</Y>
|
|
<Z>1</Z>
|
|
</Vector3>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="Humanoid" referent="RBX406">
|
|
<Properties>
|
|
<float name="Health">100</float>
|
|
<float name="MaxHealth">100</float>
|
|
<string name="Name">Humanoid</string>
|
|
<token name="NameOcclusion">0</token>
|
|
<float name="WalkSpeed">16</float>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="Part" referent="RBX407">
|
|
<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">29</int>
|
|
<CoordinateFrame name="CFrame">
|
|
<X>24</X>
|
|
<Y>21.3999996</Y>
|
|
<Z>-8.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">true</bool>
|
|
<float name="Elasticity">0.5</float>
|
|
<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>
|
|
<token name="Material">256</token>
|
|
<string name="Name">zarm</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>4.07127958e-025</X>
|
|
<Y>3.33696291e-022</Y>
|
|
<Z>6.94702468e-025</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>3.69807249e-020</X>
|
|
<Y>0.00686328812</Y>
|
|
<Z>3.62653558e-020</Z>
|
|
</Vector3>
|
|
<token name="formFactorRaw">0</token>
|
|
<token name="shape">1</token>
|
|
<Vector3 name="size">
|
|
<X>2</X>
|
|
<Y>1</Y>
|
|
<Z>1</Z>
|
|
</Vector3>
|
|
</Properties>
|
|
<Item class="Script" referent="RBX408">
|
|
<Properties>
|
|
<bool name="Disabled">false</bool>
|
|
<Content name="LinkedSource"><null></null></Content>
|
|
<string name="Name">Script</string>
|
|
<ProtectedString name="Source">wait(1)
|
|
owner=script.Parent.Parent.Name
|
|
|
|
function onTouched(part)
|
|
	if part.Parent ~= nil then
|
|
		local h = part.Parent:findFirstChild("Humanoid")
|
|
			if h~=nil then
|
|
				if cantouch~=0 then
|
|
					if h.Parent.Name~=owner then
|
|
						
|
|
						if h.Parent:findFirstChild("zarm")~=nil then return end
|
|
|
|
						cantouch=0
|
|
|
|
						local larm=h.Parent:findFirstChild("Left Arm")
|
|
						local rarm=h.Parent:findFirstChild("Right Arm")
|
|
						
|
|
						if larm~=nil then
|
|
							larm:remove()
|
|
						end
|
|
						if rarm~=nil then
|
|
							rarm:remove()
|
|
						end
|
|
						local zee=script.Parent.Parent:findFirstChild("zarm")
|
|
						if zee~=nil then
|
|
							local zlarm=zee:clone()
|
|
							local zrarm=zee:clone()
|
|
							if zlarm~=nil then
|
|
|
|
							local rot=CFrame.new(0, 0, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
|
|
								zlarm.CFrame=h.Parent.Torso.CFrame * CFrame.new(Vector3.new(-1.5,0.5,-0.5)) * rot
|
|
								zrarm.CFrame=h.Parent.Torso.CFrame * CFrame.new(Vector3.new(1.5,0.5,-0.5)) * rot
|
|
								zlarm.Parent=h.Parent
|
|
								zrarm.Parent=h.Parent
|
|
								zlarm:makeJoints()
|
|
								zrarm:makeJoints()
|
|
								zlarm.Anchored=false
|
|
								zrarm.Anchored=false
|
|
								wait(0.1)
|
|
								h.Parent.Head.Color=zee.Color
|
|
							else print("no zee"); return end
|
|
						end
|
|
						wait(1)
|
|
						cantouch=1
|
|
					end
|
|
				end
|
|
			end
|
|
	end
|
|
end
|
|
|
|
script.Parent.Touched:connect(onTouched)</ProtectedString>
|
|
</Properties>
|
|
</Item>
|
|
</Item>
|
|
<Item class="Part" referent="RBX409">
|
|
<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">29</int>
|
|
<CoordinateFrame name="CFrame">
|
|
<X>24</X>
|
|
<Y>21.3999996</Y>
|
|
<Z>-11.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">true</bool>
|
|
<float name="Elasticity">0.5</float>
|
|
<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>
|
|
<token name="Material">256</token>
|
|
<string name="Name">zarm</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>4.07127958e-025</X>
|
|
<Y>3.33696291e-022</Y>
|
|
<Z>6.94702468e-025</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>3.5979636e-020</X>
|
|
<Y>0.00686328812</Y>
|
|
<Z>3.62653558e-020</Z>
|
|
</Vector3>
|
|
<token name="formFactorRaw">0</token>
|
|
<token name="shape">1</token>
|
|
<Vector3 name="size">
|
|
<X>2</X>
|
|
<Y>1</Y>
|
|
<Z>1</Z>
|
|
</Vector3>
|
|
</Properties>
|
|
<Item class="Script" referent="RBX410">
|
|
<Properties>
|
|
<bool name="Disabled">false</bool>
|
|
<Content name="LinkedSource"><null></null></Content>
|
|
<string name="Name">Script</string>
|
|
<ProtectedString name="Source">wait(1)
|
|
owner=script.Parent.Parent.Name
|
|
|
|
function onTouched(part)
|
|
	if part.Parent ~= nil then
|
|
		local h = part.Parent:findFirstChild("Humanoid")
|
|
			if h~=nil then
|
|
				if cantouch~=0 then
|
|
					if h.Parent.Name~=owner then
|
|
						
|
|
						if h.Parent:findFirstChild("zarm")~=nil then return end
|
|
|
|
						cantouch=0
|
|
|
|
						local larm=h.Parent:findFirstChild("Left Arm")
|
|
						local rarm=h.Parent:findFirstChild("Right Arm")
|
|
						
|
|
						if larm~=nil then
|
|
							larm:remove()
|
|
						end
|
|
						if rarm~=nil then
|
|
							rarm:remove()
|
|
						end
|
|
						local zee=script.Parent.Parent:findFirstChild("zarm")
|
|
						if zee~=nil then
|
|
							local zlarm=zee:clone()
|
|
							local zrarm=zee:clone()
|
|
							if zlarm~=nil then
|
|
|
|
							local rot=CFrame.new(0, 0, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
|
|
								zlarm.CFrame=h.Parent.Torso.CFrame * CFrame.new(Vector3.new(-1.5,0.5,-0.5)) * rot
|
|
								zrarm.CFrame=h.Parent.Torso.CFrame * CFrame.new(Vector3.new(1.5,0.5,-0.5)) * rot
|
|
								zlarm.Parent=h.Parent
|
|
								zrarm.Parent=h.Parent
|
|
								zlarm:makeJoints()
|
|
								zrarm:makeJoints()
|
|
								zlarm.Anchored=false
|
|
								zrarm.Anchored=false
|
|
								wait(0.1)
|
|
								h.Parent.Head.Color=zee.Color
|
|
							else print("no zee"); return end
|
|
						end
|
|
						wait(1)
|
|
						cantouch=1
|
|
					end
|
|
				end
|
|
			end
|
|
	end
|
|
end
|
|
|
|
script.Parent.Touched:connect(onTouched)</ProtectedString>
|
|
</Properties>
|
|
</Item>
|
|
</Item>
|
|
<Item class="ObjectValue" referent="RBX411">
|
|
<Properties>
|
|
<string name="Name">IsNZ</string>
|
|
<Ref name="Value">null</Ref>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="IntValue" referent="RBX412">
|
|
<Properties>
|
|
<string name="Name">Mode</string>
|
|
<int name="Value">0</int>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="Script" referent="RBX413">
|
|
<Properties>
|
|
<bool name="Disabled">false</bool>
|
|
<Content name="LinkedSource"><null></null></Content>
|
|
<string name="Name">Script</string>
|
|
<ProtectedString name="Source">local larm = script.Parent:FindFirstChild("Left Arm")
|
|
local rarm = script.Parent:FindFirstChild("Right Arm")
|
|
|
|
function findNearestTorso(pos)
|
|
	local list = game.Workspace:children()
|
|
	local torso = nil
|
|
	local dist = 1000
|
|
	local temp = nil
|
|
	local human = nil
|
|
	local temp2 = nil
|
|
	for x = 1, #list do
|
|
		temp2 = list[x]
|
|
		if (temp2.className == "Model") and (temp2 ~= script.Parent) then
|
|
			temp = temp2:findFirstChild("Right Arm")
|
|
			human = temp2:findFirstChild("Humanoid")
|
|
			if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then
|
|
				if (temp.Position - pos).magnitude < dist then
|
|
					torso = temp
|
|
					dist = (temp.Position - pos).magnitude
|
|
				end
|
|
			end
|
|
		end
|
|
	end
|
|
	return torso
|
|
end
|
|
|
|
|
|
|
|
|
|
while true do
|
|
	wait(math.random(1,5))
|
|
	local target = findNearestTorso(script.Parent.Torso.Position)
|
|
	if target ~= nil then
|
|
		script.Parent.Humanoid:MoveTo(target.Position, target)
|
|
	end
|
|
|
|
end
|
|
</ProtectedString>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="Script" referent="RBX414">
|
|
<Properties>
|
|
<bool name="Disabled">false</bool>
|
|
<Content name="LinkedSource"><null></null></Content>
|
|
<string name="Name">Health</string>
|
|
<ProtectedString name="Source">function waitForChild(parent, childName)
|
|
	while true do
|
|
		local child = parent:findFirstChild(childName)
|
|
		if child then
|
|
			return child
|
|
		end
|
|
		parent.ChildAdded:wait()
|
|
	end
|
|
end
|
|
|
|
-- declarations
|
|
|
|
local Figure = script.Parent
|
|
local Head = waitForChild(Figure, "Head")
|
|
local Humanoid = waitForChild(Figure, "Humanoid")
|
|
Humanoid.Health=500
|
|
-- regeneration
|
|
while true do
|
|
	local s = wait(4)
|
|
	local health = Humanoid.Health
|
|
	if health > 0 and health < Humanoid.MaxHealth then
|
|
		health = health + 0.08 * s * Humanoid.MaxHealth
|
|
		if health * 1.05 < Humanoid.MaxHealth then
|
|
			Humanoid.Health = health
|
|
		else
|
|
			Humanoid.Health = Humanoid.MaxHealth
|
|
		end
|
|
	end
|
|
end
|
|
</ProtectedString>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="Script" referent="RBX415">
|
|
<Properties>
|
|
<bool name="Disabled">false</bool>
|
|
<Content name="LinkedSource"><null></null></Content>
|
|
<string name="Name">Respawn</string>
|
|
<ProtectedString name="Source">name="Humanoid"
|
|
|
|
robo=script.Parent:clone()
|
|
|
|
while true do
|
|
	wait(1)
|
|
	if script.Parent.Humanoid.Health<1 then
|
|
		robot=robo:clone()
|
|
		robot.Parent=script.Parent.Parent
|
|
		robot:makeJoints()
|
|
		script.Parent:remove()
|
|
	end
|
|
end
|
|
		
|
|
|
|
|
|
</ProtectedString>
|
|
</Properties>
|
|
</Item>
|
|
</Item>
|
|
<Item class="Model" referent="RBX416">
|
|
<Properties>
|
|
<CoordinateFrame name="ModelInPrimary">
|
|
<X>0</X>
|
|
<Y>0</Y>
|
|
<Z>0</Z>
|
|
<R00>1</R00>
|
|
<R01>0</R01>
|
|
<R02>0</R02>
|
|
<R10>0</R10>
|
|
<R11>1</R11>
|
|
<R12>0</R12>
|
|
<R20>0</R20>
|
|
<R21>0</R21>
|
|
<R22>1</R22>
|
|
</CoordinateFrame>
|
|
<string name="Name">Zombie</string>
|
|
<Ref name="PrimaryPart">null</Ref>
|
|
</Properties>
|
|
<Item class="Part" referent="RBX417">
|
|
<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">29</int>
|
|
<CoordinateFrame name="CFrame">
|
|
<X>17.4977264</X>
|
|
<Y>44.5124817</Y>
|
|
<Z>-39.4223785</Z>
|
|
<R00>1.49011612e-008</R00>
|
|
<R01>0</R01>
|
|
<R02>-0.999999881</R02>
|
|
<R10>1.49011612e-008</R10>
|
|
<R11>-0.99999994</R11>
|
|
<R12>0</R12>
|
|
<R20>-0.99999994</R20>
|
|
<R21>1.49011612e-008</R21>
|
|
<R22>1.49011612e-008</R22>
|
|
</CoordinateFrame>
|
|
<bool name="CanCollide">true</bool>
|
|
<float name="Elasticity">0.5</float>
|
|
<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>
|
|
<token name="Material">256</token>
|
|
<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>4.07127958e-025</X>
|
|
<Y>3.33696291e-022</Y>
|
|
<Z>6.94702468e-025</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>3.64808751e-020</X>
|
|
<Y>0.00686328812</Y>
|
|
<Z>3.64317968e-020</Z>
|
|
</Vector3>
|
|
<token name="formFactorRaw">0</token>
|
|
<token name="shape">1</token>
|
|
<Vector3 name="size">
|
|
<X>2</X>
|
|
<Y>1</Y>
|
|
<Z>1</Z>
|
|
</Vector3>
|
|
</Properties>
|
|
<Item class="SpecialMesh" referent="RBX418">
|
|
<Properties>
|
|
<token name="LODX">2</token>
|
|
<token name="LODY">2</token>
|
|
<Content name="MeshId"><null></null></Content>
|
|
<token name="MeshType">0</token>
|
|
<string name="Name">Mesh</string>
|
|
<Vector3 name="Offset">
|
|
<X>0</X>
|
|
<Y>0</Y>
|
|
<Z>0</Z>
|
|
</Vector3>
|
|
<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>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="Decal" referent="RBX419">
|
|
<Properties>
|
|
<token name="Face">5</token>
|
|
<string name="Name">face</string>
|
|
<float name="Shiny">20</float>
|
|
<float name="Specular">0</float>
|
|
<Content name="Texture"><null></null></Content>
|
|
<float name="Transparency">0</float>
|
|
</Properties>
|
|
</Item>
|
|
</Item>
|
|
<Item class="Part" referent="RBX420">
|
|
<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>17.4977264</X>
|
|
<Y>46.0124817</Y>
|
|
<Z>-39.4223785</Z>
|
|
<R00>1.49011612e-008</R00>
|
|
<R01>0</R01>
|
|
<R02>-0.999999881</R02>
|
|
<R10>1.49011612e-008</R10>
|
|
<R11>-0.99999994</R11>
|
|
<R12>0</R12>
|
|
<R20>-0.99999994</R20>
|
|
<R21>1.49011612e-008</R21>
|
|
<R22>1.49011612e-008</R22>
|
|
</CoordinateFrame>
|
|
<bool name="CanCollide">true</bool>
|
|
<float name="Elasticity">0.5</float>
|
|
<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>
|
|
<token name="Material">256</token>
|
|
<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>4.07127958e-025</X>
|
|
<Y>3.33696291e-022</Y>
|
|
<Z>6.94702468e-025</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>3.64798347e-020</X>
|
|
<Y>0.00686328812</Y>
|
|
<Z>3.64324075e-020</Z>
|
|
</Vector3>
|
|
<token name="formFactorRaw">0</token>
|
|
<token name="shape">1</token>
|
|
<Vector3 name="size">
|
|
<X>2</X>
|
|
<Y>2</Y>
|
|
<Z>1</Z>
|
|
</Vector3>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="Part" referent="RBX421">
|
|
<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>17.4977264</X>
|
|
<Y>48.0124817</Y>
|
|
<Z>-38.9223785</Z>
|
|
<R00>1.49011612e-008</R00>
|
|
<R01>0</R01>
|
|
<R02>-0.999999881</R02>
|
|
<R10>1.49011612e-008</R10>
|
|
<R11>-0.99999994</R11>
|
|
<R12>0</R12>
|
|
<R20>-0.99999994</R20>
|
|
<R21>1.49011612e-008</R21>
|
|
<R22>1.49011612e-008</R22>
|
|
</CoordinateFrame>
|
|
<bool name="CanCollide">false</bool>
|
|
<float name="Elasticity">0.5</float>
|
|
<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>
|
|
<token name="Material">256</token>
|
|
<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>4.07127958e-025</X>
|
|
<Y>3.33696291e-022</Y>
|
|
<Z>6.94702468e-025</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>3.66452934e-020</X>
|
|
<Y>0.00686328812</Y>
|
|
<Z>3.64332218e-020</Z>
|
|
</Vector3>
|
|
<token name="formFactorRaw">0</token>
|
|
<token name="shape">1</token>
|
|
<Vector3 name="size">
|
|
<X>1</X>
|
|
<Y>2</Y>
|
|
<Z>1</Z>
|
|
</Vector3>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="Part" referent="RBX422">
|
|
<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>17.4977264</X>
|
|
<Y>48.0124817</Y>
|
|
<Z>-39.9223785</Z>
|
|
<R00>1.49011612e-008</R00>
|
|
<R01>0</R01>
|
|
<R02>-0.999999881</R02>
|
|
<R10>1.49011612e-008</R10>
|
|
<R11>-0.99999994</R11>
|
|
<R12>0</R12>
|
|
<R20>-0.99999994</R20>
|
|
<R21>1.49011612e-008</R21>
|
|
<R22>1.49011612e-008</R22>
|
|
</CoordinateFrame>
|
|
<bool name="CanCollide">false</bool>
|
|
<float name="Elasticity">0.5</float>
|
|
<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>
|
|
<token name="Material">256</token>
|
|
<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>4.07127958e-025</X>
|
|
<Y>3.33696291e-022</Y>
|
|
<Z>6.94702468e-025</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>3.63115971e-020</X>
|
|
<Y>0.00686328812</Y>
|
|
<Z>3.64332218e-020</Z>
|
|
</Vector3>
|
|
<token name="formFactorRaw">0</token>
|
|
<token name="shape">1</token>
|
|
<Vector3 name="size">
|
|
<X>1</X>
|
|
<Y>2</Y>
|
|
<Z>1</Z>
|
|
</Vector3>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="Humanoid" referent="RBX423">
|
|
<Properties>
|
|
<float name="Health">100</float>
|
|
<float name="MaxHealth">100</float>
|
|
<string name="Name">Humanoid</string>
|
|
<token name="NameOcclusion">0</token>
|
|
<float name="WalkSpeed">16</float>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="Part" referent="RBX424">
|
|
<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">29</int>
|
|
<CoordinateFrame name="CFrame">
|
|
<X>17.9977264</X>
|
|
<Y>45.5124817</Y>
|
|
<Z>-37.9223785</Z>
|
|
<R00>0.999999881</R00>
|
|
<R01>0</R01>
|
|
<R02>1.49011612e-008</R02>
|
|
<R10>0</R10>
|
|
<R11>-0.99999994</R11>
|
|
<R12>1.49011612e-008</R12>
|
|
<R20>-1.49011612e-008</R20>
|
|
<R21>1.49011612e-008</R21>
|
|
<R22>-0.99999994</R22>
|
|
</CoordinateFrame>
|
|
<bool name="CanCollide">true</bool>
|
|
<float name="Elasticity">0.5</float>
|
|
<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>
|
|
<token name="Material">256</token>
|
|
<string name="Name">zarm</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>4.07127958e-025</X>
|
|
<Y>3.33696291e-022</Y>
|
|
<Z>6.94702468e-025</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>3.69807249e-020</X>
|
|
<Y>0.00686328812</Y>
|
|
<Z>3.62653558e-020</Z>
|
|
</Vector3>
|
|
<token name="formFactorRaw">0</token>
|
|
<token name="shape">1</token>
|
|
<Vector3 name="size">
|
|
<X>2</X>
|
|
<Y>1</Y>
|
|
<Z>1</Z>
|
|
</Vector3>
|
|
</Properties>
|
|
<Item class="Script" referent="RBX425">
|
|
<Properties>
|
|
<bool name="Disabled">false</bool>
|
|
<Content name="LinkedSource"><null></null></Content>
|
|
<string name="Name">Script</string>
|
|
<ProtectedString name="Source">wait(1)
|
|
owner=script.Parent.Parent.Name
|
|
|
|
function onTouched(part)
|
|
	if part.Parent ~= nil then
|
|
		local h = part.Parent:findFirstChild("Humanoid")
|
|
			if h~=nil then
|
|
				if cantouch~=0 then
|
|
					if h.Parent.Name~=owner then
|
|
						
|
|
						if h.Parent:findFirstChild("zarm")~=nil then return end
|
|
|
|
						cantouch=0
|
|
|
|
						local larm=h.Parent:findFirstChild("Left Arm")
|
|
						local rarm=h.Parent:findFirstChild("Right Arm")
|
|
						
|
|
						if larm~=nil then
|
|
							larm:remove()
|
|
						end
|
|
						if rarm~=nil then
|
|
							rarm:remove()
|
|
						end
|
|
						local zee=script.Parent.Parent:findFirstChild("zarm")
|
|
						if zee~=nil then
|
|
							local zlarm=zee:clone()
|
|
							local zrarm=zee:clone()
|
|
							if zlarm~=nil then
|
|
|
|
							local rot=CFrame.new(0, 0, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
|
|
								zlarm.CFrame=h.Parent.Torso.CFrame * CFrame.new(Vector3.new(-1.5,0.5,-0.5)) * rot
|
|
								zrarm.CFrame=h.Parent.Torso.CFrame * CFrame.new(Vector3.new(1.5,0.5,-0.5)) * rot
|
|
								zlarm.Parent=h.Parent
|
|
								zrarm.Parent=h.Parent
|
|
								zlarm:makeJoints()
|
|
								zrarm:makeJoints()
|
|
								zlarm.Anchored=false
|
|
								zrarm.Anchored=false
|
|
								wait(0.1)
|
|
								h.Parent.Head.Color=zee.Color
|
|
							else print("no zee"); return end
|
|
						end
|
|
						wait(1)
|
|
						cantouch=1
|
|
					end
|
|
				end
|
|
			end
|
|
	end
|
|
end
|
|
|
|
script.Parent.Touched:connect(onTouched)</ProtectedString>
|
|
</Properties>
|
|
</Item>
|
|
</Item>
|
|
<Item class="Part" referent="RBX426">
|
|
<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">29</int>
|
|
<CoordinateFrame name="CFrame">
|
|
<X>17.9977264</X>
|
|
<Y>45.5124817</Y>
|
|
<Z>-40.9223785</Z>
|
|
<R00>0.999999881</R00>
|
|
<R01>0</R01>
|
|
<R02>1.49011612e-008</R02>
|
|
<R10>0</R10>
|
|
<R11>-0.99999994</R11>
|
|
<R12>1.49011612e-008</R12>
|
|
<R20>-1.49011612e-008</R20>
|
|
<R21>1.49011612e-008</R21>
|
|
<R22>-0.99999994</R22>
|
|
</CoordinateFrame>
|
|
<bool name="CanCollide">true</bool>
|
|
<float name="Elasticity">0.5</float>
|
|
<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>
|
|
<token name="Material">256</token>
|
|
<string name="Name">zarm</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>4.07127958e-025</X>
|
|
<Y>3.33696291e-022</Y>
|
|
<Z>6.94702468e-025</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>3.5979636e-020</X>
|
|
<Y>0.00686328812</Y>
|
|
<Z>3.62653558e-020</Z>
|
|
</Vector3>
|
|
<token name="formFactorRaw">0</token>
|
|
<token name="shape">1</token>
|
|
<Vector3 name="size">
|
|
<X>2</X>
|
|
<Y>1</Y>
|
|
<Z>1</Z>
|
|
</Vector3>
|
|
</Properties>
|
|
<Item class="Script" referent="RBX427">
|
|
<Properties>
|
|
<bool name="Disabled">false</bool>
|
|
<Content name="LinkedSource"><null></null></Content>
|
|
<string name="Name">Script</string>
|
|
<ProtectedString name="Source">wait(1)
|
|
owner=script.Parent.Parent.Name
|
|
|
|
function onTouched(part)
|
|
	if part.Parent ~= nil then
|
|
		local h = part.Parent:findFirstChild("Humanoid")
|
|
			if h~=nil then
|
|
				if cantouch~=0 then
|
|
					if h.Parent.Name~=owner then
|
|
						
|
|
						if h.Parent:findFirstChild("zarm")~=nil then return end
|
|
|
|
						cantouch=0
|
|
|
|
						local larm=h.Parent:findFirstChild("Left Arm")
|
|
						local rarm=h.Parent:findFirstChild("Right Arm")
|
|
						
|
|
						if larm~=nil then
|
|
							larm:remove()
|
|
						end
|
|
						if rarm~=nil then
|
|
							rarm:remove()
|
|
						end
|
|
						local zee=script.Parent.Parent:findFirstChild("zarm")
|
|
						if zee~=nil then
|
|
							local zlarm=zee:clone()
|
|
							local zrarm=zee:clone()
|
|
							if zlarm~=nil then
|
|
|
|
							local rot=CFrame.new(0, 0, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
|
|
								zlarm.CFrame=h.Parent.Torso.CFrame * CFrame.new(Vector3.new(-1.5,0.5,-0.5)) * rot
|
|
								zrarm.CFrame=h.Parent.Torso.CFrame * CFrame.new(Vector3.new(1.5,0.5,-0.5)) * rot
|
|
								zlarm.Parent=h.Parent
|
|
								zrarm.Parent=h.Parent
|
|
								zlarm:makeJoints()
|
|
								zrarm:makeJoints()
|
|
								zlarm.Anchored=false
|
|
								zrarm.Anchored=false
|
|
								wait(0.1)
|
|
								h.Parent.Head.Color=zee.Color
|
|
							else print("no zee"); return end
|
|
						end
|
|
						wait(1)
|
|
						cantouch=1
|
|
					end
|
|
				end
|
|
			end
|
|
	end
|
|
end
|
|
|
|
script.Parent.Touched:connect(onTouched)</ProtectedString>
|
|
</Properties>
|
|
</Item>
|
|
</Item>
|
|
<Item class="ObjectValue" referent="RBX428">
|
|
<Properties>
|
|
<string name="Name">IsNZ</string>
|
|
<Ref name="Value">null</Ref>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="IntValue" referent="RBX429">
|
|
<Properties>
|
|
<string name="Name">Mode</string>
|
|
<int name="Value">0</int>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="Script" referent="RBX430">
|
|
<Properties>
|
|
<bool name="Disabled">false</bool>
|
|
<Content name="LinkedSource"><null></null></Content>
|
|
<string name="Name">Script</string>
|
|
<ProtectedString name="Source">local larm = script.Parent:FindFirstChild("Left Arm")
|
|
local rarm = script.Parent:FindFirstChild("Right Arm")
|
|
|
|
function findNearestTorso(pos)
|
|
	local list = game.Workspace:children()
|
|
	local torso = nil
|
|
	local dist = 1000
|
|
	local temp = nil
|
|
	local human = nil
|
|
	local temp2 = nil
|
|
	for x = 1, #list do
|
|
		temp2 = list[x]
|
|
		if (temp2.className == "Model") and (temp2 ~= script.Parent) then
|
|
			temp = temp2:findFirstChild("Right Arm")
|
|
			human = temp2:findFirstChild("Humanoid")
|
|
			if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then
|
|
				if (temp.Position - pos).magnitude < dist then
|
|
					torso = temp
|
|
					dist = (temp.Position - pos).magnitude
|
|
				end
|
|
			end
|
|
		end
|
|
	end
|
|
	return torso
|
|
end
|
|
|
|
|
|
|
|
|
|
while true do
|
|
	wait(math.random(1,5))
|
|
	local target = findNearestTorso(script.Parent.Torso.Position)
|
|
	if target ~= nil then
|
|
		script.Parent.Humanoid:MoveTo(target.Position, target)
|
|
	end
|
|
|
|
end
|
|
</ProtectedString>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="Script" referent="RBX431">
|
|
<Properties>
|
|
<bool name="Disabled">false</bool>
|
|
<Content name="LinkedSource"><null></null></Content>
|
|
<string name="Name">Health</string>
|
|
<ProtectedString name="Source">function waitForChild(parent, childName)
|
|
	while true do
|
|
		local child = parent:findFirstChild(childName)
|
|
		if child then
|
|
			return child
|
|
		end
|
|
		parent.ChildAdded:wait()
|
|
	end
|
|
end
|
|
|
|
-- declarations
|
|
|
|
local Figure = script.Parent
|
|
local Head = waitForChild(Figure, "Head")
|
|
local Humanoid = waitForChild(Figure, "Humanoid")
|
|
Humanoid.Health=500
|
|
-- regeneration
|
|
while true do
|
|
	local s = wait(4)
|
|
	local health = Humanoid.Health
|
|
	if health > 0 and health < Humanoid.MaxHealth then
|
|
		health = health + 0.08 * s * Humanoid.MaxHealth
|
|
		if health * 1.05 < Humanoid.MaxHealth then
|
|
			Humanoid.Health = health
|
|
		else
|
|
			Humanoid.Health = Humanoid.MaxHealth
|
|
		end
|
|
	end
|
|
end
|
|
</ProtectedString>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="Script" referent="RBX432">
|
|
<Properties>
|
|
<bool name="Disabled">false</bool>
|
|
<Content name="LinkedSource"><null></null></Content>
|
|
<string name="Name">Respawn</string>
|
|
<ProtectedString name="Source">name="Humanoid"
|
|
|
|
robo=script.Parent:clone()
|
|
|
|
while true do
|
|
	wait(1)
|
|
	if script.Parent.Humanoid.Health<1 then
|
|
		robot=robo:clone()
|
|
		robot.Parent=script.Parent.Parent
|
|
		robot:makeJoints()
|
|
		script.Parent:remove()
|
|
	end
|
|
end
|
|
		
|
|
|
|
|
|
</ProtectedString>
|
|
</Properties>
|
|
</Item>
|
|
</Item>
|
|
<Item class="Model" referent="RBX433">
|
|
<Properties>
|
|
<CoordinateFrame name="ModelInPrimary">
|
|
<X>0</X>
|
|
<Y>0</Y>
|
|
<Z>0</Z>
|
|
<R00>1</R00>
|
|
<R01>0</R01>
|
|
<R02>0</R02>
|
|
<R10>0</R10>
|
|
<R11>1</R11>
|
|
<R12>0</R12>
|
|
<R20>0</R20>
|
|
<R21>0</R21>
|
|
<R22>1</R22>
|
|
</CoordinateFrame>
|
|
<string name="Name">Zombie</string>
|
|
<Ref name="PrimaryPart">null</Ref>
|
|
</Properties>
|
|
<Item class="Part" referent="RBX434">
|
|
<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">29</int>
|
|
<CoordinateFrame name="CFrame">
|
|
<X>8.83551025</X>
|
|
<Y>37.1651154</Y>
|
|
<Z>-30.7298489</Z>
|
|
<R00>-0.454648674</R00>
|
|
<R01>-0.540302277</R01>
|
|
<R02>-0.708073378</R02>
|
|
<R10>0.291926563</R10>
|
|
<R11>-0.841470957</R11>
|
|
<R12>0.454648674</R12>
|
|
<R20>-0.841470957</R20>
|
|
<R21>0</R21>
|
|
<R22>0.540302277</R22>
|
|
</CoordinateFrame>
|
|
<bool name="CanCollide">true</bool>
|
|
<float name="Elasticity">0.5</float>
|
|
<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>
|
|
<token name="Material">256</token>
|
|
<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>4.07127958e-025</X>
|
|
<Y>3.33696291e-022</Y>
|
|
<Z>6.94702468e-025</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>3.64807103e-020</X>
|
|
<Y>0.00686328812</Y>
|
|
<Z>3.67023398e-020</Z>
|
|
</Vector3>
|
|
<token name="formFactorRaw">0</token>
|
|
<token name="shape">1</token>
|
|
<Vector3 name="size">
|
|
<X>2</X>
|
|
<Y>1</Y>
|
|
<Z>1</Z>
|
|
</Vector3>
|
|
</Properties>
|
|
<Item class="SpecialMesh" referent="RBX435">
|
|
<Properties>
|
|
<token name="LODX">2</token>
|
|
<token name="LODY">2</token>
|
|
<Content name="MeshId"><null></null></Content>
|
|
<token name="MeshType">0</token>
|
|
<string name="Name">Mesh</string>
|
|
<Vector3 name="Offset">
|
|
<X>0</X>
|
|
<Y>0</Y>
|
|
<Z>0</Z>
|
|
</Vector3>
|
|
<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>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="Decal" referent="RBX436">
|
|
<Properties>
|
|
<token name="Face">5</token>
|
|
<string name="Name">face</string>
|
|
<float name="Shiny">20</float>
|
|
<float name="Specular">0</float>
|
|
<Content name="Texture"><null></null></Content>
|
|
<float name="Transparency">0</float>
|
|
</Properties>
|
|
</Item>
|
|
</Item>
|
|
<Item class="Part" referent="RBX437">
|
|
<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>9.64596367</X>
|
|
<Y>38.4273224</Y>
|
|
<Z>-30.7298489</Z>
|
|
<R00>-0.454648674</R00>
|
|
<R01>-0.540302277</R01>
|
|
<R02>-0.708073378</R02>
|
|
<R10>0.291926563</R10>
|
|
<R11>-0.841470957</R11>
|
|
<R12>0.454648674</R12>
|
|
<R20>-0.841470957</R20>
|
|
<R21>0</R21>
|
|
<R22>0.540302277</R22>
|
|
</CoordinateFrame>
|
|
<bool name="CanCollide">true</bool>
|
|
<float name="Elasticity">0.5</float>
|
|
<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>
|
|
<token name="Material">256</token>
|
|
<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>4.07127958e-025</X>
|
|
<Y>3.33696291e-022</Y>
|
|
<Z>6.94702468e-025</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>3.64798347e-020</X>
|
|
<Y>0.00686328812</Y>
|
|
<Z>3.64324075e-020</Z>
|
|
</Vector3>
|
|
<token name="formFactorRaw">0</token>
|
|
<token name="shape">1</token>
|
|
<Vector3 name="size">
|
|
<X>2</X>
|
|
<Y>2</Y>
|
|
<Z>1</Z>
|
|
</Vector3>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="Part" referent="RBX438">
|
|
<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>10.9538927</X>
|
|
<Y>39.9643021</Y>
|
|
<Z>-30.3091125</Z>
|
|
<R00>-0.454648674</R00>
|
|
<R01>-0.540302277</R01>
|
|
<R02>-0.708073378</R02>
|
|
<R10>0.291926563</R10>
|
|
<R11>-0.841470957</R11>
|
|
<R12>0.454648674</R12>
|
|
<R20>-0.841470957</R20>
|
|
<R21>0</R21>
|
|
<R22>0.540302277</R22>
|
|
</CoordinateFrame>
|
|
<bool name="CanCollide">false</bool>
|
|
<float name="Elasticity">0.5</float>
|
|
<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>
|
|
<token name="Material">256</token>
|
|
<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>4.07127958e-025</X>
|
|
<Y>3.33696291e-022</Y>
|
|
<Z>6.94702468e-025</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>3.66191662e-020</X>
|
|
<Y>0.00686328812</Y>
|
|
<Z>3.59965835e-020</Z>
|
|
</Vector3>
|
|
<token name="formFactorRaw">0</token>
|
|
<token name="shape">1</token>
|
|
<Vector3 name="size">
|
|
<X>1</X>
|
|
<Y>2</Y>
|
|
<Z>1</Z>
|
|
</Vector3>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="Part" referent="RBX439">
|
|
<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>10.4992437</X>
|
|
<Y>40.2562294</Y>
|
|
<Z>-31.1505852</Z>
|
|
<R00>-0.454648674</R00>
|
|
<R01>-0.540302277</R01>
|
|
<R02>-0.708073378</R02>
|
|
<R10>0.291926563</R10>
|
|
<R11>-0.841470957</R11>
|
|
<R12>0.454648674</R12>
|
|
<R20>-0.841470957</R20>
|
|
<R21>0</R21>
|
|
<R22>0.540302277</R22>
|
|
</CoordinateFrame>
|
|
<bool name="CanCollide">false</bool>
|
|
<float name="Elasticity">0.5</float>
|
|
<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>
|
|
<token name="Material">256</token>
|
|
<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>4.07127958e-025</X>
|
|
<Y>3.33696291e-022</Y>
|
|
<Z>6.94702468e-025</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>3.63381671e-020</X>
|
|
<Y>0.00686328812</Y>
|
|
<Z>3.61484164e-020</Z>
|
|
</Vector3>
|
|
<token name="formFactorRaw">0</token>
|
|
<token name="shape">1</token>
|
|
<Vector3 name="size">
|
|
<X>1</X>
|
|
<Y>2</Y>
|
|
<Z>1</Z>
|
|
</Vector3>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="Humanoid" referent="RBX440">
|
|
<Properties>
|
|
<float name="Health">100</float>
|
|
<float name="MaxHealth">100</float>
|
|
<string name="Name">Humanoid</string>
|
|
<token name="NameOcclusion">0</token>
|
|
<float name="WalkSpeed">16</float>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="Part" referent="RBX441">
|
|
<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">29</int>
|
|
<CoordinateFrame name="CFrame">
|
|
<X>10.4118223</X>
|
|
<Y>37.3413734</Y>
|
|
<Z>-29.737793</Z>
|
|
<R00>0.708073378</R00>
|
|
<R01>-0.540302277</R01>
|
|
<R02>-0.454648674</R02>
|
|
<R10>-0.454648674</R10>
|
|
<R11>-0.841470957</R11>
|
|
<R12>0.291926563</R12>
|
|
<R20>-0.540302277</R20>
|
|
<R21>0</R21>
|
|
<R22>-0.841470957</R22>
|
|
</CoordinateFrame>
|
|
<bool name="CanCollide">true</bool>
|
|
<float name="Elasticity">0.5</float>
|
|
<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>
|
|
<token name="Material">256</token>
|
|
<string name="Name">zarm</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>4.07127958e-025</X>
|
|
<Y>3.33696291e-022</Y>
|
|
<Z>6.94702468e-025</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>3.68116343e-020</X>
|
|
<Y>0.00686328812</Y>
|
|
<Z>3.61764016e-020</Z>
|
|
</Vector3>
|
|
<token name="formFactorRaw">0</token>
|
|
<token name="shape">1</token>
|
|
<Vector3 name="size">
|
|
<X>2</X>
|
|
<Y>1</Y>
|
|
<Z>1</Z>
|
|
</Vector3>
|
|
</Properties>
|
|
<Item class="Script" referent="RBX442">
|
|
<Properties>
|
|
<bool name="Disabled">false</bool>
|
|
<Content name="LinkedSource"><null></null></Content>
|
|
<string name="Name">Script</string>
|
|
<ProtectedString name="Source">wait(1)
|
|
owner=script.Parent.Parent.Name
|
|
|
|
function onTouched(part)
|
|
	if part.Parent ~= nil then
|
|
		local h = part.Parent:findFirstChild("Humanoid")
|
|
			if h~=nil then
|
|
				if cantouch~=0 then
|
|
					if h.Parent.Name~=owner then
|
|
						
|
|
						if h.Parent:findFirstChild("zarm")~=nil then return end
|
|
|
|
						cantouch=0
|
|
|
|
						local larm=h.Parent:findFirstChild("Left Arm")
|
|
						local rarm=h.Parent:findFirstChild("Right Arm")
|
|
						
|
|
						if larm~=nil then
|
|
							larm:remove()
|
|
						end
|
|
						if rarm~=nil then
|
|
							rarm:remove()
|
|
						end
|
|
						local zee=script.Parent.Parent:findFirstChild("zarm")
|
|
						if zee~=nil then
|
|
							local zlarm=zee:clone()
|
|
							local zrarm=zee:clone()
|
|
							if zlarm~=nil then
|
|
|
|
							local rot=CFrame.new(0, 0, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
|
|
								zlarm.CFrame=h.Parent.Torso.CFrame * CFrame.new(Vector3.new(-1.5,0.5,-0.5)) * rot
|
|
								zrarm.CFrame=h.Parent.Torso.CFrame * CFrame.new(Vector3.new(1.5,0.5,-0.5)) * rot
|
|
								zlarm.Parent=h.Parent
|
|
								zrarm.Parent=h.Parent
|
|
								zlarm:makeJoints()
|
|
								zrarm:makeJoints()
|
|
								zlarm.Anchored=false
|
|
								zrarm.Anchored=false
|
|
								wait(0.1)
|
|
								h.Parent.Head.Color=zee.Color
|
|
							else print("no zee"); return end
|
|
						end
|
|
						wait(1)
|
|
						cantouch=1
|
|
					end
|
|
				end
|
|
			end
|
|
	end
|
|
end
|
|
|
|
script.Parent.Touched:connect(onTouched)</ProtectedString>
|
|
</Properties>
|
|
</Item>
|
|
</Item>
|
|
<Item class="Part" referent="RBX443">
|
|
<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">29</int>
|
|
<CoordinateFrame name="CFrame">
|
|
<X>9.04787636</X>
|
|
<Y>38.2171516</Y>
|
|
<Z>-32.262207</Z>
|
|
<R00>0.708073378</R00>
|
|
<R01>-0.540302277</R01>
|
|
<R02>-0.454648674</R02>
|
|
<R10>-0.454648674</R10>
|
|
<R11>-0.841470957</R11>
|
|
<R12>0.291926563</R12>
|
|
<R20>-0.540302277</R20>
|
|
<R21>0</R21>
|
|
<R22>-0.841470957</R22>
|
|
</CoordinateFrame>
|
|
<bool name="CanCollide">true</bool>
|
|
<float name="Elasticity">0.5</float>
|
|
<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>
|
|
<token name="Material">256</token>
|
|
<string name="Name">zarm</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>4.07127958e-025</X>
|
|
<Y>3.33696291e-022</Y>
|
|
<Z>6.94702468e-025</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>3.59686371e-020</X>
|
|
<Y>0.00686328812</Y>
|
|
<Z>3.66319002e-020</Z>
|
|
</Vector3>
|
|
<token name="formFactorRaw">0</token>
|
|
<token name="shape">1</token>
|
|
<Vector3 name="size">
|
|
<X>2</X>
|
|
<Y>1</Y>
|
|
<Z>1</Z>
|
|
</Vector3>
|
|
</Properties>
|
|
<Item class="Script" referent="RBX444">
|
|
<Properties>
|
|
<bool name="Disabled">false</bool>
|
|
<Content name="LinkedSource"><null></null></Content>
|
|
<string name="Name">Script</string>
|
|
<ProtectedString name="Source">wait(1)
|
|
owner=script.Parent.Parent.Name
|
|
|
|
function onTouched(part)
|
|
	if part.Parent ~= nil then
|
|
		local h = part.Parent:findFirstChild("Humanoid")
|
|
			if h~=nil then
|
|
				if cantouch~=0 then
|
|
					if h.Parent.Name~=owner then
|
|
						
|
|
						if h.Parent:findFirstChild("zarm")~=nil then return end
|
|
|
|
						cantouch=0
|
|
|
|
						local larm=h.Parent:findFirstChild("Left Arm")
|
|
						local rarm=h.Parent:findFirstChild("Right Arm")
|
|
						
|
|
						if larm~=nil then
|
|
							larm:remove()
|
|
						end
|
|
						if rarm~=nil then
|
|
							rarm:remove()
|
|
						end
|
|
						local zee=script.Parent.Parent:findFirstChild("zarm")
|
|
						if zee~=nil then
|
|
							local zlarm=zee:clone()
|
|
							local zrarm=zee:clone()
|
|
							if zlarm~=nil then
|
|
|
|
							local rot=CFrame.new(0, 0, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
|
|
								zlarm.CFrame=h.Parent.Torso.CFrame * CFrame.new(Vector3.new(-1.5,0.5,-0.5)) * rot
|
|
								zrarm.CFrame=h.Parent.Torso.CFrame * CFrame.new(Vector3.new(1.5,0.5,-0.5)) * rot
|
|
								zlarm.Parent=h.Parent
|
|
								zrarm.Parent=h.Parent
|
|
								zlarm:makeJoints()
|
|
								zrarm:makeJoints()
|
|
								zlarm.Anchored=false
|
|
								zrarm.Anchored=false
|
|
								wait(0.1)
|
|
								h.Parent.Head.Color=zee.Color
|
|
							else print("no zee"); return end
|
|
						end
|
|
						wait(1)
|
|
						cantouch=1
|
|
					end
|
|
				end
|
|
			end
|
|
	end
|
|
end
|
|
|
|
script.Parent.Touched:connect(onTouched)</ProtectedString>
|
|
</Properties>
|
|
</Item>
|
|
</Item>
|
|
<Item class="ObjectValue" referent="RBX445">
|
|
<Properties>
|
|
<string name="Name">IsNZ</string>
|
|
<Ref name="Value">null</Ref>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="IntValue" referent="RBX446">
|
|
<Properties>
|
|
<string name="Name">Mode</string>
|
|
<int name="Value">0</int>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="Script" referent="RBX447">
|
|
<Properties>
|
|
<bool name="Disabled">false</bool>
|
|
<Content name="LinkedSource"><null></null></Content>
|
|
<string name="Name">Script</string>
|
|
<ProtectedString name="Source">local larm = script.Parent:FindFirstChild("Left Arm")
|
|
local rarm = script.Parent:FindFirstChild("Right Arm")
|
|
|
|
function findNearestTorso(pos)
|
|
	local list = game.Workspace:children()
|
|
	local torso = nil
|
|
	local dist = 1000
|
|
	local temp = nil
|
|
	local human = nil
|
|
	local temp2 = nil
|
|
	for x = 1, #list do
|
|
		temp2 = list[x]
|
|
		if (temp2.className == "Model") and (temp2 ~= script.Parent) then
|
|
			temp = temp2:findFirstChild("Right Arm")
|
|
			human = temp2:findFirstChild("Humanoid")
|
|
			if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then
|
|
				if (temp.Position - pos).magnitude < dist then
|
|
					torso = temp
|
|
					dist = (temp.Position - pos).magnitude
|
|
				end
|
|
			end
|
|
		end
|
|
	end
|
|
	return torso
|
|
end
|
|
|
|
|
|
|
|
|
|
while true do
|
|
	wait(math.random(1,5))
|
|
	local target = findNearestTorso(script.Parent.Torso.Position)
|
|
	if target ~= nil then
|
|
		script.Parent.Humanoid:MoveTo(target.Position, target)
|
|
	end
|
|
|
|
end
|
|
</ProtectedString>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="Script" referent="RBX448">
|
|
<Properties>
|
|
<bool name="Disabled">false</bool>
|
|
<Content name="LinkedSource"><null></null></Content>
|
|
<string name="Name">Health</string>
|
|
<ProtectedString name="Source">function waitForChild(parent, childName)
|
|
	while true do
|
|
		local child = parent:findFirstChild(childName)
|
|
		if child then
|
|
			return child
|
|
		end
|
|
		parent.ChildAdded:wait()
|
|
	end
|
|
end
|
|
|
|
-- declarations
|
|
|
|
local Figure = script.Parent
|
|
local Head = waitForChild(Figure, "Head")
|
|
local Humanoid = waitForChild(Figure, "Humanoid")
|
|
Humanoid.Health=500
|
|
-- regeneration
|
|
while true do
|
|
	local s = wait(4)
|
|
	local health = Humanoid.Health
|
|
	if health > 0 and health < Humanoid.MaxHealth then
|
|
		health = health + 0.08 * s * Humanoid.MaxHealth
|
|
		if health * 1.05 < Humanoid.MaxHealth then
|
|
			Humanoid.Health = health
|
|
		else
|
|
			Humanoid.Health = Humanoid.MaxHealth
|
|
		end
|
|
	end
|
|
end
|
|
</ProtectedString>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="Script" referent="RBX449">
|
|
<Properties>
|
|
<bool name="Disabled">false</bool>
|
|
<Content name="LinkedSource"><null></null></Content>
|
|
<string name="Name">Respawn</string>
|
|
<ProtectedString name="Source">name="Humanoid"
|
|
|
|
robo=script.Parent:clone()
|
|
|
|
while true do
|
|
	wait(1)
|
|
	if script.Parent.Humanoid.Health<1 then
|
|
		robot=robo:clone()
|
|
		robot.Parent=script.Parent.Parent
|
|
		robot:makeJoints()
|
|
		script.Parent:remove()
|
|
	end
|
|
end
|
|
		
|
|
|
|
|
|
</ProtectedString>
|
|
</Properties>
|
|
</Item>
|
|
</Item>
|
|
<Item class="Model" referent="RBX450">
|
|
<Properties>
|
|
<CoordinateFrame name="ModelInPrimary">
|
|
<X>0</X>
|
|
<Y>0</Y>
|
|
<Z>0</Z>
|
|
<R00>1</R00>
|
|
<R01>0</R01>
|
|
<R02>0</R02>
|
|
<R10>0</R10>
|
|
<R11>1</R11>
|
|
<R12>0</R12>
|
|
<R20>0</R20>
|
|
<R21>0</R21>
|
|
<R22>1</R22>
|
|
</CoordinateFrame>
|
|
<string name="Name">Zombie</string>
|
|
<Ref name="PrimaryPart">null</Ref>
|
|
</Properties>
|
|
<Item class="Part" referent="RBX451">
|
|
<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">29</int>
|
|
<CoordinateFrame name="CFrame">
|
|
<X>19.4990921</X>
|
|
<Y>27.8050842</Y>
|
|
<Z>-12.5689545</Z>
|
|
<R00>1.49011612e-008</R00>
|
|
<R01>0</R01>
|
|
<R02>-0.999999881</R02>
|
|
<R10>1.49011612e-008</R10>
|
|
<R11>-0.99999994</R11>
|
|
<R12>0</R12>
|
|
<R20>-0.99999994</R20>
|
|
<R21>1.49011612e-008</R21>
|
|
<R22>1.49011612e-008</R22>
|
|
</CoordinateFrame>
|
|
<bool name="CanCollide">true</bool>
|
|
<float name="Elasticity">0.5</float>
|
|
<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>
|
|
<token name="Material">256</token>
|
|
<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>4.07127958e-025</X>
|
|
<Y>3.33696291e-022</Y>
|
|
<Z>6.94702468e-025</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>3.64808751e-020</X>
|
|
<Y>0.00686328812</Y>
|
|
<Z>3.64317968e-020</Z>
|
|
</Vector3>
|
|
<token name="formFactorRaw">0</token>
|
|
<token name="shape">1</token>
|
|
<Vector3 name="size">
|
|
<X>2</X>
|
|
<Y>1</Y>
|
|
<Z>1</Z>
|
|
</Vector3>
|
|
</Properties>
|
|
<Item class="SpecialMesh" referent="RBX452">
|
|
<Properties>
|
|
<token name="LODX">2</token>
|
|
<token name="LODY">2</token>
|
|
<Content name="MeshId"><null></null></Content>
|
|
<token name="MeshType">0</token>
|
|
<string name="Name">Mesh</string>
|
|
<Vector3 name="Offset">
|
|
<X>0</X>
|
|
<Y>0</Y>
|
|
<Z>0</Z>
|
|
</Vector3>
|
|
<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>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="Decal" referent="RBX453">
|
|
<Properties>
|
|
<token name="Face">5</token>
|
|
<string name="Name">face</string>
|
|
<float name="Shiny">20</float>
|
|
<float name="Specular">0</float>
|
|
<Content name="Texture"><null></null></Content>
|
|
<float name="Transparency">0</float>
|
|
</Properties>
|
|
</Item>
|
|
</Item>
|
|
<Item class="Part" referent="RBX454">
|
|
<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>19.4990921</X>
|
|
<Y>29.3050842</Y>
|
|
<Z>-12.5689545</Z>
|
|
<R00>1.49011612e-008</R00>
|
|
<R01>0</R01>
|
|
<R02>-0.999999881</R02>
|
|
<R10>1.49011612e-008</R10>
|
|
<R11>-0.99999994</R11>
|
|
<R12>0</R12>
|
|
<R20>-0.99999994</R20>
|
|
<R21>1.49011612e-008</R21>
|
|
<R22>1.49011612e-008</R22>
|
|
</CoordinateFrame>
|
|
<bool name="CanCollide">true</bool>
|
|
<float name="Elasticity">0.5</float>
|
|
<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>
|
|
<token name="Material">256</token>
|
|
<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>4.07127958e-025</X>
|
|
<Y>3.33696291e-022</Y>
|
|
<Z>6.94702468e-025</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>3.64798347e-020</X>
|
|
<Y>0.00686328812</Y>
|
|
<Z>3.64324075e-020</Z>
|
|
</Vector3>
|
|
<token name="formFactorRaw">0</token>
|
|
<token name="shape">1</token>
|
|
<Vector3 name="size">
|
|
<X>2</X>
|
|
<Y>2</Y>
|
|
<Z>1</Z>
|
|
</Vector3>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="Part" referent="RBX455">
|
|
<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>19.4990921</X>
|
|
<Y>31.3050842</Y>
|
|
<Z>-12.0689545</Z>
|
|
<R00>1.49011612e-008</R00>
|
|
<R01>0</R01>
|
|
<R02>-0.999999881</R02>
|
|
<R10>1.49011612e-008</R10>
|
|
<R11>-0.99999994</R11>
|
|
<R12>0</R12>
|
|
<R20>-0.99999994</R20>
|
|
<R21>1.49011612e-008</R21>
|
|
<R22>1.49011612e-008</R22>
|
|
</CoordinateFrame>
|
|
<bool name="CanCollide">false</bool>
|
|
<float name="Elasticity">0.5</float>
|
|
<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>
|
|
<token name="Material">256</token>
|
|
<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>4.07127958e-025</X>
|
|
<Y>3.33696291e-022</Y>
|
|
<Z>6.94702468e-025</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>3.66452934e-020</X>
|
|
<Y>0.00686328812</Y>
|
|
<Z>3.64332218e-020</Z>
|
|
</Vector3>
|
|
<token name="formFactorRaw">0</token>
|
|
<token name="shape">1</token>
|
|
<Vector3 name="size">
|
|
<X>1</X>
|
|
<Y>2</Y>
|
|
<Z>1</Z>
|
|
</Vector3>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="Part" referent="RBX456">
|
|
<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>19.4990921</X>
|
|
<Y>31.3050842</Y>
|
|
<Z>-13.0689545</Z>
|
|
<R00>1.49011612e-008</R00>
|
|
<R01>0</R01>
|
|
<R02>-0.999999881</R02>
|
|
<R10>1.49011612e-008</R10>
|
|
<R11>-0.99999994</R11>
|
|
<R12>0</R12>
|
|
<R20>-0.99999994</R20>
|
|
<R21>1.49011612e-008</R21>
|
|
<R22>1.49011612e-008</R22>
|
|
</CoordinateFrame>
|
|
<bool name="CanCollide">false</bool>
|
|
<float name="Elasticity">0.5</float>
|
|
<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>
|
|
<token name="Material">256</token>
|
|
<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>4.07127958e-025</X>
|
|
<Y>3.33696291e-022</Y>
|
|
<Z>6.94702468e-025</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>3.63115971e-020</X>
|
|
<Y>0.00686328812</Y>
|
|
<Z>3.64332218e-020</Z>
|
|
</Vector3>
|
|
<token name="formFactorRaw">0</token>
|
|
<token name="shape">1</token>
|
|
<Vector3 name="size">
|
|
<X>1</X>
|
|
<Y>2</Y>
|
|
<Z>1</Z>
|
|
</Vector3>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="Humanoid" referent="RBX457">
|
|
<Properties>
|
|
<float name="Health">100</float>
|
|
<float name="MaxHealth">100</float>
|
|
<string name="Name">Humanoid</string>
|
|
<token name="NameOcclusion">0</token>
|
|
<float name="WalkSpeed">16</float>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="Part" referent="RBX458">
|
|
<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">29</int>
|
|
<CoordinateFrame name="CFrame">
|
|
<X>19.9990921</X>
|
|
<Y>28.8050842</Y>
|
|
<Z>-11.0689545</Z>
|
|
<R00>0.999999881</R00>
|
|
<R01>0</R01>
|
|
<R02>1.49011612e-008</R02>
|
|
<R10>0</R10>
|
|
<R11>-0.99999994</R11>
|
|
<R12>1.49011612e-008</R12>
|
|
<R20>-1.49011612e-008</R20>
|
|
<R21>1.49011612e-008</R21>
|
|
<R22>-0.99999994</R22>
|
|
</CoordinateFrame>
|
|
<bool name="CanCollide">true</bool>
|
|
<float name="Elasticity">0.5</float>
|
|
<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>
|
|
<token name="Material">256</token>
|
|
<string name="Name">zarm</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>4.07127958e-025</X>
|
|
<Y>3.33696291e-022</Y>
|
|
<Z>6.94702468e-025</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>3.69807249e-020</X>
|
|
<Y>0.00686328812</Y>
|
|
<Z>3.62653558e-020</Z>
|
|
</Vector3>
|
|
<token name="formFactorRaw">0</token>
|
|
<token name="shape">1</token>
|
|
<Vector3 name="size">
|
|
<X>2</X>
|
|
<Y>1</Y>
|
|
<Z>1</Z>
|
|
</Vector3>
|
|
</Properties>
|
|
<Item class="Script" referent="RBX459">
|
|
<Properties>
|
|
<bool name="Disabled">false</bool>
|
|
<Content name="LinkedSource"><null></null></Content>
|
|
<string name="Name">Script</string>
|
|
<ProtectedString name="Source">wait(1)
|
|
owner=script.Parent.Parent.Name
|
|
|
|
function onTouched(part)
|
|
	if part.Parent ~= nil then
|
|
		local h = part.Parent:findFirstChild("Humanoid")
|
|
			if h~=nil then
|
|
				if cantouch~=0 then
|
|
					if h.Parent.Name~=owner then
|
|
						
|
|
						if h.Parent:findFirstChild("zarm")~=nil then return end
|
|
|
|
						cantouch=0
|
|
|
|
						local larm=h.Parent:findFirstChild("Left Arm")
|
|
						local rarm=h.Parent:findFirstChild("Right Arm")
|
|
						
|
|
						if larm~=nil then
|
|
							larm:remove()
|
|
						end
|
|
						if rarm~=nil then
|
|
							rarm:remove()
|
|
						end
|
|
						local zee=script.Parent.Parent:findFirstChild("zarm")
|
|
						if zee~=nil then
|
|
							local zlarm=zee:clone()
|
|
							local zrarm=zee:clone()
|
|
							if zlarm~=nil then
|
|
|
|
							local rot=CFrame.new(0, 0, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
|
|
								zlarm.CFrame=h.Parent.Torso.CFrame * CFrame.new(Vector3.new(-1.5,0.5,-0.5)) * rot
|
|
								zrarm.CFrame=h.Parent.Torso.CFrame * CFrame.new(Vector3.new(1.5,0.5,-0.5)) * rot
|
|
								zlarm.Parent=h.Parent
|
|
								zrarm.Parent=h.Parent
|
|
								zlarm:makeJoints()
|
|
								zrarm:makeJoints()
|
|
								zlarm.Anchored=false
|
|
								zrarm.Anchored=false
|
|
								wait(0.1)
|
|
								h.Parent.Head.Color=zee.Color
|
|
							else print("no zee"); return end
|
|
						end
|
|
						wait(1)
|
|
						cantouch=1
|
|
					end
|
|
				end
|
|
			end
|
|
	end
|
|
end
|
|
|
|
script.Parent.Touched:connect(onTouched)</ProtectedString>
|
|
</Properties>
|
|
</Item>
|
|
</Item>
|
|
<Item class="Part" referent="RBX460">
|
|
<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">29</int>
|
|
<CoordinateFrame name="CFrame">
|
|
<X>19.9990921</X>
|
|
<Y>28.8050842</Y>
|
|
<Z>-14.0689545</Z>
|
|
<R00>0.999999881</R00>
|
|
<R01>0</R01>
|
|
<R02>1.49011612e-008</R02>
|
|
<R10>0</R10>
|
|
<R11>-0.99999994</R11>
|
|
<R12>1.49011612e-008</R12>
|
|
<R20>-1.49011612e-008</R20>
|
|
<R21>1.49011612e-008</R21>
|
|
<R22>-0.99999994</R22>
|
|
</CoordinateFrame>
|
|
<bool name="CanCollide">true</bool>
|
|
<float name="Elasticity">0.5</float>
|
|
<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>
|
|
<token name="Material">256</token>
|
|
<string name="Name">zarm</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>4.07127958e-025</X>
|
|
<Y>3.33696291e-022</Y>
|
|
<Z>6.94702468e-025</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>3.5979636e-020</X>
|
|
<Y>0.00686328812</Y>
|
|
<Z>3.62653558e-020</Z>
|
|
</Vector3>
|
|
<token name="formFactorRaw">0</token>
|
|
<token name="shape">1</token>
|
|
<Vector3 name="size">
|
|
<X>2</X>
|
|
<Y>1</Y>
|
|
<Z>1</Z>
|
|
</Vector3>
|
|
</Properties>
|
|
<Item class="Script" referent="RBX461">
|
|
<Properties>
|
|
<bool name="Disabled">false</bool>
|
|
<Content name="LinkedSource"><null></null></Content>
|
|
<string name="Name">Script</string>
|
|
<ProtectedString name="Source">wait(1)
|
|
owner=script.Parent.Parent.Name
|
|
|
|
function onTouched(part)
|
|
	if part.Parent ~= nil then
|
|
		local h = part.Parent:findFirstChild("Humanoid")
|
|
			if h~=nil then
|
|
				if cantouch~=0 then
|
|
					if h.Parent.Name~=owner then
|
|
						
|
|
						if h.Parent:findFirstChild("zarm")~=nil then return end
|
|
|
|
						cantouch=0
|
|
|
|
						local larm=h.Parent:findFirstChild("Left Arm")
|
|
						local rarm=h.Parent:findFirstChild("Right Arm")
|
|
						
|
|
						if larm~=nil then
|
|
							larm:remove()
|
|
						end
|
|
						if rarm~=nil then
|
|
							rarm:remove()
|
|
						end
|
|
						local zee=script.Parent.Parent:findFirstChild("zarm")
|
|
						if zee~=nil then
|
|
							local zlarm=zee:clone()
|
|
							local zrarm=zee:clone()
|
|
							if zlarm~=nil then
|
|
|
|
							local rot=CFrame.new(0, 0, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
|
|
								zlarm.CFrame=h.Parent.Torso.CFrame * CFrame.new(Vector3.new(-1.5,0.5,-0.5)) * rot
|
|
								zrarm.CFrame=h.Parent.Torso.CFrame * CFrame.new(Vector3.new(1.5,0.5,-0.5)) * rot
|
|
								zlarm.Parent=h.Parent
|
|
								zrarm.Parent=h.Parent
|
|
								zlarm:makeJoints()
|
|
								zrarm:makeJoints()
|
|
								zlarm.Anchored=false
|
|
								zrarm.Anchored=false
|
|
								wait(0.1)
|
|
								h.Parent.Head.Color=zee.Color
|
|
							else print("no zee"); return end
|
|
						end
|
|
						wait(1)
|
|
						cantouch=1
|
|
					end
|
|
				end
|
|
			end
|
|
	end
|
|
end
|
|
|
|
script.Parent.Touched:connect(onTouched)</ProtectedString>
|
|
</Properties>
|
|
</Item>
|
|
</Item>
|
|
<Item class="ObjectValue" referent="RBX462">
|
|
<Properties>
|
|
<string name="Name">IsNZ</string>
|
|
<Ref name="Value">null</Ref>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="IntValue" referent="RBX463">
|
|
<Properties>
|
|
<string name="Name">Mode</string>
|
|
<int name="Value">0</int>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="Script" referent="RBX464">
|
|
<Properties>
|
|
<bool name="Disabled">false</bool>
|
|
<Content name="LinkedSource"><null></null></Content>
|
|
<string name="Name">Script</string>
|
|
<ProtectedString name="Source">local larm = script.Parent:FindFirstChild("Left Arm")
|
|
local rarm = script.Parent:FindFirstChild("Right Arm")
|
|
|
|
function findNearestTorso(pos)
|
|
	local list = game.Workspace:children()
|
|
	local torso = nil
|
|
	local dist = 1000
|
|
	local temp = nil
|
|
	local human = nil
|
|
	local temp2 = nil
|
|
	for x = 1, #list do
|
|
		temp2 = list[x]
|
|
		if (temp2.className == "Model") and (temp2 ~= script.Parent) then
|
|
			temp = temp2:findFirstChild("Right Arm")
|
|
			human = temp2:findFirstChild("Humanoid")
|
|
			if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then
|
|
				if (temp.Position - pos).magnitude < dist then
|
|
					torso = temp
|
|
					dist = (temp.Position - pos).magnitude
|
|
				end
|
|
			end
|
|
		end
|
|
	end
|
|
	return torso
|
|
end
|
|
|
|
|
|
|
|
|
|
while true do
|
|
	wait(math.random(1,5))
|
|
	local target = findNearestTorso(script.Parent.Torso.Position)
|
|
	if target ~= nil then
|
|
		script.Parent.Humanoid:MoveTo(target.Position, target)
|
|
	end
|
|
|
|
end
|
|
</ProtectedString>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="Script" referent="RBX465">
|
|
<Properties>
|
|
<bool name="Disabled">false</bool>
|
|
<Content name="LinkedSource"><null></null></Content>
|
|
<string name="Name">Health</string>
|
|
<ProtectedString name="Source">function waitForChild(parent, childName)
|
|
	while true do
|
|
		local child = parent:findFirstChild(childName)
|
|
		if child then
|
|
			return child
|
|
		end
|
|
		parent.ChildAdded:wait()
|
|
	end
|
|
end
|
|
|
|
-- declarations
|
|
|
|
local Figure = script.Parent
|
|
local Head = waitForChild(Figure, "Head")
|
|
local Humanoid = waitForChild(Figure, "Humanoid")
|
|
Humanoid.Health=500
|
|
-- regeneration
|
|
while true do
|
|
	local s = wait(4)
|
|
	local health = Humanoid.Health
|
|
	if health > 0 and health < Humanoid.MaxHealth then
|
|
		health = health + 0.08 * s * Humanoid.MaxHealth
|
|
		if health * 1.05 < Humanoid.MaxHealth then
|
|
			Humanoid.Health = health
|
|
		else
|
|
			Humanoid.Health = Humanoid.MaxHealth
|
|
		end
|
|
	end
|
|
end
|
|
</ProtectedString>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="Script" referent="RBX466">
|
|
<Properties>
|
|
<bool name="Disabled">false</bool>
|
|
<Content name="LinkedSource"><null></null></Content>
|
|
<string name="Name">Respawn</string>
|
|
<ProtectedString name="Source">name="Humanoid"
|
|
|
|
robo=script.Parent:clone()
|
|
|
|
while true do
|
|
	wait(1)
|
|
	if script.Parent.Humanoid.Health<1 then
|
|
		robot=robo:clone()
|
|
		robot.Parent=script.Parent.Parent
|
|
		robot:makeJoints()
|
|
		script.Parent:remove()
|
|
	end
|
|
end
|
|
		
|
|
|
|
|
|
</ProtectedString>
|
|
</Properties>
|
|
</Item>
|
|
</Item>
|
|
</Item>
|
|
<Item class="WedgePart" referent="RBX467">
|
|
<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>21</X>
|
|
<Y>8.40000057</Y>
|
|
<Z>-61.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">true</bool>
|
|
<float name="Elasticity">0.5</float>
|
|
<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>
|
|
<token name="Material">256</token>
|
|
<string name="Name">Wedge</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>
|
|
<token name="formFactorRaw">1</token>
|
|
<Vector3 name="size">
|
|
<X>58</X>
|
|
<Y>8.40000057</Y>
|
|
<Z>5</Z>
|
|
</Vector3>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="WedgePart" referent="RBX468">
|
|
<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.5</X>
|
|
<Y>8.40000057</Y>
|
|
<Z>-26</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>
|
|
<float name="Elasticity">0.5</float>
|
|
<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>
|
|
<token name="Material">256</token>
|
|
<string name="Name">Wedge</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>
|
|
<token name="formFactorRaw">1</token>
|
|
<Vector3 name="size">
|
|
<X>66</X>
|
|
<Y>8.40000057</Y>
|
|
<Z>5</Z>
|
|
</Vector3>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="WedgePart" referent="RBX469">
|
|
<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>-10.5</X>
|
|
<Y>8.40000057</Y>
|
|
<Z>-27</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>
|
|
<float name="Elasticity">0.5</float>
|
|
<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>
|
|
<token name="Material">256</token>
|
|
<string name="Name">Wedge</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>
|
|
<token name="formFactorRaw">1</token>
|
|
<Vector3 name="size">
|
|
<X>70</X>
|
|
<Y>8.40000057</Y>
|
|
<Z>5</Z>
|
|
</Vector3>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="Part" referent="RBX470">
|
|
<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>21</X>
|
|
<Y>3.60000014</Y>
|
|
<Z>-27.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">true</bool>
|
|
<float name="Elasticity">0.5</float>
|
|
<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>
|
|
<token name="Material">256</token>
|
|
<string name="Name">Part</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>
|
|
<token name="formFactorRaw">1</token>
|
|
<token name="shape">1</token>
|
|
<Vector3 name="size">
|
|
<X>62</X>
|
|
<Y>1.20000005</Y>
|
|
<Z>71</Z>
|
|
</Vector3>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="FunctionalTest" referent="RBX471">
|
|
<Properties>
|
|
<string name="Description">?</string>
|
|
<bool name="HasMigratedSettingsToTestService">false</bool>
|
|
<string name="Name">ZombieFall</string>
|
|
</Properties>
|
|
<Item class="Script" referent="RBX472">
|
|
<Properties>
|
|
<bool name="Disabled">false</bool>
|
|
<Content name="LinkedSource"><null></null></Content>
|
|
<string name="Name">Script</string>
|
|
<ProtectedString name="Source">start = tick()
|
|
r = game:service("RunService")
|
|
t = r.Stepped:wait()
|
|
|
|
while t < 5 do
|
|
	t = r.Stepped:wait()
|
|
end
|
|
|
|
stop = tick() - start
|
|
print(script.Parent.Name .. " passed in " .. stop .. " seconds.")
|
|
script.Parent:Passed(script.Parent.Name .. " passed in " .. stop .. " seconds.")
|
|
</ProtectedString>
|
|
</Properties>
|
|
</Item>
|
|
</Item>
|
|
</Item>
|
|
<Item class="StarterPack" referent="RBX473">
|
|
<Properties>
|
|
<string name="Name">StarterPack</string>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="StarterGui" referent="RBX474">
|
|
<Properties>
|
|
<string name="Name">StarterGui</string>
|
|
<bool name="ShowDevelopmentGui">true</bool>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="SoundService" referent="RBX475">
|
|
<Properties>
|
|
<token name="AmbientReverb">0</token>
|
|
<float name="DistanceFactor">10</float>
|
|
<float name="DopplerScale">1</float>
|
|
<string name="Name">Soundscape</string>
|
|
<float name="RolloffScale">1</float>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="CollectionService" referent="RBX476">
|
|
<Properties>
|
|
<string name="Name">CollectionService</string>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="PhysicsService" referent="RBX477">
|
|
<Properties>
|
|
<string name="Name">PhysicsService</string>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="BadgeService" referent="RBX478">
|
|
<Properties>
|
|
<string name="Name">BadgeService</string>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="Geometry" referent="RBX479">
|
|
<Properties>
|
|
<string name="Name">Geometry</string>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="RenderHooksService" referent="RBX480">
|
|
<Properties>
|
|
<string name="Name">RenderHooksService</string>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="SocialService" referent="RBX481">
|
|
<Properties>
|
|
<string name="Name">SocialService</string>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="Debris" referent="RBX482">
|
|
<Properties>
|
|
<int name="MaxItems">1000</int>
|
|
<string name="Name">Debris</string>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="TimerService" referent="RBX483">
|
|
<Properties>
|
|
<string name="Name">Instance</string>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="ScriptInformationProvider" referent="RBX484">
|
|
<Properties>
|
|
<string name="Name">Instance</string>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="CookiesService" referent="RBX485">
|
|
<Properties>
|
|
<string name="Name">CookiesService</string>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="TeleportService" referent="RBX486">
|
|
<Properties>
|
|
<string name="Name">Teleport Service</string>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="Players" referent="RBX487">
|
|
<Properties>
|
|
<string name="Name">Players</string>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="Selection" referent="RBX488">
|
|
<Properties>
|
|
<string name="Name">Selection</string>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="TestService" referent="RBX489">
|
|
<Properties>
|
|
<bool name="AutoRuns">true</bool>
|
|
<string name="Description"></string>
|
|
<bool name="Is30FpsThrottleEnabled">false</bool>
|
|
<bool name="IsPhysicsEnvironmentalThrottled">false</bool>
|
|
<bool name="IsSleepAllowed">true</bool>
|
|
<string name="Name">TestService</string>
|
|
<double name="Timeout">10</double>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="Lighting" referent="RBX490">
|
|
<Properties>
|
|
<Color3 name="Ambient">4286808963</Color3>
|
|
<float name="Brightness">1</float>
|
|
<Color3 name="ColorShift_Bottom">4278190080</Color3>
|
|
<Color3 name="ColorShift_Top">4278190080</Color3>
|
|
<Color3 name="FogColor">4290822336</Color3>
|
|
<float name="FogEnd">100000</float>
|
|
<float name="FogStart">0</float>
|
|
<float name="GeographicLatitude">41.7332993</float>
|
|
<string name="Name">Lighting</string>
|
|
<Color3 name="ShadowColor">4290164411</Color3>
|
|
<string name="TimeOfDay">14:00:00</string>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="ChangeHistoryService" referent="RBX491">
|
|
<Properties>
|
|
<string name="Name">ChangeHistoryService</string>
|
|
</Properties>
|
|
</Item>
|
|
</roblox> |