Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --SazErenos
- SFX={}
- --SFX
- --Bigcannon
- SFX["BigCN"]=155270859
- --Building
- SFX["BuildStart"]=155270863
- SFX["Build"]=155270864
- --Cannons
- SFX["CN1"]=155270865
- SFX["CN2"]=155270866
- SFX["CN3"]=155270870
- --Machineguns
- SFX["MG1"]=155270872
- SFX["MG2"]=155270877
- SFX["MG3"]=155270881
- --VOICESET 2
- --Order
- SFX["VS2Order1"]=155270886
- SFX["VS2Order2"]=155270890
- SFX["VS2Order3"]=155270893
- SFX["VS2Order4"]=155270900
- SFX["VS2Order5"]=155270904
- --Selected
- SFX["VS2Select1"]=155270915
- SFX["VS2Select2"]=155270909
- SFX["VS2Select3"]=155270923
- --VOICESET 3
- --Order
- SFX["VS3Order1"]=155270930
- SFX["VS3Order2"]=155270931
- SFX["VS3Order3"]=155270935
- SFX["VS3Order4"]=155270935
- SFX["VS3Order5"]=155270937
- SFX["VS3Order6"]=155270944
- SFX["VS3Order7"]=155270948
- --Selected
- SFX["VS3Select1"]=155270950
- SFX["VS3Select2"]=155270952
- SFX["VS3Select3"]=155270958
- SFX["VS3Select4"]=155270964
- --VOICESET 1
- --Order
- SFX["VS1Order1"]=155270969
- SFX["VS1Order2"]=155270973
- --Selected
- SFX["VS1Select1"]=155270978
- SFX["VS1Select2"]=155270981
- --ANNOUNCER
- SFX["ABombReady"]=155310725
- SFX["UnitCannotBuildFull"]=155310751
- SFX["UnitBuild"]=155310735
- SFX["UnitBuildComplete"]=155314074
- SFX["TrainingUnit"]=155314097
- SFX["AlreadyBuildingUnitType"]=155314120
- SFX["UnitTypeFull"]=155314142
- SFX["UnitLost"]=155314158
- SFX["BadZone"]=155314170
- SFX["UnitReady"]=155314195
- EnergyAvailable=100
- MaxEnergy=1000
- BaseUnitBuildTime=2.5
- MinimumUnitBuildTime=1
- Units={}
- ScrubColor=BrickColor.new("Bright red")
- --Vehicles
- Units["LightTank"]={}
- Units["LightTank"]["EnergyCost"]=8
- Units["LightTank"]["MaxUnits"]=10
- Units["LightTank"]["BuildTime"]=4
- Units["LightTank"]["Model"]=function()
- Model=Instance.new("Model")
- Model.Name="LightTank" p=Instance.new("Part")
- p.Name="Turret"
- p.formFactor="Custom"
- p.Size=Vector3.new(0.600000024, 0.600000024, 0.600000024)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Pastel Blue")
- p.CFrame=CFrame.new(-38.5000076, 0.689999998, 23.6999931, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- p.BottomSurface=0
- p.TopSurface=0
- kl=Instance.new("SpecialMesh")
- kl.Scale=Vector3.new(0.699999988, 0.699999988, 0.699999988)
- kl.Parent=p
- kl.MeshType="Sphere" p.Parent=Model p=Instance.new("Part")
- p.Name="Part"
- p.formFactor="Custom"
- p.Size=Vector3.new(0.200000003, 0.200000003, 0.800000012)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Black")
- p.CFrame=CFrame.new(-38.7000046, 0.300000191, 23.6000042, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- p.BottomSurface=0
- p.TopSurface=0
- p.Parent=Model p=Instance.new("Part")
- p.Name="Part"
- p.formFactor="Custom"
- p.Size=Vector3.new(0.600000024, 0.299999952, 1)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Pastel Blue")
- p.CFrame=CFrame.new(-38.5000038, 0.549791098, 23.7000008, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- p.BottomSurface=0
- p.TopSurface=0
- kl=Instance.new("BlockMesh")
- kl.Scale=Vector3.new(1, 1, 1)
- kl.Parent=p
- p.Parent=Model p=Instance.new("Part")
- p.Name="Part"
- p.formFactor="Custom"
- p.Size=Vector3.new(0.200000003, 0.200000003, 0.800000012)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Black")
- p.CFrame=CFrame.new(-38.2999268, 0.290130138, 23.6000023, 0.99999994, 0.000261920795, 1.16415322e-010, -0.000261920795, 0.99999994, 2.91038305e-011, -1.16415322e-010, -2.91038305e-011, 1)
- p.BottomSurface=0
- p.TopSurface=0
- p.Parent=Model p=Instance.new("WedgePart")
- p.Name="Wedge"
- p.formFactor="Custom"
- p.Size=Vector3.new(0.600000024, 0.289999992, 0.200000033)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Pastel Blue")
- p.CFrame=CFrame.new(-38.4999962, 0.544999838, 23.0999985, 0.999999881, 0, 0, 0, 0.999999881, 2.98023224e-008, 0, -2.98023224e-008, 0.999999881)
- p.BottomSurface=0
- p.TopSurface=0
- p.Parent=Model p=Instance.new("WedgePart")
- p.Name="Wedge"
- p.formFactor="Custom"
- p.Size=Vector3.new(0.200000003, 0.200000003, 0.200000033)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Black")
- p.CFrame=CFrame.new(-38.7000046, 0.300000191, 23.1000042, -0.99999994, 0.000261920795, -1.16415322e-010, -0.000261920795, -0.99999994, -2.91038305e-011, -1.16415322e-010, -2.91038305e-011, 1)
- p.BottomSurface=0
- p.TopSurface=0
- p.Parent=Model p=Instance.new("WedgePart")
- p.Name="Wedge"
- p.formFactor="Custom"
- p.Size=Vector3.new(0.200000003, 0.200000003, 0.200000003)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Black")
- p.CFrame=CFrame.new(-38.7000046, 0.300000191, 24.1000042, 0.999999762, 0.000575949438, 0.000295014906, 0.000575689133, -0.999999464, 0.000881543267, 0.000295522477, -0.0008813733, -0.999999583)
- p.BottomSurface=0
- p.TopSurface=0
- p.Parent=Model p=Instance.new("Part")
- p.Name="Gun"
- p.formFactor="Custom"
- p.Size=Vector3.new(0.200000003, 0.400000006, 0.200000003)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Black")
- p.CFrame=CFrame.new(-38.4999847, 0.759999156, 23.4000015, 1, 0, 0, 0, 0, 1, 0, -1, -4.37113883e-008)
- p.BottomSurface=0
- p.TopSurface=0
- kl=Instance.new("CylinderMesh")
- kl.Scale=Vector3.new(0.300000012, 1, 0.300000012)
- kl.Parent=p
- p.Parent=Model p=Instance.new("WedgePart")
- p.Name="Wedge"
- p.formFactor="Custom"
- p.Size=Vector3.new(0.200000003, 0.200000003, 0.200000033)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Black")
- p.CFrame=CFrame.new(-38.3001823, 0.289672852, 23.1002007, -1, 0, 0, 0, -1, 0, 0, 0, 1)
- p.BottomSurface=0
- p.TopSurface=0
- p.Parent=Model p=Instance.new("WedgePart")
- p.Name="Wedge"
- p.formFactor="Custom"
- p.Size=Vector3.new(0.200000003, 0.200000003, 0.200000003)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Black")
- p.CFrame=CFrame.new(-38.2999458, 0.29003191, 24.0998516, 0.999999881, 0.000314028788, 0.0002952457, 0.000313768425, -0.999999583, 0.000881465967, 0.000295522361, -0.0008813733, -0.999999583)
- p.BottomSurface=0
- p.TopSurface=0
- p.Parent=Model
- return Model
- end
- Units["LightTank"]["Attack"]=function(Unit,Object,Location)
- Dist=(Unit.Centroid.Position-(Object:FindFirstChild("Torso").Position-Vector3.new(0,2,0))).magnitude
- AttackDist=6
- if Dist>AttackDist then
- UnitMoveTo(Unit,Object.Torso.Position,"NOE")
- unitmove(Unit)
- else
- unitstop(Unit)
- if Unit:FindFirstChild("Cooldown")==nil then
- PlaySound("CN3",1,Unit.Centroid,"PEW")
- Object.Humanoid:TakeDamage(5)
- t=Instance.new("IntValue")
- t.Name="Cooldown"
- t.Value=34
- t.Parent=Unit
- coroutine.resume(coroutine.create(function(Unit)
- flash=Instance.new("Part")
- flash.Name="PEWPEW"
- flash.TopSurface=0
- flash.BottomSurface=0
- flash.BrickColor=BrickColor:Yellow()
- flash.formFactor="Custom"
- flash.Size=Vector3.new(.2,.2,.2)
- mm=Instance.new("SpecialMesh")
- mm.MeshType="Sphere"
- mm.Scale=Vector3.new(.7,.7,.7)
- mm.Parent=flash
- flash.Parent=Unit
- w=Instance.new("Weld")
- w.Part0=Unit.Gun
- w.Part1=flash
- w.C0=CFrame.new(0,.25,0)
- w.Parent=flash
- game:GetService("Debris"):AddItem(flash,.12)
- end),Unit)
- else
- Unit.Cooldown.Value=Unit.Cooldown.Value-1
- if Unit.Cooldown.Value<=-1 then
- Unit.Cooldown:Destroy()
- end
- end
- end
- end
- Units["LightTank"]["Requires"]={"WarFactory"}
- Units["LightTank"]["Speed"]=14
- Units["MediumTank"]={}
- Units["MediumTank"]["EnergyCost"]=12
- Units["MediumTank"]["Speed"]=9
- Units["MediumTank"]["MaxUnits"]=8
- Units["MediumTank"]["BuildTime"]=6
- Units["MediumTank"]["Model"]=function()
- Model=Instance.new("Model")
- Model.Name="MediumTank" p=Instance.new("Part")
- p.Name="Part"
- p.formFactor="Custom"
- p.Size=Vector3.new(0.200000003, 0.200000003, 0.800000012)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Black")
- p.CFrame=CFrame.new(-40.6999931, 0.290000081, 23.3999996, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- p.BottomSurface=0
- p.TopSurface=0
- p.Parent=Model p=Instance.new("Part")
- p.Name="Turret"
- p.formFactor="Custom"
- p.Size=Vector3.new(0.800000012, 0.600000024, 0.800000012)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Pastel Blue")
- p.CFrame=CFrame.new(-40.4000015, 0.80000025, 23.3999996, 0.999999583, 0, -7.4505806e-008, 0, 1, 0, 7.4505806e-008, 0, 0.999999583)
- p.BottomSurface=0
- p.TopSurface=0
- kl=Instance.new("SpecialMesh")
- kl.Scale=Vector3.new(0.800000012, 1, 0.949999988)
- kl.Parent=p
- kl.MeshType="Sphere" p.Parent=Model p=Instance.new("WedgePart")
- p.Name="Part"
- p.formFactor="Custom"
- p.Size=Vector3.new(0.200000003, 0.200000003, 0.200000003)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Black")
- p.CFrame=CFrame.new(-40.6999931, 0.290000558, 22.9000015, -0.999999583, -5.1934741e-008, -2.36300401e-008, 9.78788606e-009, -0.999999404, 2.98023224e-007, -4.47034907e-008, 2.68220901e-007, 0.999999642)
- p.BottomSurface=0
- p.TopSurface=0
- p.Parent=Model p=Instance.new("WedgePart")
- p.Name="Part"
- p.formFactor="Custom"
- p.Size=Vector3.new(0.800000012, 0.200000003, 0.200000033)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Pastel Blue")
- p.CFrame=CFrame.new(-40.3999977, 0.690000117, 22.9000015, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- p.BottomSurface=0
- p.TopSurface=0
- p.Parent=Model p=Instance.new("WedgePart")
- p.Name="Part"
- p.formFactor="Custom"
- p.Size=Vector3.new(0.200000003, 0.200000003, 0.200000003)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Black")
- p.CFrame=CFrame.new(-40.6999931, 0.290000319, 23.8999996, 1, 0, 0, 0, -1, 0, 0, 0, -1)
- p.BottomSurface=0
- p.TopSurface=0
- p.Parent=Model p=Instance.new("Part")
- p.Name="Gun"
- p.formFactor="Custom"
- p.Size=Vector3.new(0.400000006, 0.849999785, 0.200000003)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Black")
- p.CFrame=CFrame.new(-40.3999977, 0.900000334, 22.9749851, 1, 0, -0, 0, 0, 1, 0, -1, 0)
- p.BottomSurface=0
- p.TopSurface=0
- kl=Instance.new("CylinderMesh")
- kl.Scale=Vector3.new(0.449999988, 1, 0.449999988)
- kl.Parent=p
- p.Parent=Model p=Instance.new("Part")
- p.Name="Part"
- p.formFactor="Custom"
- p.Size=Vector3.new(0.800000012, 0.200000003, 0.200000003)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Pastel Blue")
- p.CFrame=CFrame.new(-40.3999977, 0.490000367, 22.9000015, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- p.BottomSurface=0
- p.TopSurface=0
- kl=Instance.new("BlockMesh")
- kl.Scale=Vector3.new(1, 1, 1)
- kl.Parent=p
- p.Parent=Model p=Instance.new("Part")
- p.Name="Part"
- p.formFactor="Custom"
- p.Size=Vector3.new(0.800000012, 0.400000006, 1)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Pastel Blue")
- p.CFrame=CFrame.new(-40.4000015, 0.590000272, 23.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- p.BottomSurface=0
- p.TopSurface=0
- kl=Instance.new("BlockMesh")
- kl.Scale=Vector3.new(1, 1, 1)
- kl.Parent=p
- p.Parent=Model p=Instance.new("WedgePart")
- p.Name="Part"
- p.formFactor="Custom"
- p.Size=Vector3.new(0.800000012, 0.400000036, 0.200000003)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Pastel Blue")
- p.CFrame=CFrame.new(-40.4000092, 0.590000272, 24.1000023, 1, -0, -4.37113883e-008, 0, -1, 0, -4.37113883e-008, 0, -1)
- p.BottomSurface=0
- p.TopSurface=0
- p.Parent=Model p=Instance.new("Part")
- p.Name="Part"
- p.formFactor="Custom"
- p.Size=Vector3.new(0.200000003, 0.200000003, 0.800000012)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Black")
- p.CFrame=CFrame.new(-40.1000023, 0.290000081, 23.3999996, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- p.BottomSurface=0
- p.TopSurface=0
- p.Parent=Model p=Instance.new("WedgePart")
- p.Name="Part"
- p.formFactor="Custom"
- p.Size=Vector3.new(0.200000003, 0.200000003, 0.200000003)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Black")
- p.CFrame=CFrame.new(-40.1000023, 0.290000319, 23.8999996, 1, 0, 0, 0, -1, 0, 0, 0, -1)
- p.BottomSurface=0
- p.TopSurface=0
- p.Parent=Model p=Instance.new("WedgePart")
- p.Name="Part"
- p.formFactor="Custom"
- p.Size=Vector3.new(0.200000003, 0.200000003, 0.200000003)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Black")
- p.CFrame=CFrame.new(-40.0999947, 0.290000558, 22.9000015, -1, 0, 0, 0, -1, 0, 0, 0, 1)
- p.BottomSurface=0
- p.TopSurface=0
- p.Parent=Model
- return Model
- end
- Units["MediumTank"]["Attack"]=function(Unit,Object,Location)
- Dist=(Unit.Centroid.Position-(Object:FindFirstChild("Torso").Position-Vector3.new(0,2,0))).magnitude
- AttackDist=7.5
- if Dist>AttackDist then
- UnitMoveTo(Unit,Object.Torso.Position,"NOE")
- unitmove(Unit)
- else
- unitstop(Unit)
- if Unit:FindFirstChild("Cooldown")==nil then
- PlaySound("CN2",1,Unit.Centroid,"PEW")
- Object.Humanoid:TakeDamage(9)
- t=Instance.new("IntValue")
- t.Name="Cooldown"
- t.Value=45
- t.Parent=Unit
- coroutine.resume(coroutine.create(function(Unit)
- flash=Instance.new("Part")
- flash.Name="PEWPEW"
- flash.TopSurface=0
- flash.BottomSurface=0
- flash.BrickColor=BrickColor:Yellow()
- flash.formFactor="Custom"
- flash.Size=Vector3.new(.25,.25,.25)
- mm=Instance.new("SpecialMesh")
- mm.MeshType="Sphere"
- mm.Scale=Vector3.new(.7,.7,.7)
- mm.Parent=flash
- flash.Parent=Unit
- w=Instance.new("Weld")
- w.Part0=Unit.Gun
- w.Part1=flash
- w.C0=CFrame.new(0,.35,0)
- w.Parent=flash
- game:GetService("Debris"):AddItem(flash,.14)
- end),Unit)
- else
- Unit.Cooldown.Value=Unit.Cooldown.Value-1
- if Unit.Cooldown.Value<=-1 then
- Unit.Cooldown:Destroy()
- end
- end
- end
- end
- Units["MediumTank"]["Requires"]={"WarFactory"}
- Units["HeavyTank"]={}
- Units["HeavyTank"]["EnergyCost"]=20
- Units["HeavyTank"]["Speed"]=5
- Units["HeavyTank"]["MaxUnits"]=6
- Units["HeavyTank"]["BuildTime"]=10
- Units["HeavyTank"]["Model"]=function()
- Model=Instance.new("Model")
- Model.Name="HeavyTank" p=Instance.new("Part")
- p.Name="Part"
- p.formFactor="Custom"
- p.Size=Vector3.new(0.200000003, 0.200000003, 1.4000001)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Black")
- p.CFrame=CFrame.new(-42.5499992, 0.290000796, 23.3000011, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- p.BottomSurface=0
- p.TopSurface=0
- p.Parent=Model p=Instance.new("Part")
- p.Name="Part"
- p.formFactor="Custom"
- p.Size=Vector3.new(0.400000036, 0.200000003, 0.400000006)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Black")
- p.CFrame=CFrame.new(-42.5499992, 0.390000701, 23.9999981, 0, 1, -0, -1, 0, 0, 0, 0, 1)
- p.BottomSurface=0
- p.TopSurface=0
- kl=Instance.new("CylinderMesh")
- kl.Scale=Vector3.new(1, 1, 1)
- kl.Parent=p
- p.Parent=Model p=Instance.new("Part")
- p.Name="Part"
- p.formFactor="Custom"
- p.Size=Vector3.new(0.200000003, 0.200000003, 1.4000001)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Black")
- p.CFrame=CFrame.new(-43.2500076, 0.300000072, 23.3000011, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- p.BottomSurface=0
- p.TopSurface=0
- p.Parent=Model p=Instance.new("Part")
- p.Name="Part"
- p.formFactor="Custom"
- p.Size=Vector3.new(0.400000036, 0.200000003, 0.400000006)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Black")
- p.CFrame=CFrame.new(-42.5499992, 0.390000701, 22.5999966, 0, 1, -0, -1, 0, 0, 0, 0, 1)
- p.BottomSurface=0
- p.TopSurface=0
- kl=Instance.new("CylinderMesh")
- kl.Scale=Vector3.new(1, 1, 1)
- kl.Parent=p
- p.Parent=Model p=Instance.new("Part")
- p.Name="Gun1"
- p.formFactor="Custom"
- p.Size=Vector3.new(0.400000006, 0.849999785, 0.200000003)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Black")
- p.CFrame=CFrame.new(-43.0000076, 0.909998894, 22.6150017, 1, 0, -0, 0, 0, 1, 0, -1, 0)
- p.BottomSurface=0
- p.TopSurface=0
- kl=Instance.new("CylinderMesh")
- kl.Scale=Vector3.new(0.449999988, 1, 0.449999988)
- kl.Parent=p
- p.Parent=Model p=Instance.new("Part")
- p.Name="Part"
- p.formFactor="Custom"
- p.Size=Vector3.new(1, 0.200000003, 1.80000019)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Pastel Blue")
- p.CFrame=CFrame.new(-42.8999977, 0.490000546, 23.2999992, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- p.BottomSurface=0
- p.TopSurface=0
- kl=Instance.new("BlockMesh")
- kl.Scale=Vector3.new(1, 1, 1)
- kl.Parent=p
- p.Parent=Model p=Instance.new("Part")
- p.Name="Part"
- p.formFactor="Custom"
- p.Size=Vector3.new(0.400000036, 0.200000003, 0.400000006)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Black")
- p.CFrame=CFrame.new(-43.2499962, 0.399998069, 24.0000114, 0, 1, -0, -1, 0, 0, 0, 0, 1)
- p.BottomSurface=0
- p.TopSurface=0
- kl=Instance.new("CylinderMesh")
- kl.Scale=Vector3.new(1, 1, 1)
- kl.Parent=p
- p.Parent=Model p=Instance.new("Part")
- p.Name="Part"
- p.formFactor="Custom"
- p.Size=Vector3.new(1, 0.200000033, 1.4000001)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Pastel Blue")
- p.CFrame=CFrame.new(-42.9000015, 0.68999958, 23.5000038, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- p.BottomSurface=0
- p.TopSurface=0
- kl=Instance.new("BlockMesh")
- kl.Scale=Vector3.new(1, 1, 1)
- kl.Parent=p
- p.Parent=Model p=Instance.new("Part")
- p.Name="Turret"
- p.formFactor="Custom"
- p.Size=Vector3.new(1, 0.600000024, 1)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Pastel Blue")
- p.CFrame=CFrame.new(-42.9000053, 0.769998848, 23.340004, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- p.BottomSurface=0
- p.TopSurface=0
- kl=Instance.new("SpecialMesh")
- kl.Scale=Vector3.new(1, 1, 1)
- kl.Parent=p
- kl.MeshType="Sphere" p.Parent=Model p=Instance.new("Part")
- p.Name="Gun2"
- p.formFactor="Custom"
- p.Size=Vector3.new(0.400000006, 0.849999785, 0.200000003)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Black")
- p.CFrame=CFrame.new(-42.8000069, 0.910000026, 22.6149998, 1, 0, -0, 0, 0, 1, 0, -1, 0)
- p.BottomSurface=0
- p.TopSurface=0
- kl=Instance.new("CylinderMesh")
- kl.Scale=Vector3.new(0.449999988, 1, 0.449999988)
- kl.Parent=p
- p.Parent=Model p=Instance.new("Part")
- p.Name="Part"
- p.formFactor="Custom"
- p.Size=Vector3.new(0.400000036, 0.200000003, 0.400000006)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Black")
- p.CFrame=CFrame.new(-43.2499962, 0.399998069, 22.600008, 0, 1, -0, -1, 0, 0, 0, 0, 1)
- p.BottomSurface=0
- p.TopSurface=0
- kl=Instance.new("CylinderMesh")
- kl.Scale=Vector3.new(1, 1, 1)
- kl.Parent=p
- p.Parent=Model p=Instance.new("WedgePart")
- p.Name="Wedge"
- p.formFactor="Custom"
- p.Size=Vector3.new(0.600000024, 0.200000003, 0.600000024)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Pastel Blue")
- p.CFrame=CFrame.new(-42.9000015, 0.68999958, 22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- p.BottomSurface=0
- p.TopSurface=0
- p.Parent=Model p=Instance.new("WedgePart")
- p.Name="Wedge"
- p.formFactor="Custom"
- p.Size=Vector3.new(1, 0.200000003, 0.200000003)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Pastel Blue")
- p.CFrame=CFrame.new(-42.8999977, 0.490000546, 24.2999992, 0.999999285, 1.77635684e-015, 1.81058404e-008, -3.55271368e-015, -0.999999642, 1.03316012e-007, 1.81058439e-008, 4.54845586e-023, -0.999999523)
- p.BottomSurface=0
- p.TopSurface=0
- p.Parent=Model p=Instance.new("WedgePart")
- p.Name="Wedge"
- p.formFactor="Custom"
- p.Size=Vector3.new(1, 0.200000003, 0.200000003)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Pastel Blue")
- p.CFrame=CFrame.new(-42.9000015, 0.689999461, 24.300005, -1, 0, -4.37113883e-008, 0, 1, 0, 4.37113883e-008, 0, -1)
- p.BottomSurface=0
- p.TopSurface=0
- p.Parent=Model p=Instance.new("WedgePart")
- p.Name="Wedge"
- p.formFactor="Custom"
- p.Size=Vector3.new(0.600000024, 0.200000003, 0.200000003)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Pastel Blue")
- p.CFrame=CFrame.new(-42.8999977, 0.490000546, 22.3000011, -1, 0, 0, 0, -1, 0, 0, 0, 1)
- p.BottomSurface=0
- p.TopSurface=0
- p.Parent=Model p=Instance.new("WedgePart")
- p.Name="Wedge"
- p.formFactor="Custom"
- p.Size=Vector3.new(1, 0.200000003, 0.400000006)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Pastel Blue")
- p.CFrame=CFrame.new(-42.9000015, 0.68999958, 22.6000023, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- p.BottomSurface=0
- p.TopSurface=0
- p.Parent=Model
- return Model
- end
- Units["HeavyTank"]["Attack"]=function(Unit,Object,Location)
- Dist=(Unit.Centroid.Position-(Object:FindFirstChild("Torso").Position-Vector3.new(0,2,0))).magnitude
- AttackDist=8
- if Dist>AttackDist then
- UnitMoveTo(Unit,Object.Torso.Position,"NOE")
- unitmove(Unit)
- else
- unitstop(Unit)
- if Unit:FindFirstChild("Cooldown")==nil then
- t=Instance.new("IntValue")
- t.Name="Cooldown"
- t.Value=57
- t.Parent=Unit
- coroutine.resume(coroutine.create(function(Unit)
- flash=Instance.new("Part")
- flash.Name="PEWPEW"
- flash.TopSurface=0
- flash.BottomSurface=0
- flash.BrickColor=BrickColor:Yellow()
- flash.formFactor="Custom"
- flash.Size=Vector3.new(.28,.28,.28)
- mm=Instance.new("SpecialMesh")
- mm.MeshType="Sphere"
- mm.Scale=Vector3.new(.75,.75,.75)
- mm.Parent=flash
- flash.Parent=Unit
- w=Instance.new("Weld")
- w.Part0=Unit.Gun1
- w.Part1=flash
- w.C0=CFrame.new(0,.4,0)
- w.Parent=flash
- game:GetService("Debris"):AddItem(flash,.18)
- wait(.1)
- flash=Instance.new("Part")
- flash.Name="PEWPEW"
- flash.TopSurface=0
- flash.BottomSurface=0
- flash.BrickColor=BrickColor:Yellow()
- flash.formFactor="Custom"
- flash.Size=Vector3.new(.28,.28,.28)
- mm=Instance.new("SpecialMesh")
- mm.MeshType="Sphere"
- mm.Scale=Vector3.new(.75,.75,.75)
- mm.Parent=flash
- flash.Parent=Unit
- w=Instance.new("Weld")
- w.Part0=Unit.Gun2
- w.Part1=flash
- w.C0=CFrame.new(0,.4,0)
- w.Parent=flash
- game:GetService("Debris"):AddItem(flash,.18)
- end),Unit)
- for i=1, 2 do
- PlaySound("CN1",1,Unit.Centroid,"PEW")
- Object.Humanoid:TakeDamage(8)
- wait(.1)
- end
- else
- Unit.Cooldown.Value=Unit.Cooldown.Value-1
- if Unit.Cooldown.Value<=-1 then
- Unit.Cooldown:Destroy()
- end
- end
- end
- end
- Units["HeavyTank"]["Requires"]={"WarFactory"}
- Units["Ranger"]={}
- Units["Ranger"]["EnergyCost"]=6
- Units["Ranger"]["Speed"]=16
- Units["Ranger"]["MaxUnits"]=5
- Units["Ranger"]["BuildTime"]=3.5
- Units["Ranger"]["Model"]=function()
- Model=Instance.new("Model")
- Model.Name="Ranger" p=Instance.new("Part")
- p.Name="Part"
- p.formFactor="Custom"
- p.Size=Vector3.new(0.400000036, 0.200000003, 0.400000006)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Black")
- p.CFrame=CFrame.new(-34.6999893, 0.390000045, 23.0000038, 0, 1, -0, -1, 0, 0, 0, 0, 1)
- p.BottomSurface=0
- p.TopSurface=0
- kl=Instance.new("CylinderMesh")
- kl.Scale=Vector3.new(0.800000012, 0.800000012, 0.800000012)
- kl.Parent=p
- p.Parent=Model p=Instance.new("Part")
- p.Name="Gun"
- p.formFactor="Custom"
- p.Size=Vector3.new(0.200000003, 0.200000003, 0.200000003)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Black")
- p.CFrame=CFrame.new(-34.7756767, 1.03000069, 23.0472469, 1, 0, -0, 0, 0, 1, 0, -1, 0)
- p.BottomSurface=0
- p.TopSurface=0
- kl=Instance.new("CylinderMesh")
- kl.Scale=Vector3.new(0.150000006, 1, 0.150000006)
- kl.Parent=p
- p.Parent=Model p=Instance.new("Part")
- p.Name="Turret"
- p.formFactor="Custom"
- p.Size=Vector3.new(0.200000003, 0.200000003, 0.200000003)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Pastel Blue")
- p.CFrame=CFrame.new(-34.7599831, 0.990000129, 23.1000061, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- p.BottomSurface=0
- p.TopSurface=0
- kl=Instance.new("SpecialMesh")
- kl.Scale=Vector3.new(0.699999988, 0.699999988, 0.699999988)
- kl.Parent=p
- kl.MeshType="Sphere" p.Parent=Model p=Instance.new("Part")
- p.Name="Part"
- p.formFactor="Custom"
- p.Size=Vector3.new(0.600000024, 0.200000003, 0.200000003)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Pastel Blue")
- p.CFrame=CFrame.new(-34.8999786, 0.659999967, 22.9000053, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- p.BottomSurface=0
- p.TopSurface=0
- kl=Instance.new("BlockMesh")
- kl.Scale=Vector3.new(1, 1, 1)
- kl.Parent=p
- p.Parent=Model p=Instance.new("Part")
- p.Name="Part"
- p.formFactor="Custom"
- p.Size=Vector3.new(0.400000036, 0.200000003, 0.400000006)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Black")
- p.CFrame=CFrame.new(-34.6999893, 0.390000045, 23.6000023, 0, 1, -0, -1, 0, 0, 0, 0, 1)
- p.BottomSurface=0
- p.TopSurface=0
- kl=Instance.new("CylinderMesh")
- kl.Scale=Vector3.new(0.800000012, 0.800000012, 0.800000012)
- kl.Parent=p
- p.Parent=Model p=Instance.new("Part")
- p.Name="Part"
- p.formFactor="Custom"
- p.Size=Vector3.new(0.600000024, 0.200000003, 1)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Pastel Blue")
- p.CFrame=CFrame.new(-34.8999786, 0.49000001, 23.300005, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- p.BottomSurface=0
- p.TopSurface=0
- kl=Instance.new("BlockMesh")
- kl.Scale=Vector3.new(1, 1, 1)
- kl.Parent=p
- p.Parent=Model p=Instance.new("Part")
- p.Name="Part"
- p.formFactor="Custom"
- p.Size=Vector3.new(0.600000024, 0.200000003, 0.200000003)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Pastel Blue")
- p.CFrame=CFrame.new(-34.8999786, 0.889999986, 23.1000061, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- p.BottomSurface=0
- p.TopSurface=0
- kl=Instance.new("BlockMesh")
- kl.Scale=Vector3.new(1, 1, 1)
- kl.Parent=p
- p.Parent=Model p=Instance.new("Part")
- p.Name="Part"
- p.formFactor="Custom"
- p.Size=Vector3.new(0.600000024, 0.200000003, 0.200000003)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Pastel Blue")
- p.CFrame=CFrame.new(-34.8999786, 0.689999998, 23.1000061, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- p.BottomSurface=0
- p.TopSurface=0
- kl=Instance.new("BlockMesh")
- kl.Scale=Vector3.new(1, 1, 1)
- kl.Parent=p
- p.Parent=Model p=Instance.new("Part")
- p.Name="Part"
- p.formFactor="Custom"
- p.Size=Vector3.new(0.600000024, 0.200000003, 0.200000003)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Pastel Blue")
- p.CFrame=CFrame.new(-34.8999786, 0.75000006, 23.5000057, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- p.BottomSurface=0
- p.TopSurface=0
- kl=Instance.new("BlockMesh")
- kl.Scale=Vector3.new(1, 1, 1)
- kl.Parent=p
- p.Parent=Model p=Instance.new("Part")
- p.Name="Part"
- p.formFactor="Custom"
- p.Size=Vector3.new(0.600000024, 0.200000003, 0.400000036)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Pastel Blue")
- p.CFrame=CFrame.new(-34.8999786, 0.689999998, 23.6000061, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- p.BottomSurface=0
- p.TopSurface=0
- kl=Instance.new("BlockMesh")
- kl.Scale=Vector3.new(1, 1, 1)
- kl.Parent=p
- p.Parent=Model p=Instance.new("Part")
- p.Name="Part"
- p.formFactor="Custom"
- p.Size=Vector3.new(0.400000036, 0.200000003, 0.400000006)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Black")
- p.CFrame=CFrame.new(-35.0999908, 0.399999976, 23.0000019, 0, 1, -0, -1, 0, 0, 0, 0, 1)
- p.BottomSurface=0
- p.TopSurface=0
- kl=Instance.new("CylinderMesh")
- kl.Scale=Vector3.new(0.800000012, 0.800000012, 0.800000012)
- kl.Parent=p
- p.Parent=Model p=Instance.new("Part")
- p.Name="Part"
- p.formFactor="Custom"
- p.Size=Vector3.new(0.400000036, 0.200000003, 0.400000006)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Black")
- p.CFrame=CFrame.new(-35.099987, 0.399999976, 23.6000023, 0, 1, -0, -1, 0, 0, 0, 0, 1)
- p.BottomSurface=0
- p.TopSurface=0
- kl=Instance.new("CylinderMesh")
- kl.Scale=Vector3.new(0.800000012, 0.800000012, 0.800000012)
- kl.Parent=p
- p.Parent=Model
- return Model
- end
- Units["Ranger"]["Attack"]=function(Unit,Object,Location)
- Dist=(Unit.Centroid.Position-(Object:FindFirstChild("Torso").Position-Vector3.new(0,2,0))).magnitude
- AttackDist=6
- if Dist>AttackDist then
- UnitMoveTo(Unit,Object.Torso.Position,"NOE")
- unitmove(Unit)
- else
- unitstop(Unit)
- if Unit:FindFirstChild("Cooldown")==nil then
- t=Instance.new("IntValue")
- t.Name="Cooldown"
- t.Value=22
- t.Parent=Unit
- coroutine.resume(coroutine.create(function(Unit)
- flash=Instance.new("Part")
- flash.Name="PEWPEW"
- flash.TopSurface=0
- flash.BottomSurface=0
- flash.BrickColor=BrickColor:Yellow()
- flash.formFactor="Custom"
- flash.Size=Vector3.new(.2,.2,.2)
- mm=Instance.new("SpecialMesh")
- mm.MeshType="Sphere"
- mm.Scale=Vector3.new(.4,.4,.4)
- mm.Parent=flash
- flash.Parent=Unit
- w=Instance.new("Weld")
- w.Part0=Unit.Gun
- w.Part1=flash
- w.C0=CFrame.new(0,.1,0)
- w.Parent=flash
- game:GetService("Debris"):AddItem(flash,.1)
- end),Unit)
- PlaySound("MG2",1,Unit.Centroid,"PEW")
- Object.Humanoid:TakeDamage(3)
- else
- Unit.Cooldown.Value=Unit.Cooldown.Value-1
- if Unit.Cooldown.Value<=-1 then
- Unit.Cooldown:Destroy()
- end
- end
- end
- end
- Units["Ranger"]["Requires"]={"WarFactory"}
- Units["Artillery"]={}
- Units["Artillery"]["Speed"]=7
- Units["Artillery"]["EnergyCost"]=15
- Units["Artillery"]["MaxUnits"]=5
- Units["Artillery"]["BuildTime"]=8
- Units["Artillery"]["Model"]=function()
- Model=Instance.new("Model")
- Model.Name="Artillery" p=Instance.new("WedgePart")
- p.Name="Wedge"
- p.formFactor="Custom"
- p.Size=Vector3.new(0.200000003, 0.200000003, 0.200000033)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Black")
- p.CFrame=CFrame.new(-48.7000046, 0.289999962, 22.6999989, -1, 0, 0, 0, -1, 0, 0, 0, 1)
- p.BottomSurface=0
- p.TopSurface=0
- p.Parent=Model p=Instance.new("Part")
- p.Name="Part"
- p.formFactor="Custom"
- p.Size=Vector3.new(0.400000036, 0.200000033, 0.200000033)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Pastel Blue")
- p.CFrame=CFrame.new(-48.4000168, 0.890000165, 23.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- p.BottomSurface=0
- p.TopSurface=0
- kl=Instance.new("BlockMesh")
- kl.Scale=Vector3.new(1, 1, 1)
- kl.Parent=p
- p.Parent=Model p=Instance.new("Part")
- p.Name="Part"
- p.formFactor="Custom"
- p.Size=Vector3.new(0.800000012, 0.200000033, 0.600000024)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Pastel Blue")
- p.CFrame=CFrame.new(-48.400013, 0.690000057, 23.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- p.BottomSurface=0
- p.TopSurface=0
- kl=Instance.new("BlockMesh")
- kl.Scale=Vector3.new(1, 1, 1)
- kl.Parent=p
- p.Parent=Model p=Instance.new("Part")
- p.Name="Part"
- p.formFactor="Custom"
- p.Size=Vector3.new(0.800000012, 0.200000033, 1.4000001)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Pastel Blue")
- p.CFrame=CFrame.new(-48.4000092, 0.49000001, 23.2999992, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- p.BottomSurface=0
- p.TopSurface=0
- kl=Instance.new("BlockMesh")
- kl.Scale=Vector3.new(1, 1, 1)
- kl.Parent=p
- p.Parent=Model p=Instance.new("WedgePart")
- p.Name="Wedge"
- p.formFactor="Custom"
- p.Size=Vector3.new(0.200000003, 0.200000003, 0.200000033)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Black")
- p.CFrame=CFrame.new(-48.1000061, 0.289999962, 22.6999989, -0.999999762, -2.29844701e-007, 2.47987071e-008, 1.19209247e-007, -0.999999642, -6.33299067e-008, 8.95835157e-008, -9.3132229e-008, 0.999999702)
- p.BottomSurface=0
- p.TopSurface=0
- p.Parent=Model p=Instance.new("WedgePart")
- p.Name="Wedge"
- p.formFactor="Custom"
- p.Size=Vector3.new(0.200000003, 0.200000003, 0.200000033)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Black")
- p.CFrame=CFrame.new(-48.1000137, 0.289999962, 23.8999996, 1, 0, 0, 0, -1, 0, 0, 0, -1)
- p.BottomSurface=0
- p.TopSurface=0
- p.Parent=Model p=Instance.new("WedgePart")
- p.Name="Wedge"
- p.formFactor="Custom"
- p.Size=Vector3.new(0.200000003, 0.200000003, 0.200000033)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Black")
- p.CFrame=CFrame.new(-48.7000122, 0.290000021, 23.8999996, 0.999999702, 3.34179404e-008, 8.72888428e-009, 1.23445183e-008, -0.999999642, 2.38418579e-007, 2.98023224e-008, -2.98023224e-007, -0.999999881)
- p.BottomSurface=0
- p.TopSurface=0
- p.Parent=Model p=Instance.new("WedgePart")
- p.Name="Wedge"
- p.formFactor="Custom"
- p.Size=Vector3.new(0.400000036, 0.200000003, 0.400000006)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Pastel Blue")
- p.CFrame=CFrame.new(-48.400013, 0.890000165, 23.2000008, 1, 0, 4.37113883e-008, 0, 1, 0, -4.37113883e-008, 0, 1)
- p.BottomSurface=0
- p.TopSurface=0
- p.Parent=Model p=Instance.new("WedgePart")
- p.Name="Wedge"
- p.formFactor="Custom"
- p.Size=Vector3.new(0.400000036, 0.200000003, 0.200000003)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Pastel Blue")
- p.CFrame=CFrame.new(-48.400013, 0.890000165, 23.7000027, -1, 0, 0, 0, 1, 0, 0, 0, -1)
- p.BottomSurface=0
- p.TopSurface=0
- p.Parent=Model p=Instance.new("WedgePart")
- p.Name="Wedge"
- p.formFactor="Custom"
- p.Size=Vector3.new(0.800000012, 0.200000003, 0.200000003)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Pastel Blue")
- p.CFrame=CFrame.new(-48.400013, 0.890000045, 22.6999989, 1, 0, 4.37113883e-008, 0, 1, 0, -4.37113883e-008, 0, 1)
- p.BottomSurface=0
- p.TopSurface=0
- p.Parent=Model p=Instance.new("WedgePart")
- p.Name="Wedge"
- p.formFactor="Custom"
- p.Size=Vector3.new(0.800000012, 0.200000003, 0.200000003)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Pastel Blue")
- p.CFrame=CFrame.new(-48.4000092, 0.689999998, 23.8999996, -1, 0, 0, 0, 1, 0, 0, 0, -1)
- p.BottomSurface=0
- p.TopSurface=0
- p.Parent=Model p=Instance.new("Part")
- p.Name="Part"
- p.formFactor="Custom"
- p.Size=Vector3.new(0.800000012, 0.200000033, 0.200000003)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Pastel Blue")
- p.CFrame=CFrame.new(-48.400013, 0.890000165, 22.8999996, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- p.BottomSurface=0
- p.TopSurface=0
- kl=Instance.new("BlockMesh")
- kl.Scale=Vector3.new(1, 1, 1)
- kl.Parent=p
- p.Parent=Model p=Instance.new("Part")
- p.Name="Part"
- p.formFactor="Custom"
- p.Size=Vector3.new(0.800000012, 0.200000033, 0.600000024)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Pastel Blue")
- p.CFrame=CFrame.new(-48.400013, 0.690000057, 22.9000015, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- p.BottomSurface=0
- p.TopSurface=0
- kl=Instance.new("BlockMesh")
- kl.Scale=Vector3.new(1, 1, 1)
- kl.Parent=p
- p.Parent=Model p=Instance.new("Part")
- p.Name="Gun"
- p.formFactor="Custom"
- p.Size=Vector3.new(0.400000006, 1.04999983, 0.200000003)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Black")
- p.CFrame=CFrame.new(-48.4000168, 1.26000035, 23.218399, 1, 0, 0, 0, 0.707106769, 0.707106709, 0, -0.707106709, 0.707106769)
- p.BottomSurface=0
- p.TopSurface=0
- kl=Instance.new("BlockMesh")
- kl.Scale=Vector3.new(0.300000012, 1, 0.600000024)
- kl.Parent=p
- p.Parent=Model p=Instance.new("Part")
- p.Name="Part"
- p.formFactor="Custom"
- p.Size=Vector3.new(0.200000003, 0.200000003, 1)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Black")
- p.CFrame=CFrame.new(-48.1000061, 0.290000021, 23.3000031, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- p.BottomSurface=0
- p.TopSurface=0
- p.Parent=Model p=Instance.new("Part")
- p.Name="Part"
- p.formFactor="Custom"
- p.Size=Vector3.new(0.200000003, 0.200000003, 1)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Black")
- p.CFrame=CFrame.new(-48.7000084, 0.290000021, 23.2999992, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- p.BottomSurface=0
- p.TopSurface=0
- p.Parent=Model
- return Model
- end
- Units["Artillery"]["Attack"]=function(Unit,Object,Location)
- Dist=(Unit.Centroid.Position-(Object:FindFirstChild("Torso").Position-Vector3.new(0,2,0))).magnitude
- AttackDist=20
- if Dist>AttackDist then
- UnitMoveTo(Unit,Object.Torso.Position,"NOE")
- unitmove(Unit)
- else
- unitstop(Unit)
- if Unit:FindFirstChild("Cooldown")==nil then
- t=Instance.new("IntValue")
- t.Name="Cooldown"
- t.Value=75
- t.Parent=Unit
- coroutine.resume(coroutine.create(function(Unit)
- flash=Instance.new("Part")
- flash.Name="PEWPEW"
- flash.TopSurface=0
- flash.BottomSurface=0
- flash.BrickColor=BrickColor:Yellow()
- flash.formFactor="Custom"
- flash.Size=Vector3.new(.2,.2,.2)
- mm=Instance.new("SpecialMesh")
- mm.MeshType="Sphere"
- mm.Scale=Vector3.new(1.2,1.2,1.2)
- mm.Parent=flash
- flash.Parent=Unit
- w=Instance.new("Weld")
- w.Part0=Unit.Gun
- w.Part1=flash
- w.C0=CFrame.new(0,.6,0)
- w.Parent=flash
- game:GetService("Debris"):AddItem(flash,.1)
- end),Unit)
- PlaySound("BigCN",1,Unit.Centroid,"PEW")
- wait(.3)
- Object.Humanoid:TakeDamage(12)
- else
- Unit.Cooldown.Value=Unit.Cooldown.Value-1
- if Unit.Cooldown.Value<=-1 then
- Unit.Cooldown:Destroy()
- end
- end
- end
- end
- Units["Artillery"]["Requires"]={"WarFactory","RadarDome"}
- Units["TeslaTank"]={}
- Units["TeslaTank"]["Speed"]=10
- Units["TeslaTank"]["EnergyCost"]=30
- Units["TeslaTank"]["MaxUnits"]=4
- Units["TeslaTank"]["BuildTime"]=15
- Units["TeslaTank"]["Model"]=function()
- Model=Instance.new("Model")
- Model.Name="TeslaTank" p=Instance.new("WedgePart")
- p.Name="Wedge"
- p.formFactor="Custom"
- p.Size=Vector3.new(0.200000003, 0.200000003, 0.200000003)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Black")
- p.CFrame=CFrame.new(-62.170002, 0.100000001, 24.1000004, 1, 0, 0, 0, -1, 0, 0, 0, -1)
- p.BottomSurface=0
- p.TopSurface=0
- p.Parent=Model p=Instance.new("WedgePart")
- p.Name="Wedge"
- p.formFactor="Custom"
- p.Size=Vector3.new(0.200000003, 0.200000003, 0.200000003)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Black")
- p.CFrame=CFrame.new(-62.1699905, 0.100000001, 23.3000011, -1, 0, 0, 0, -1, 0, 0, 0, 1)
- p.BottomSurface=0
- p.TopSurface=0
- p.Parent=Model p=Instance.new("Part")
- p.Name="Part"
- p.formFactor="Custom"
- p.Size=Vector3.new(0.200000003, 0.200000003, 0.600000024)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Black")
- p.CFrame=CFrame.new(-62.170002, 0.100000001, 23.7000008, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- p.BottomSurface=0
- p.TopSurface=0
- p.Parent=Model p=Instance.new("Part")
- p.Name="Part"
- p.formFactor="Custom"
- p.Size=Vector3.new(0.400000036, 0.200000003, 0.400000006)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Black")
- p.CFrame=CFrame.new(-62.3699875, 0.190000027, 22.8000031, 0, 1, -0, -1, 0, 0, 0, 0, 1)
- p.BottomSurface=0
- p.TopSurface=0
- kl=Instance.new("CylinderMesh")
- kl.Scale=Vector3.new(1.10000002, 0.949999988, 1.10000002)
- kl.Parent=p
- p.Parent=Model p=Instance.new("Part")
- p.Name="Part"
- p.formFactor="Custom"
- p.Size=Vector3.new(1, 0.200000003, 1)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Dark stone grey")
- p.CFrame=CFrame.new(-62.5699921, 0.600000143, 23.7000027, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- p.BottomSurface=0
- p.TopSurface=0
- kl=Instance.new("CylinderMesh")
- kl.Scale=Vector3.new(0.899999976, 1, 0.899999976)
- kl.Parent=p
- p.Parent=Model p=Instance.new("Part")
- p.Name="Part"
- p.formFactor="Custom"
- p.Size=Vector3.new(0.600000024, 0.300000012, 0.200000003)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Pastel Blue")
- p.CFrame=CFrame.new(-62.5699921, 0.340000212, 22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- p.BottomSurface=0
- p.TopSurface=0
- kl=Instance.new("BlockMesh")
- kl.Scale=Vector3.new(1, 1, 1)
- kl.Parent=p
- p.Parent=Model p=Instance.new("Part")
- p.Name="Tesla"
- p.formFactor="Custom"
- p.Size=Vector3.new(1, 0.200000003, 1)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Medium stone grey")
- p.CFrame=CFrame.new(-62.5699921, 0.600000024, 23.7000008, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- p.BottomSurface=0
- p.TopSurface=0
- kl=Instance.new("SpecialMesh")
- kl.Scale=Vector3.new(0.800000012, 4, 0.800000012)
- kl.Parent=p
- kl.MeshType="Sphere" p.Parent=Model p=Instance.new("WedgePart")
- p.Name="Wedge"
- p.formFactor="Custom"
- p.Size=Vector3.new(0.5, 0.200000003, 0.200000003)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Pastel Blue")
- p.CFrame=CFrame.new(-62.1699944, 0.440000176, 23.1000004, 0, 1, -0, -1, 0, 0, 0, 0, 1)
- p.BottomSurface=0
- p.TopSurface=0
- p.Parent=Model p=Instance.new("Part")
- p.Name="Part"
- p.formFactor="Custom"
- p.Size=Vector3.new(1, 0.49999994, 1)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Pastel Blue")
- p.CFrame=CFrame.new(-62.5699921, 0.440000027, 23.7000008, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- p.BottomSurface=0
- p.TopSurface=0
- kl=Instance.new("BlockMesh")
- kl.Scale=Vector3.new(1, 1, 1)
- kl.Parent=p
- p.Parent=Model p=Instance.new("Part")
- p.Name="Part"
- p.formFactor="Custom"
- p.Size=Vector3.new(0.600000024, 0.5, 0.600000024)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Pastel Blue")
- p.CFrame=CFrame.new(-62.5699883, 0.439999998, 22.8999996, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- p.BottomSurface=0
- p.TopSurface=0
- kl=Instance.new("BlockMesh")
- kl.Scale=Vector3.new(1, 1, 1)
- kl.Parent=p
- p.Parent=Model p=Instance.new("WedgePart")
- p.Name="Wedge"
- p.formFactor="Custom"
- p.Size=Vector3.new(0.599999964, 0.200000003, 0.200000003)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Pastel Blue")
- p.CFrame=CFrame.new(-62.5699654, 0.589999914, 22.5, -1, 4.37113883e-008, -4.37113883e-008, 0, 4.37113883e-008, -1, 0, -1, -4.37113847e-008)
- p.BottomSurface=0
- p.TopSurface=0
- p.Parent=Model p=Instance.new("WedgePart")
- p.Name="Wedge"
- p.formFactor="Custom"
- p.Size=Vector3.new(0.200000003, 0.200000003, 0.200000003)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Black")
- p.CFrame=CFrame.new(-62.9700012, 0.100000001, 24.1000004, 1, 0, 0, 0, -1, 0, 0, 0, -1)
- p.BottomSurface=0
- p.TopSurface=0
- p.Parent=Model p=Instance.new("Part")
- p.Name="Part"
- p.formFactor="Custom"
- p.Size=Vector3.new(0.200000003, 0.200000003, 0.600000024)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Black")
- p.CFrame=CFrame.new(-62.9700012, 0.100000001, 23.7000008, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- p.BottomSurface=0
- p.TopSurface=0
- p.Parent=Model p=Instance.new("Part")
- p.Name="Part"
- p.formFactor="Custom"
- p.Size=Vector3.new(0.400000036, 0.200000003, 0.400000006)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Black")
- p.CFrame=CFrame.new(-62.7699928, 0.189999998, 22.8000011, 0, 1, -0, -1, 0, 0, 0, 0, 1)
- p.BottomSurface=0
- p.TopSurface=0
- kl=Instance.new("CylinderMesh")
- kl.Scale=Vector3.new(1.10000002, 0.949999988, 1.10000002)
- kl.Parent=p
- p.Parent=Model p=Instance.new("WedgePart")
- p.Name="Wedge"
- p.formFactor="Custom"
- p.Size=Vector3.new(0.200000003, 0.200000003, 0.200000003)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Black")
- p.CFrame=CFrame.new(-62.9699936, 0.100000001, 23.3000011, -1, 0, 0, 0, -1, 0, 0, 0, 1)
- p.BottomSurface=0
- p.TopSurface=0
- p.Parent=Model p=Instance.new("WedgePart")
- p.Name="Wedge"
- p.formFactor="Custom"
- p.Size=Vector3.new(0.5, 0.200000003, 0.200000003)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Pastel Blue")
- p.CFrame=CFrame.new(-62.9699898, 0.440000117, 23.1000004, 0, -1, 0, 1, 0, -0, 0, 0, 1)
- p.BottomSurface=0
- p.TopSurface=0
- p.Parent=Model
- return Model
- end
- Units["TeslaTank"]["Attack"]=function(Unit,Object,Location)
- end
- Units["TeslaTank"]["Requires"]={"WarFactory","TechCenter"}
- Units["APC"]={}
- Units["APC"]["Speed"]=12
- Units["APC"]["EnergyCost"]=15
- Units["APC"]["MaxUnits"]=3
- Units["APC"]["BuildTime"]=7.4
- Units["APC"]["Model"]=function()
- Model=Instance.new("Model")
- Model.Name="APC" p=Instance.new("Part")
- p.Name="Part"
- p.formFactor="Custom"
- p.Size=Vector3.new(0.200000003, 0.200000003, 1)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Black")
- p.CFrame=CFrame.new(-46.7000008, 0.300000072, 23.3000031, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- p.BottomSurface=0
- p.TopSurface=0
- p.Parent=Model p=Instance.new("WedgePart")
- p.Name="Wedge"
- p.formFactor="Custom"
- p.Size=Vector3.new(0.600000024, 0.5, 0.200000003)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Pastel Blue")
- p.CFrame=CFrame.new(-46.9000015, 0.640000045, 24.1000004, 1, 0, 0, 0, -1, 0, 0, 0, -1)
- p.BottomSurface=0
- p.TopSurface=0
- p.Parent=Model p=Instance.new("WedgePart")
- p.Name="Wedge"
- p.formFactor="Custom"
- p.Size=Vector3.new(0.200000003, 0.200000003, 0.200000003)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Black")
- p.CFrame=CFrame.new(-46.7000008, 0.300000012, 23.9000053, 1, 0, 0, 0, -1, 0, 0, 0, -1)
- p.BottomSurface=0
- p.TopSurface=0
- p.Parent=Model p=Instance.new("Part")
- p.Name="Part"
- p.formFactor="Custom"
- p.Size=Vector3.new(0.600000024, 0.49999994, 1)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Pastel Blue")
- p.CFrame=CFrame.new(-46.9000015, 0.640000045, 23.5000019, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- p.BottomSurface=0
- p.TopSurface=0
- kl=Instance.new("BlockMesh")
- kl.Scale=Vector3.new(1, 1, 1)
- kl.Parent=p
- p.Parent=Model p=Instance.new("WedgePart")
- p.Name="Wedge"
- p.formFactor="Custom"
- p.Size=Vector3.new(0.600000024, 0.5, 0.400000006)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Pastel Blue")
- p.CFrame=CFrame.new(-46.9000015, 0.639999986, 22.7999992, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- p.BottomSurface=0
- p.TopSurface=0
- p.Parent=Model p=Instance.new("Part")
- p.Name="Part"
- p.formFactor="Custom"
- p.Size=Vector3.new(0.600000024, 0.300000012, 0.299999923)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Black")
- p.CFrame=CFrame.new(-46.9000015, 0.697662115, 22.9357719, 1, 0, 0, 0, 0.780868769, -0.624695003, 0, 0.624695003, 0.780868769)
- p.BottomSurface=0
- p.TopSurface=0
- kl=Instance.new("BlockMesh")
- kl.Scale=Vector3.new(0.600000024, 0.5, 0.5)
- kl.Parent=p
- p.Parent=Model p=Instance.new("WedgePart")
- p.Name="Wedge"
- p.formFactor="Custom"
- p.Size=Vector3.new(0.200000003, 0.200000003, 0.200000003)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Black")
- p.CFrame=CFrame.new(-47.0999985, 0.300000012, 23.8999996, 1, 0, 0, 0, -1, 0, 0, 0, -1)
- p.BottomSurface=0
- p.TopSurface=0
- p.Parent=Model p=Instance.new("Part")
- p.Name="Part"
- p.formFactor="Custom"
- p.Size=Vector3.new(0.200000003, 0.200000003, 1)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Black")
- p.CFrame=CFrame.new(-47.1000023, 0.300000012, 23.3000011, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- p.BottomSurface=0
- p.TopSurface=0
- p.Parent=Model p=Instance.new("WedgePart")
- p.Name="Wedge"
- p.formFactor="Custom"
- p.Size=Vector3.new(0.200000003, 0.200000003, 0.200000003)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Black")
- p.CFrame=CFrame.new(-46.7000008, 0.300000012, 22.6999989, -1, 0, 0, 0, -1, 0, 0, 0, 1)
- p.BottomSurface=0
- p.TopSurface=0
- p.Parent=Model p=Instance.new("WedgePart")
- p.Name="Wedge"
- p.formFactor="Custom"
- p.Size=Vector3.new(0.200000003, 0.200000003, 0.200000003)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Black")
- p.CFrame=CFrame.new(-47.1000023, 0.300000012, 22.7000008, -1, 0, 0, 0, -1, 0, 0, 0, 1)
- p.BottomSurface=0
- p.TopSurface=0
- p.Parent=Model
- return Model
- end
- Units["APC"]["Requires"]={"WarFactory","RadarDome"}
- Units["MCV"]={} --Converts into a ConYard
- Units["MCV"]["EnergyCost"]=0
- Units["MCV"]["Speed"]=3
- Units["MCV"]["MaxUnits"]=1
- Units["MCV"]["BuildTime"]=0
- Units["MCV"]["Model"]=function()
- Model=Instance.new("Model")
- Model.Name="MCV" p=Instance.new("Part")
- p.Name="Part"
- p.formFactor="Custom"
- p.Size=Vector3.new(0.400000036, 0.200000003, 0.400000006)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Black")
- p.CFrame=CFrame.new(-68.6999969, 0.99000001, 24, 0, 1, -0, -1, 0, 0, 0, 0, 1)
- p.BottomSurface=0
- p.TopSurface=0
- kl=Instance.new("CylinderMesh")
- kl.Scale=Vector3.new(1.10000002, 0.949999988, 1.10000002)
- kl.Parent=p
- p.Parent=Model p=Instance.new("Part")
- p.Name="Part"
- p.formFactor="Custom"
- p.Size=Vector3.new(0.400000036, 0.200000003, 0.400000006)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Black")
- p.CFrame=CFrame.new(-68.6999969, 0.99000001, 23.6000004, 0, 1, -0, -1, 0, 0, 0, 0, 1)
- p.BottomSurface=0
- p.TopSurface=0
- kl=Instance.new("CylinderMesh")
- kl.Scale=Vector3.new(1.10000002, 0.949999988, 1.10000002)
- kl.Parent=p
- p.Parent=Model p=Instance.new("Part")
- p.Name="Part"
- p.formFactor="Custom"
- p.Size=Vector3.new(0.400000036, 0.200000003, 0.400000006)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Black")
- p.CFrame=CFrame.new(-68.6999969, 0.990000069, 22.9999962, 0, 1, -0, -1, 0, 0, 0, 0, 1)
- p.BottomSurface=0
- p.TopSurface=0
- kl=Instance.new("CylinderMesh")
- kl.Scale=Vector3.new(1.10000002, 0.949999988, 1.10000002)
- kl.Parent=p
- p.Parent=Model p=Instance.new("Part")
- p.Name="Part"
- p.formFactor="Custom"
- p.Size=Vector3.new(0.200000003, 0.600000024, 0.200000003)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Dark stone grey")
- p.CFrame=CFrame.new(-68.6999817, 1.69000018, 23.2999992, 0, 4.37113883e-008, -1, 0, 1, 4.37113883e-008, 1, -3.82137093e-015, 4.37113883e-008)
- p.BottomSurface=0
- p.TopSurface=0
- kl=Instance.new("CylinderMesh")
- kl.Scale=Vector3.new(1, 1, 1)
- kl.Parent=p
- p.Parent=Model p=Instance.new("Part")
- p.Name="Part"
- p.formFactor="Custom"
- p.Size=Vector3.new(1, 1, 1)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Pastel Blue")
- p.CFrame=CFrame.new(-68.2999878, 1.49000025, 23.9000015, 0, 0, 1, -1, 0, 0, 0, -1, -4.37113883e-008)
- p.BottomSurface=0
- p.TopSurface=0
- kl=Instance.new("CylinderMesh")
- kl.Scale=Vector3.new(1.02999997, 1, 1.02999997)
- kl.Parent=p
- p.Parent=Model p=Instance.new("Part")
- p.Name="Part"
- p.formFactor="Custom"
- p.Size=Vector3.new(0.600000024, 0.200000003, 0.200000003)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Pastel Blue")
- p.CFrame=CFrame.new(-68.2999954, 1.09000003, 24.3400078, 1, 0, 0, 0, 0.707106709, -0.707106769, 0, 0.707106769, 0.707106709)
- p.BottomSurface=0
- p.TopSurface=0
- kl=Instance.new("BlockMesh")
- kl.Scale=Vector3.new(1, 1, 1)
- kl.Parent=p
- p.Parent=Model p=Instance.new("Part")
- p.Name="Part"
- p.formFactor="Custom"
- p.Size=Vector3.new(1, 0.600000024, 0.600000024)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Dark stone grey")
- p.CFrame=CFrame.new(-68.2999878, 1.49000025, 24.159996, 0, 0, 1, -1, 0, 0, 0, -1, -4.37113883e-008)
- p.BottomSurface=0
- p.TopSurface=0
- kl=Instance.new("CylinderMesh")
- kl.Scale=Vector3.new(1, 1, 1)
- kl.Parent=p
- p.Parent=Model p=Instance.new("Part")
- p.Name="Part"
- p.formFactor="Custom"
- p.Size=Vector3.new(1, 0.600000024, 1)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Dark stone grey")
- p.CFrame=CFrame.new(-68.2999954, 1.53000009, 23.9000015, 0, 0, 1, -1, 0, 0, 0, -1, -4.37113883e-008)
- p.BottomSurface=0
- p.TopSurface=0
- kl=Instance.new("CylinderMesh")
- kl.Scale=Vector3.new(1, 1, 1)
- kl.Parent=p
- p.Parent=Model p=Instance.new("Part")
- p.Name="Part"
- p.formFactor="Custom"
- p.Size=Vector3.new(1, 0.400000036, 1.80000019)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Pastel Blue")
- p.CFrame=CFrame.new(-68.2999878, 1.19000006, 23.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- p.BottomSurface=0
- p.TopSurface=0
- kl=Instance.new("BlockMesh")
- kl.Scale=Vector3.new(1, 1, 1)
- kl.Parent=p
- p.Parent=Model p=Instance.new("Part")
- p.Name="Part"
- p.formFactor="Custom"
- p.Size=Vector3.new(0.600000024, 0.400000036, 0.200000003)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Pastel Blue")
- p.CFrame=CFrame.new(-68.2999878, 1.19000006, 22.659996, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- p.BottomSurface=0
- p.TopSurface=0
- kl=Instance.new("BlockMesh")
- kl.Scale=Vector3.new(1, 1, 1)
- kl.Parent=p
- p.Parent=Model p=Instance.new("Part")
- p.Name="Part"
- p.formFactor="Custom"
- p.Size=Vector3.new(1, 0.200000003, 0.400000036)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Pastel Blue")
- p.CFrame=CFrame.new(-68.2999878, 1.49000013, 23.1999989, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- p.BottomSurface=0
- p.TopSurface=0
- kl=Instance.new("BlockMesh")
- kl.Scale=Vector3.new(1, 1, 1)
- kl.Parent=p
- p.Parent=Model p=Instance.new("Part")
- p.Name="Part"
- p.formFactor="Custom"
- p.Size=Vector3.new(0.400000036, 0.200000003, 0.400000006)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Black")
- p.CFrame=CFrame.new(-67.8999939, 0.98999995, 24.0000057, 0, 1, -0, -1, 0, 0, 0, 0, 1)
- p.BottomSurface=0
- p.TopSurface=0
- kl=Instance.new("CylinderMesh")
- kl.Scale=Vector3.new(1.10000002, 0.949999988, 1.10000002)
- kl.Parent=p
- p.Parent=Model p=Instance.new("Part")
- p.Name="Part"
- p.formFactor="Custom"
- p.Size=Vector3.new(0.400000036, 0.200000003, 0.400000006)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Black")
- p.CFrame=CFrame.new(-67.8999939, 0.99000001, 23.6000004, 0, 1, -0, -1, 0, 0, 0, 0, 1)
- p.BottomSurface=0
- p.TopSurface=0
- kl=Instance.new("CylinderMesh")
- kl.Scale=Vector3.new(1.10000002, 0.949999988, 1.10000002)
- kl.Parent=p
- p.Parent=Model p=Instance.new("Part")
- p.Name="Part"
- p.formFactor="Custom"
- p.Size=Vector3.new(0.400000036, 0.200000003, 0.400000006)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Black")
- p.CFrame=CFrame.new(-67.8999939, 0.98999995, 23.0000019, 0, 1, -0, -1, 0, 0, 0, 0, 1)
- p.BottomSurface=0
- p.TopSurface=0
- kl=Instance.new("CylinderMesh")
- kl.Scale=Vector3.new(1.10000002, 0.949999988, 1.10000002)
- kl.Parent=p
- p.Parent=Model p=Instance.new("Part")
- p.Name="Part"
- p.formFactor="Custom"
- p.Size=Vector3.new(0.200000003, 0.600000024, 0.200000003)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Dark stone grey")
- p.CFrame=CFrame.new(-67.8999939, 1.6900003, 23.3000011, 0, 4.37113883e-008, -1, 0, 1, 4.37113883e-008, 1, -3.82137093e-015, 4.37113883e-008)
- p.BottomSurface=0
- p.TopSurface=0
- kl=Instance.new("CylinderMesh")
- kl.Scale=Vector3.new(1, 1, 1)
- kl.Parent=p
- p.Parent=Model
- return Model
- end
- Units["MCV"]["Requires"]={}
- Units["ConYard"]={}
- Units["ConYard"]["EnergyCost"]=0
- Units["ConYard"]["MaxUnits"]=1
- Units["ConYard"]["BuildTime"]=3
- Units["ConYard"]["Model"]=function()
- Model=Instance.new("Model")
- Model.Name="ConYard" p=Instance.new("Part")
- p.Name="Part"
- p.formFactor="Custom"
- p.Size=Vector3.new(0.80000025, 0.200000003, 0.799999952)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Dark stone grey")
- p.CFrame=CFrame.new(-39.0000038, 0.890000165, 17.1999989, 0, 0, 1, 0, -1, 0, 1, 0, -4.37113883e-008)
- p.BottomSurface=0
- p.TopSurface=0
- kl=Instance.new("BlockMesh")
- kl.Scale=Vector3.new(1.45000005, 1, 1)
- kl.Parent=p
- p.Parent=Model p=Instance.new("Part")
- p.Name="Part"
- p.formFactor="Custom"
- p.Size=Vector3.new(0.600000262, 0.600000024, 1.79999995)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Pastel Blue")
- p.CFrame=CFrame.new(-38.3000069, 0.490000039, 16.7000008, -1, 0, 0, 0, -1, 0, 0, 0, 1)
- p.BottomSurface=0
- p.TopSurface=0
- kl=Instance.new("BlockMesh")
- kl.Scale=Vector3.new(1, 1, 1)
- kl.Parent=p
- p.Parent=Model p=Instance.new("Part")
- p.Name="Part"
- p.formFactor="Custom"
- p.Size=Vector3.new(0.800000012, 0.600000024, 0.799999833)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Pastel Blue")
- p.CFrame=CFrame.new(-38.9999962, 0.490000039, 17.2000027, -1, 0, 0, 0, -1, 0, 0, 0, 1)
- p.BottomSurface=0
- p.TopSurface=0
- kl=Instance.new("BlockMesh")
- kl.Scale=Vector3.new(1, 1, 1)
- kl.Parent=p
- p.Parent=Model p=Instance.new("Part")
- p.Name="Plate"
- p.formFactor="Custom"
- p.Size=Vector3.new(3.00000048, 0.200000003, 4)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Medium stone grey")
- p.CFrame=CFrame.new(-39.0999985, 0.090000011, 16, -1, 0, 0, 0, -1, 0, 0, 0, 1)
- p.BottomSurface=0
- p.TopSurface=0
- p.Parent=Model p=Instance.new("Part")
- p.Name="Part"
- p.formFactor="Custom"
- p.Size=Vector3.new(0.600000262, 0.200000003, 1.79999995)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Dark stone grey")
- p.CFrame=CFrame.new(-38.3000069, 0.890000105, 16.7000008, -1, 0, 0, 0, -1, 0, 0, 0, 1)
- p.BottomSurface=0
- p.TopSurface=0
- kl=Instance.new("BlockMesh")
- kl.Scale=Vector3.new(1.20000005, 1, 1.20000005)
- kl.Parent=p
- p.Parent=Model p=Instance.new("Part")
- p.Name="Part"
- p.formFactor="Custom"
- p.Size=Vector3.new(1.20000005, 1.80000019, 1)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Pastel Blue")
- p.CFrame=CFrame.new(-39.8999977, 1.3900001, 16.6999989, 0, 0, 1, -1, 0, 0, 0, -1, -4.37113883e-008)
- p.BottomSurface=0
- p.TopSurface=0
- kl=Instance.new("CylinderMesh")
- kl.Scale=Vector3.new(1, 1, 1)
- kl.Parent=p
- p.Parent=Model p=Instance.new("Part")
- p.Name="Part"
- p.formFactor="Custom"
- p.Size=Vector3.new(1.00000024, 1.20000005, 1.79999995)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Pastel Blue")
- p.CFrame=CFrame.new(-39.8999977, 0.790000081, 16.7000008, -1, 0, 0, 0, -1, 0, 0, 0, 1)
- p.BottomSurface=0
- p.TopSurface=0
- kl=Instance.new("BlockMesh")
- kl.Scale=Vector3.new(1, 1, 1)
- kl.Parent=p
- p.Parent=Model p=Instance.new("Part")
- p.Name="Part"
- p.formFactor="Custom"
- p.Size=Vector3.new(1.20000005, 1.80000019, 1)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Dark stone grey")
- p.CFrame=CFrame.new(-39.9000015, 1.38999987, 16.7000008, 0, 0, 1, -1, 0, 0, 0, -1, -4.37113883e-008)
- p.BottomSurface=0
- p.TopSurface=0
- kl=Instance.new("CylinderMesh")
- kl.Scale=Vector3.new(0.800000012, 1, 0.800000012)
- kl.Parent=p
- p.Parent=Model p=Instance.new("Part")
- p.Name="Part"
- p.formFactor="Custom"
- p.Size=Vector3.new(0.200000003, 1, 0.200000003)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Medium stone grey")
- p.CFrame=CFrame.new(-39.5000038, 0.690000057, 14.500001, -1, 0, 0, 0, -1, 0, 0, 0, 1)
- p.BottomSurface=0
- p.TopSurface=0
- kl=Instance.new("BlockMesh")
- kl.Scale=Vector3.new(1, 1, 1)
- kl.Parent=p
- p.Parent=Model p=Instance.new("Part")
- p.Name="Part"
- p.formFactor="Custom"
- p.Size=Vector3.new(1.00000024, 1.20000005, 1.5999999)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Dark stone grey")
- p.CFrame=CFrame.new(-39.9000015, 0.790000081, 16.6000004, -1, 0, 0, 0, -1, 0, 0, 0, 1)
- p.BottomSurface=0
- p.TopSurface=0
- kl=Instance.new("BlockMesh")
- kl.Scale=Vector3.new(0.800000012, 1, 1.00999999)
- kl.Parent=p
- p.Parent=Model p=Instance.new("Part")
- p.Name="Part"
- p.formFactor="Custom"
- p.Size=Vector3.new(0.200000003, 0.200000003, 0.200000003)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Medium stone grey")
- p.CFrame=CFrame.new(-39.9000015, 0.889999986, 14.500001, -1, 0, 0, 0, -1, 0, 0, 0, 1)
- p.BottomSurface=0
- p.TopSurface=0
- kl=Instance.new("BlockMesh")
- kl.Scale=Vector3.new(1, 1, 1)
- kl.Parent=p
- p.Parent=Model p=Instance.new("Part")
- p.Name="Part"
- p.formFactor="Custom"
- p.Size=Vector3.new(1.00000024, 0.200000003, 1.5999999)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Dark stone grey")
- p.CFrame=CFrame.new(-39.8999901, 0.290000021, 14.999999, -1, 0, 0, 0, -1, 0, 0, 0, 1)
- p.BottomSurface=0
- p.TopSurface=0
- kl=Instance.new("BlockMesh")
- kl.Scale=Vector3.new(1, 1, 1.00999999)
- kl.Parent=p
- p.Parent=Model p=Instance.new("Part")
- p.Name="Part"
- p.formFactor="Custom"
- p.Size=Vector3.new(0.200000033, 0.200000003, 0.200000003)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Bright yellow")
- p.CFrame=CFrame.new(-39.9000015, 0.689999998, 14.500001, -1, 0, 0, 0, -1, 0, 0, 0, 1)
- p.BottomSurface=0
- p.TopSurface=0
- kl=Instance.new("BlockMesh")
- kl.Scale=Vector3.new(1, 1, 1)
- kl.Parent=p
- p.Parent=Model p=Instance.new("Part")
- p.Name="Part"
- p.formFactor="Custom"
- p.Size=Vector3.new(0.600000024, 0.200000003, 0.200000003)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Medium stone grey")
- p.CFrame=CFrame.new(-39.8999977, 1.09000015, 14.500001, -1, 0, 0, 0, -1, 0, 0, 0, 1)
- p.BottomSurface=0
- p.TopSurface=0
- kl=Instance.new("BlockMesh")
- kl.Scale=Vector3.new(1, 1, 1)
- kl.Parent=p
- p.Parent=Model p=Instance.new("Part")
- p.Name="Part"
- p.formFactor="Custom"
- p.Size=Vector3.new(0.200000003, 1, 0.200000003)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Medium stone grey")
- p.CFrame=CFrame.new(-40.3000031, 0.690000057, 14.500001, -1, 0, 0, 0, -1, 0, 0, 0, 1)
- p.BottomSurface=0
- p.TopSurface=0
- kl=Instance.new("BlockMesh")
- kl.Scale=Vector3.new(1, 1, 1)
- kl.Parent=p
- p.Parent=Model
- return Model
- end
- Units["ConYard"]["Requires"]={"MCV"}
- Units["PowerPlant"]={}
- Units["PowerPlant"]["EnergyCost"]=-100
- Units["PowerPlant"]["MaxUnits"]=5
- Units["PowerPlant"]["BuildTime"]=6
- Units["PowerPlant"]["Model"]=function()
- Model=Instance.new("Model")
- Model.Name="PowerPlant" p=Instance.new("Part")
- p.Name="Part"
- p.formFactor="Custom"
- p.Size=Vector3.new(0.400000006, 0.200000003, 0.799999833)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Mid gray")
- p.CFrame=CFrame.new(-31.9999924, 0.5, 17, 0, 0, -1, 0, -1, -0, -1, 0, -0)
- p.BottomSurface=0
- p.TopSurface=0
- kl=Instance.new("BlockMesh")
- kl.Scale=Vector3.new(1.04999995, 1, 1.04999995)
- kl.Parent=p
- p.Parent=Model p=Instance.new("Part")
- p.Name="Part"
- p.formFactor="Custom"
- p.Size=Vector3.new(0.400000006, 0.200000003, 0.799999833)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Mid gray")
- p.CFrame=CFrame.new(-31.9999924, 0.5, 16, 0, 0, -1, 0, -1, -0, -1, 0, -0)
- p.BottomSurface=0
- p.TopSurface=0
- kl=Instance.new("BlockMesh")
- kl.Scale=Vector3.new(1.04999995, 1, 1.04999995)
- kl.Parent=p
- p.Parent=Model p=Instance.new("Part")
- p.Name="Part"
- p.formFactor="Custom"
- p.Size=Vector3.new(0.400000006, 0.200000003, 1.79999995)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Mid gray")
- p.CFrame=CFrame.new(-31.9999924, 0.5, 16.5, 1, 0, 0, 0, -1, 0, 0, 0, -1)
- p.BottomSurface=0
- p.TopSurface=0
- kl=Instance.new("BlockMesh")
- kl.Scale=Vector3.new(1.04999995, 1, 1.04999995)
- kl.Parent=p
- p.Parent=Model p=Instance.new("Part")
- p.Name="Part"
- p.formFactor="Custom"
- p.Size=Vector3.new(0.400000006, 0.200000003, 0.799999833)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Mid gray")
- p.CFrame=CFrame.new(-31.9999924, 0.900000036, 17, 0, 0, -1, 0, -1, -0, -1, 0, -0)
- p.BottomSurface=0
- p.TopSurface=0
- kl=Instance.new("BlockMesh")
- kl.Scale=Vector3.new(1.04999995, 1, 1.04999995)
- kl.Parent=p
- p.Parent=Model p=Instance.new("Part")
- p.Name="Part"
- p.formFactor="Custom"
- p.Size=Vector3.new(0.400000006, 0.200000003, 1.79999995)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Mid gray")
- p.CFrame=CFrame.new(-31.9999924, 0.900000036, 16.5, 1, 0, 0, 0, -1, 0, 0, 0, -1)
- p.BottomSurface=0
- p.TopSurface=0
- kl=Instance.new("BlockMesh")
- kl.Scale=Vector3.new(1.04999995, 1, 1.04999995)
- kl.Parent=p
- p.Parent=Model p=Instance.new("Part")
- p.Name="Part"
- p.formFactor="Custom"
- p.Size=Vector3.new(1, 1.4000001, 1.79999995)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Pastel Blue")
- p.CFrame=CFrame.new(-31.8999939, 0.900000036, 16.5, 1, 0, 0, 0, -1, 0, 0, 0, -1)
- p.BottomSurface=0
- p.TopSurface=0
- kl=Instance.new("BlockMesh")
- kl.Scale=Vector3.new(1, 1, 1)
- kl.Parent=p
- p.Parent=Model p=Instance.new("Part")
- p.Name="Part"
- p.formFactor="Custom"
- p.Size=Vector3.new(0.400000006, 0.200000003, 0.799999833)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Mid gray")
- p.CFrame=CFrame.new(-31.9999924, 0.900000036, 16, 0, 0, -1, 0, -1, -0, -1, 0, -0)
- p.BottomSurface=0
- p.TopSurface=0
- kl=Instance.new("BlockMesh")
- kl.Scale=Vector3.new(1.04999995, 1, 1.04999995)
- kl.Parent=p
- p.Parent=Model p=Instance.new("Part")
- p.Name="Part"
- p.formFactor="Custom"
- p.Size=Vector3.new(0.400000006, 0.200000003, 1.79999995)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Mid gray")
- p.CFrame=CFrame.new(-31.9999924, 1.30000007, 16.5, 1, 0, 0, 0, -1, 0, 0, 0, -1)
- p.BottomSurface=0
- p.TopSurface=0
- kl=Instance.new("BlockMesh")
- kl.Scale=Vector3.new(1.04999995, 1, 1.04999995)
- kl.Parent=p
- p.Parent=Model p=Instance.new("Part")
- p.Name="Part"
- p.formFactor="Custom"
- p.Size=Vector3.new(0.400000006, 0.200000003, 0.799999833)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Mid gray")
- p.CFrame=CFrame.new(-31.9999924, 1.30000007, 16, 0, 0, -1, 0, -1, -0, -1, 0, -0)
- p.BottomSurface=0
- p.TopSurface=0
- kl=Instance.new("BlockMesh")
- kl.Scale=Vector3.new(1.04999995, 1, 1.04999995)
- kl.Parent=p
- p.Parent=Model p=Instance.new("Part")
- p.Name="Part"
- p.formFactor="Custom"
- p.Size=Vector3.new(0.400000006, 0.200000003, 0.799999833)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Mid gray")
- p.CFrame=CFrame.new(-31.9999924, 1.30000007, 17, 0, 0, -1, 0, -1, -0, -1, 0, -0)
- p.BottomSurface=0
- p.TopSurface=0
- kl=Instance.new("BlockMesh")
- kl.Scale=Vector3.new(1.04999995, 1, 1.04999995)
- kl.Parent=p
- p.Parent=Model p=Instance.new("Part")
- p.Name="Part"
- p.formFactor="Custom"
- p.Size=Vector3.new(0.600000024, 0.400000006, 0.799999833)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Dark stone grey")
- p.CFrame=CFrame.new(-31.8999901, 2.20000029, 16.8000011, -1, 0, 0, 0, -1, 0, 0, 0, 1)
- p.BottomSurface=0
- p.TopSurface=0
- kl=Instance.new("CylinderMesh")
- kl.Scale=Vector3.new(0.600000024, 1, 0.600000024)
- kl.Parent=p
- p.Parent=Model p=Instance.new("Part")
- p.Name="Part"
- p.formFactor="Custom"
- p.Size=Vector3.new(0.600000024, 0.200000003, 0.799999833)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Dark stone grey")
- p.CFrame=CFrame.new(-31.8999901, 1.9000001, 16.2000008, -1, 0, 0, 0, -1, 0, 0, 0, 1)
- p.BottomSurface=0
- p.TopSurface=0
- kl=Instance.new("CylinderMesh")
- kl.Scale=Vector3.new(0.899999976, 1, 0.899999976)
- kl.Parent=p
- p.Parent=Model p=Instance.new("Part")
- p.Name="Part"
- p.formFactor="Custom"
- p.Size=Vector3.new(0.600000024, 0.200000003, 0.799999833)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Dark stone grey")
- p.CFrame=CFrame.new(-31.8999901, 1.90000021, 16.8000011, -1, 0, 0, 0, -1, 0, 0, 0, 1)
- p.BottomSurface=0
- p.TopSurface=0
- kl=Instance.new("CylinderMesh")
- kl.Scale=Vector3.new(0.899999976, 1, 0.899999976)
- kl.Parent=p
- p.Parent=Model p=Instance.new("Part")
- p.Name="Part"
- p.formFactor="Custom"
- p.Size=Vector3.new(0.600000024, 0.200000003, 1.39999986)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Dark stone grey")
- p.CFrame=CFrame.new(-31.8999939, 1.70000017, 16.5, -1, 0, 0, 0, -1, 0, 0, 0, 1)
- p.BottomSurface=0
- p.TopSurface=0
- kl=Instance.new("BlockMesh")
- kl.Scale=Vector3.new(1, 1, 1)
- kl.Parent=p
- p.Parent=Model p=Instance.new("Part")
- p.Name="Part"
- p.formFactor="Custom"
- p.Size=Vector3.new(0.600000024, 0.400000006, 0.799999833)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Dark stone grey")
- p.CFrame=CFrame.new(-31.8999901, 2.20000005, 16.2000008, -1, 0, 0, 0, -1, 0, 0, 0, 1)
- p.BottomSurface=0
- p.TopSurface=0
- kl=Instance.new("CylinderMesh")
- kl.Scale=Vector3.new(0.600000024, 1, 0.600000024)
- kl.Parent=p
- p.Parent=Model p=Instance.new("Part")
- p.Name="Plate"
- p.formFactor="Custom"
- p.Size=Vector3.new(3.00000048, 0.200000003, 3.00000024)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Medium stone grey")
- p.CFrame=CFrame.new(-31.0999908, 0.090000011, 16.5, -1, 0, 0, 0, -1, 0, 0, 0, 1)
- p.BottomSurface=0
- p.TopSurface=0
- p.Parent=Model p=Instance.new("Part")
- p.Name="Part"
- p.formFactor="Custom"
- p.Size=Vector3.new(0.600000024, 0.800000012, 0.400000036)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Pastel Blue")
- p.CFrame=CFrame.new(-31.0999832, 0.390000015, 15.5999832, -1, 0, 0, 0, -1, 0, 0, 0, 1)
- p.BottomSurface=0
- p.TopSurface=0
- kl=Instance.new("BlockMesh")
- kl.Scale=Vector3.new(1, 1, 1)
- kl.Parent=p
- p.Parent=Model p=Instance.new("Part")
- p.Name="Part"
- p.formFactor="Custom"
- p.Size=Vector3.new(0.600000024, 0.200000003, 0.999999821)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Dark stone grey")
- p.CFrame=CFrame.new(-31.0999908, 1.09000003, 16.5, -1, 0, 0, 0, -1, 0, 0, 0, 1)
- p.BottomSurface=0
- p.TopSurface=0
- kl=Instance.new("BlockMesh")
- kl.Scale=Vector3.new(1, 1, 1)
- kl.Parent=p
- p.Parent=Model p=Instance.new("Part")
- p.Name="Part"
- p.formFactor="Custom"
- p.Size=Vector3.new(0.600000024, 0.800000012, 1.39999986)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Pastel Blue")
- p.CFrame=CFrame.new(-31.1000099, 0.589999795, 16.5, -1, 0, 0, 0, -1, 0, 0, 0, 1)
- p.BottomSurface=0
- p.TopSurface=0
- kl=Instance.new("BlockMesh")
- kl.Scale=Vector3.new(1, 1, 1)
- kl.Parent=p
- p.Parent=Model p=Instance.new("Part")
- p.Name="Part"
- p.formFactor="Custom"
- p.Size=Vector3.new(0.400000006, 0.200000003, 0.799999833)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Mid gray")
- p.CFrame=CFrame.new(-30.2000046, 0.490000069, 17, 0, 0, 1, 0, -1, 0, 1, 0, -0)
- p.BottomSurface=0
- p.TopSurface=0
- kl=Instance.new("BlockMesh")
- kl.Scale=Vector3.new(1.04999995, 1, 1.04999995)
- kl.Parent=p
- p.Parent=Model p=Instance.new("Part")
- p.Name="Part"
- p.formFactor="Custom"
- p.Size=Vector3.new(0.400000006, 0.200000003, 0.799999833)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Mid gray")
- p.CFrame=CFrame.new(-30.1999931, 0.890000045, 17, 0, 0, 1, 0, -1, 0, 1, 0, -0)
- p.BottomSurface=0
- p.TopSurface=0
- kl=Instance.new("BlockMesh")
- kl.Scale=Vector3.new(1.04999995, 1, 1.04999995)
- kl.Parent=p
- p.Parent=Model p=Instance.new("Part")
- p.Name="Part"
- p.formFactor="Custom"
- p.Size=Vector3.new(0.400000006, 0.200000003, 1.79999995)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Mid gray")
- p.CFrame=CFrame.new(-30.2000046, 0.49000001, 16.5, -1, 0, 0, 0, -1, 0, 0, 0, 1)
- p.BottomSurface=0
- p.TopSurface=0
- kl=Instance.new("BlockMesh")
- kl.Scale=Vector3.new(1.04999995, 1, 1.04999995)
- kl.Parent=p
- p.Parent=Model p=Instance.new("Part")
- p.Name="Part"
- p.formFactor="Custom"
- p.Size=Vector3.new(1, 1.4000001, 1.79999995)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Pastel Blue")
- p.CFrame=CFrame.new(-30.3000069, 0.890000105, 16.5, -1, 0, 0, 0, -1, 0, 0, 0, 1)
- p.BottomSurface=0
- p.TopSurface=0
- kl=Instance.new("BlockMesh")
- kl.Scale=Vector3.new(1, 1, 1)
- kl.Parent=p
- p.Parent=Model p=Instance.new("Part")
- p.Name="Part"
- p.formFactor="Custom"
- p.Size=Vector3.new(0.400000006, 0.200000003, 1.79999995)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Mid gray")
- p.CFrame=CFrame.new(-30.1999931, 0.890000045, 16.5, -1, 0, 0, 0, -1, 0, 0, 0, 1)
- p.BottomSurface=0
- p.TopSurface=0
- kl=Instance.new("BlockMesh")
- kl.Scale=Vector3.new(1.04999995, 1, 1.04999995)
- kl.Parent=p
- p.Parent=Model p=Instance.new("Part")
- p.Name="Part"
- p.formFactor="Custom"
- p.Size=Vector3.new(0.400000006, 0.200000003, 0.799999833)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Mid gray")
- p.CFrame=CFrame.new(-30.2000046, 0.490000069, 16, 0, 0, 1, 0, -1, 0, 1, 0, -4.37113883e-008)
- p.BottomSurface=0
- p.TopSurface=0
- kl=Instance.new("BlockMesh")
- kl.Scale=Vector3.new(1.04999995, 1, 1.04999995)
- kl.Parent=p
- p.Parent=Model p=Instance.new("Part")
- p.Name="Part"
- p.formFactor="Custom"
- p.Size=Vector3.new(0.400000006, 0.200000003, 0.799999833)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Mid gray")
- p.CFrame=CFrame.new(-30.1999931, 1.29000008, 17, 0, 0, 1, 0, -1, 0, 1, 0, -0)
- p.BottomSurface=0
- p.TopSurface=0
- kl=Instance.new("BlockMesh")
- kl.Scale=Vector3.new(1.04999995, 1, 1.04999995)
- kl.Parent=p
- p.Parent=Model p=Instance.new("Part")
- p.Name="Part"
- p.formFactor="Custom"
- p.Size=Vector3.new(0.400000006, 0.200000003, 1.79999995)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Mid gray")
- p.CFrame=CFrame.new(-30.1999931, 1.29000008, 16.5, -1, 0, 0, 0, -1, 0, 0, 0, 1)
- p.BottomSurface=0
- p.TopSurface=0
- kl=Instance.new("BlockMesh")
- kl.Scale=Vector3.new(1.04999995, 1, 1.04999995)
- kl.Parent=p
- p.Parent=Model p=Instance.new("Part")
- p.Name="Part"
- p.formFactor="Custom"
- p.Size=Vector3.new(0.400000006, 0.200000003, 0.799999833)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Mid gray")
- p.CFrame=CFrame.new(-30.1999931, 0.890000045, 16, 0, 0, 1, 0, -1, 0, 1, 0, -4.37113883e-008)
- p.BottomSurface=0
- p.TopSurface=0
- kl=Instance.new("BlockMesh")
- kl.Scale=Vector3.new(1.04999995, 1, 1.04999995)
- kl.Parent=p
- p.Parent=Model p=Instance.new("Part")
- p.Name="Part"
- p.formFactor="Custom"
- p.Size=Vector3.new(0.600000024, 0.200000003, 0.799999833)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Dark stone grey")
- p.CFrame=CFrame.new(-30.3000069, 1.88999999, 16.7999992, -1, 0, 0, 0, -1, 0, 0, 0, 1)
- p.BottomSurface=0
- p.TopSurface=0
- kl=Instance.new("CylinderMesh")
- kl.Scale=Vector3.new(0.899999976, 1, 0.899999976)
- kl.Parent=p
- p.Parent=Model p=Instance.new("Part")
- p.Name="Part"
- p.formFactor="Custom"
- p.Size=Vector3.new(0.600000024, 0.200000003, 1.39999986)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Dark stone grey")
- p.CFrame=CFrame.new(-30.3000069, 1.69000018, 16.4999981, -1, 0, 0, 0, -1, 0, 0, 0, 1)
- p.BottomSurface=0
- p.TopSurface=0
- kl=Instance.new("BlockMesh")
- kl.Scale=Vector3.new(1, 1, 1)
- kl.Parent=p
- p.Parent=Model p=Instance.new("Part")
- p.Name="Part"
- p.formFactor="Custom"
- p.Size=Vector3.new(0.400000006, 0.200000003, 0.799999833)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Mid gray")
- p.CFrame=CFrame.new(-30.1999931, 1.29000008, 16, 0, 0, 1, 0, -1, 0, 1, 0, -4.37113883e-008)
- p.BottomSurface=0
- p.TopSurface=0
- kl=Instance.new("BlockMesh")
- kl.Scale=Vector3.new(1.04999995, 1, 1.04999995)
- kl.Parent=p
- p.Parent=Model p=Instance.new("Part")
- p.Name="Part"
- p.formFactor="Custom"
- p.Size=Vector3.new(0.600000024, 0.400000006, 0.799999833)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Dark stone grey")
- p.CFrame=CFrame.new(-30.3000069, 2.19000006, 16.7999992, -1, 0, 0, 0, -1, 0, 0, 0, 1)
- p.BottomSurface=0
- p.TopSurface=0
- kl=Instance.new("CylinderMesh")
- kl.Scale=Vector3.new(0.600000024, 1, 0.600000024)
- kl.Parent=p
- p.Parent=Model p=Instance.new("Part")
- p.Name="Part"
- p.formFactor="Custom"
- p.Size=Vector3.new(0.600000024, 0.200000003, 0.799999833)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Dark stone grey")
- p.CFrame=CFrame.new(-30.3000069, 1.8900001, 16.2000008, -1, 0, 0, 0, -1, 0, 0, 0, 1)
- p.BottomSurface=0
- p.TopSurface=0
- kl=Instance.new("CylinderMesh")
- kl.Scale=Vector3.new(0.899999976, 1, 0.899999976)
- kl.Parent=p
- p.Parent=Model p=Instance.new("Part")
- p.Name="Part"
- p.formFactor="Custom"
- p.Size=Vector3.new(0.600000024, 0.400000006, 0.799999833)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Dark stone grey")
- p.CFrame=CFrame.new(-30.3000069, 2.19000006, 16.2000008, -1, 0, 0, 0, -1, 0, 0, 0, 1)
- p.BottomSurface=0
- p.TopSurface=0
- kl=Instance.new("CylinderMesh")
- kl.Scale=Vector3.new(0.600000024, 1, 0.600000024)
- kl.Parent=p
- p.Parent=Model
- return Model
- end
- Units["PowerPlant"]["Requires"]={"ConYard"}
- Units["WarFactory"]={}
- Units["WarFactory"]["EnergyCost"]=40
- Units["WarFactory"]["MaxUnits"]=2
- Units["WarFactory"]["BuildTime"]=4
- Units["WarFactory"]["Model"]=function()
- Model=Instance.new("Model")
- Model.Name="WarFactory" p=Instance.new("Part")
- p.Name="Part"
- p.formFactor="Custom"
- p.Size=Vector3.new(0.200000003, 1, 0.200000003)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Pastel Blue")
- p.CFrame=CFrame.new(-35.8999939, 0.690000057, 15.7000008, -1, 0, 0, 0, -1, 0, 0, 0, 1)
- p.BottomSurface=0
- p.TopSurface=0
- kl=Instance.new("BlockMesh")
- kl.Scale=Vector3.new(1, 1, 1)
- kl.Parent=p
- p.Parent=Model p=Instance.new("WedgePart")
- p.Name="Part"
- p.formFactor="Custom"
- p.Size=Vector3.new(1.80000019, 0.200000003, 0.400000006)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Pastel Blue")
- p.CFrame=CFrame.new(-35.9999962, 1.49000013, 16.7000008, 0, 0, 1, 0, 1, 0, -1, 0, -4.37113883e-008)
- p.BottomSurface=0
- p.TopSurface=0
- p.Parent=Model p=Instance.new("Part")
- p.Name="Part"
- p.formFactor="Custom"
- p.Size=Vector3.new(1, 0.400000036, 0.200000003)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Pastel Blue")
- p.CFrame=CFrame.new(-35.5, 0.390000165, 17.7000008, -1, 0, 0, 0, -1, 0, 0, 0, 1)
- p.BottomSurface=0
- p.TopSurface=0
- kl=Instance.new("BlockMesh")
- kl.Scale=Vector3.new(1, 1, 1)
- kl.Parent=p
- p.Parent=Model p=Instance.new("Part")
- p.Name="Plate"
- p.formFactor="Custom"
- p.Size=Vector3.new(3.00000048, 0.200000003, 3.00000024)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Medium stone grey")
- p.CFrame=CFrame.new(-35.0999908, 0.090000011, 16.5, -1, 0, 0, 0, -1, 0, 0, 0, 1)
- p.BottomSurface=0
- p.TopSurface=0
- p.Parent=Model p=Instance.new("Part")
- p.Name="Part"
- p.formFactor="Custom"
- p.Size=Vector3.new(1.40000033, 1, 0.200000003)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Dark stone grey")
- p.CFrame=CFrame.new(-35.0999947, 0.690000117, 15.7899971, -1, 0, 0, 0, -1, 0, 0, 0, 1)
- p.BottomSurface=0
- p.TopSurface=0
- kl=Instance.new("BlockMesh")
- kl.Scale=Vector3.new(1, 1, 1)
- kl.Parent=p
- p.Parent=Model p=Instance.new("Part")
- p.Name="Part"
- p.formFactor="Custom"
- p.Size=Vector3.new(0.200000003, 1.79999995, 0.200000003)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Pastel Blue")
- p.CFrame=CFrame.new(-35.0999908, 1.29000008, 15.7000008, 4.37113741e-008, 0.999999881, -8.74227695e-008, 0, -4.37113776e-008, -0.999999821, -0.999999821, -1.91068462e-015, 3.55271368e-015)
- p.BottomSurface=0
- p.TopSurface=0
- kl=Instance.new("BlockMesh")
- kl.Scale=Vector3.new(1, 1, 1)
- kl.Parent=p
- p.Parent=Model p=Instance.new("Part")
- p.Name="Part"
- p.formFactor="Custom"
- p.Size=Vector3.new(1.4000001, 0.200000003, 1.79999995)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Pastel Blue")
- p.CFrame=CFrame.new(-35.0999947, 1.49000001, 16.7000008, -1, 0, 0, 0, -1, 0, 0, 0, 1)
- p.BottomSurface=0
- p.TopSurface=0
- kl=Instance.new("BlockMesh")
- kl.Scale=Vector3.new(1, 1, 1)
- kl.Parent=p
- p.Parent=Model p=Instance.new("Part")
- p.Name="Part"
- p.formFactor="Custom"
- p.Size=Vector3.new(2.20000029, 1.20000005, 1.79999995)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Pastel Blue")
- p.CFrame=CFrame.new(-35.0999985, 0.790000021, 16.7000008, -1, 0, 0, 0, -1, 0, 0, 0, 1)
- p.BottomSurface=0
- p.TopSurface=0
- kl=Instance.new("BlockMesh")
- kl.Scale=Vector3.new(1, 1, 1)
- kl.Parent=p
- p.Parent=Model p=Instance.new("Part")
- p.Name="Part"
- p.formFactor="Custom"
- p.Size=Vector3.new(0.200000003, 1, 0.200000003)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Pastel Blue")
- p.CFrame=CFrame.new(-34.3000031, 0.690000057, 15.7000017, -1, 0, 0, 0, -1, 0, 0, 0, 1)
- p.BottomSurface=0
- p.TopSurface=0
- kl=Instance.new("BlockMesh")
- kl.Scale=Vector3.new(1, 1, 1)
- kl.Parent=p
- p.Parent=Model p=Instance.new("WedgePart")
- p.Name="Part"
- p.formFactor="Custom"
- p.Size=Vector3.new(1.80000019, 0.200000003, 0.400000006)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Pastel Blue")
- p.CFrame=CFrame.new(-34.1999969, 1.49000013, 16.7000008, 4.37113883e-008, 0, -1, 0, 1, 0, 1, 0, 4.37113883e-008)
- p.BottomSurface=0
- p.TopSurface=0
- p.Parent=Model
- return Model
- end
- Units["WarFactory"]["Requires"]={"ConYard"}
- Units["Barracks"]={}
- Units["Barracks"]["EnergyCost"]=20
- Units["Barracks"]["MaxUnits"]=3
- Units["Barracks"]["BuildTime"]=2
- Units["Barracks"]["Model"]=function()
- Model=Instance.new("Model")
- Model.Name="Barracks" p=Instance.new("WedgePart")
- p.Name="Part"
- p.formFactor="Custom"
- p.Size=Vector3.new(0.200000003, 0.200000003, 0.200000003)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Pastel Blue")
- p.CFrame=CFrame.new(-42.8999939, 0.690000057, 15.3000002, -8.74227766e-008, 0, 1, 0, 1, 0, -1, 0, -1.31134158e-007)
- p.BottomSurface=0
- p.TopSurface=0
- p.Parent=Model p=Instance.new("WedgePart")
- p.Name="Part"
- p.formFactor="Custom"
- p.Size=Vector3.new(0.200000003, 0.200000003, 0.200000003)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Pastel Blue")
- p.CFrame=CFrame.new(-42.6999931, 0.690000057, 15.3000002, 2.18556949e-007, 0, -1, 0, 1, 0, 1, 0, 2.62268344e-007)
- p.BottomSurface=0
- p.TopSurface=0
- p.Parent=Model p=Instance.new("Part")
- p.Name="Part"
- p.formFactor="Custom"
- p.Size=Vector3.new(0.400000274, 0.400000036, 0.200000003)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Pastel Blue")
- p.CFrame=CFrame.new(-42.7999954, 0.390000045, 15.2999992, -1, 0, 0, 0, -1, 0, 0, 0, 1)
- p.BottomSurface=0
- p.TopSurface=0
- kl=Instance.new("BlockMesh")
- kl.Scale=Vector3.new(1, 1, 1)
- kl.Parent=p
- p.Parent=Model p=Instance.new("Part")
- p.Name="Part"
- p.formFactor="Custom"
- p.Size=Vector3.new(1.60000038, 0.800000012, 2.4000001)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Pastel Blue")
- p.CFrame=CFrame.new(-42.3999939, 0.590000033, 16.6000004, -1, 0, 0, 0, -1, 0, 0, 0, 1)
- p.BottomSurface=0
- p.TopSurface=0
- kl=Instance.new("BlockMesh")
- kl.Scale=Vector3.new(1, 1, 1)
- kl.Parent=p
- p.Parent=Model p=Instance.new("Part")
- p.Name="Plate"
- p.formFactor="Custom"
- p.Size=Vector3.new(2.00000048, 0.200000003, 3.00000024)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Medium stone grey")
- p.CFrame=CFrame.new(-42.3999939, 0.090000011, 16.5, -1, 0, 0, 0, -1, 0, 0, 0, 1)
- p.BottomSurface=0
- p.TopSurface=0
- p.Parent=Model p=Instance.new("WedgePart")
- p.Name="Part"
- p.formFactor="Custom"
- p.Size=Vector3.new(2.40000033, 0.200000003, 0.200000003)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Pastel Blue")
- p.CFrame=CFrame.new(-43.0999947, 1.09000003, 16.6000004, 0, 0, 1, 0, 1, 0, -1, 0, -4.37113883e-008)
- p.BottomSurface=0
- p.TopSurface=0
- p.Parent=Model p=Instance.new("WedgePart")
- p.Name="Part"
- p.formFactor="Custom"
- p.Size=Vector3.new(2.40000033, 0.200000003, 0.200000003)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Pastel Blue")
- p.CFrame=CFrame.new(-42.4999962, 1.09000003, 16.5999985, 1.31134158e-007, 0, -1, 0, 1, 0, 1, 0, 1.74845553e-007)
- p.BottomSurface=0
- p.TopSurface=0
- p.Parent=Model p=Instance.new("Part")
- p.Name="Part"
- p.formFactor="Custom"
- p.Size=Vector3.new(0.400000393, 0.200000003, 2.4000001)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Pastel Blue")
- p.CFrame=CFrame.new(-42.7999954, 1.09000003, 16.6000004, -1, 0, 0, 0, -1, 0, 0, 0, 1)
- p.BottomSurface=0
- p.TopSurface=0
- kl=Instance.new("BlockMesh")
- kl.Scale=Vector3.new(1, 1, 1)
- kl.Parent=p
- p.Parent=Model p=Instance.new("WedgePart")
- p.Name="Part"
- p.formFactor="Custom"
- p.Size=Vector3.new(2.40000033, 0.200000003, 0.200000003)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Pastel Blue")
- p.CFrame=CFrame.new(-42.2999916, 1.09000003, 16.6000004, -8.74227766e-008, 0, 1, 0, 1, 0, -1, 0, -1.31134158e-007)
- p.BottomSurface=0
- p.TopSurface=0
- p.Parent=Model p=Instance.new("WedgePart")
- p.Name="Part"
- p.formFactor="Custom"
- p.Size=Vector3.new(0.200000003, 0.200000003, 0.200000003)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Pastel Blue")
- p.CFrame=CFrame.new(-42.0999947, 0.690000057, 15.3000002, -1.74845553e-007, 0, 1, 0, 1, 0, -1, 0, -1.74845553e-007)
- p.BottomSurface=0
- p.TopSurface=0
- p.Parent=Model p=Instance.new("Part")
- p.Name="Part"
- p.formFactor="Custom"
- p.Size=Vector3.new(0.400000274, 0.400000036, 0.200000003)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Pastel Blue")
- p.CFrame=CFrame.new(-42.0000114, 0.389999956, 15.2999992, -1, 0, 0, 0, -1, 0, 0, 0, 1)
- p.BottomSurface=0
- p.TopSurface=0
- kl=Instance.new("BlockMesh")
- kl.Scale=Vector3.new(1, 1, 1)
- kl.Parent=p
- p.Parent=Model p=Instance.new("Part")
- p.Name="Part"
- p.formFactor="Custom"
- p.Size=Vector3.new(0.400000393, 0.200000003, 2.4000001)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Pastel Blue")
- p.CFrame=CFrame.new(-42, 1.08999991, 16.6000004, -1, 0, 0, 0, -1, 0, 0, 0, 1)
- p.BottomSurface=0
- p.TopSurface=0
- kl=Instance.new("BlockMesh")
- kl.Scale=Vector3.new(1, 1, 1)
- kl.Parent=p
- p.Parent=Model p=Instance.new("WedgePart")
- p.Name="Part"
- p.formFactor="Custom"
- p.Size=Vector3.new(0.200000003, 0.200000003, 0.200000003)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Pastel Blue")
- p.CFrame=CFrame.new(-41.900013, 0.689999998, 15.2999992, 1.31134158e-007, 0, -1, 0, 1, 0, 1, 0, 1.74845553e-007)
- p.BottomSurface=0
- p.TopSurface=0
- p.Parent=Model p=Instance.new("Part")
- p.Name="Part"
- p.formFactor="Custom"
- p.Size=Vector3.new(0.200000003, 0.800000012, 0.200000003)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Dark stone grey")
- p.CFrame=CFrame.new(-42.8600044, 1.59000015, 17.5000038, -1, 0, 0, 0, -1, 0, 0, 0, 1)
- p.BottomSurface=0
- p.TopSurface=0
- kl=Instance.new("CylinderMesh")
- kl.Scale=Vector3.new(0.300000012, 1, 0.300000012)
- kl.Parent=p
- p.Parent=Model p=Instance.new("Part")
- p.Name="Part"
- p.formFactor="Custom"
- p.Size=Vector3.new(0.400000006, 0.339999944, 0.200000003)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Pastel Blue")
- p.CFrame=CFrame.new(-43.0600014, 1.76000023, 17.5, -1, 0, 0, 0, -1, 0, 0, 0, 1)
- p.BottomSurface=0
- p.TopSurface=0
- kl=Instance.new("BlockMesh")
- kl.Scale=Vector3.new(1, 1, 0.100000001)
- kl.Parent=p
- p.Parent=Model p=Instance.new("WedgePart")
- p.Name="Part"
- p.formFactor="Custom"
- p.Size=Vector3.new(2.40000033, 0.200000003, 0.200000003)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Pastel Blue")
- p.CFrame=CFrame.new(-41.7000008, 1.09000003, 16.6000023, 4.37113883e-008, 0, -1, 0, 1, 0, 1, 0, 8.74227766e-008)
- p.BottomSurface=0
- p.TopSurface=0
- p.Parent=Model
- return Model
- end
- Units["Barracks"]["Requires"]={"ConYard"}
- Units["RadarDome"]={}
- Units["RadarDome"]["EnergyCost"]=50
- Units["RadarDome"]["MaxUnits"]=1
- Units["RadarDome"]["BuildTime"]=5
- Units["RadarDome"]["Model"]=function()
- Model=Instance.new("Model")
- Model.Name="RadarDome" p=Instance.new("Part")
- p.Name="Part"
- p.formFactor="Custom"
- p.Size=Vector3.new(1.60000014, 1.60000014, 1.60000014)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Mid gray")
- p.CFrame=CFrame.new(-45.3999939, 0.390000224, 17, -4.37113954e-008, -4.37113812e-008, 1, -7.37408419e-015, 1, 4.37113705e-008, -1, -7.10542736e-015, -8.74227908e-008)
- p.BottomSurface=0
- p.TopSurface=0
- kl=Instance.new("SpecialMesh")
- kl.Scale=Vector3.new(0.949999988, 0.949999988, 0.949999988)
- kl.Parent=p
- kl.MeshType="Sphere" p.Parent=Model p=Instance.new("Part")
- p.Name="Part"
- p.formFactor="Custom"
- p.Size=Vector3.new(2.00000024, 0.400000006, 1.20000005)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Dark stone grey")
- p.CFrame=CFrame.new(-45.8000069, 0.390000015, 17, -4.37113954e-008, -4.37113812e-008, 1, -7.37408419e-015, 1, 4.37113705e-008, -1, -7.10542736e-015, -8.74227908e-008)
- p.BottomSurface=0
- p.TopSurface=0
- kl=Instance.new("CylinderMesh")
- kl.Scale=Vector3.new(1, 1, 1)
- kl.Parent=p
- p.Parent=Model p=Instance.new("Part")
- p.Name="Part"
- p.formFactor="Custom"
- p.Size=Vector3.new(2.00000024, 0.400000006, 1.20000005)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Dark stone grey")
- p.CFrame=CFrame.new(-45.0000076, 0.390000015, 17, -4.37113954e-008, -4.37113812e-008, 1, -7.37408419e-015, 1, 4.37113705e-008, -1, -7.10542736e-015, -8.74227908e-008)
- p.BottomSurface=0
- p.TopSurface=0
- kl=Instance.new("CylinderMesh")
- kl.Scale=Vector3.new(1, 1, 1)
- kl.Parent=p
- p.Parent=Model p=Instance.new("Part")
- p.Name="Part"
- p.formFactor="Custom"
- p.Size=Vector3.new(2.00000024, 0.200000003, 2.00000024)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Pastel Blue")
- p.CFrame=CFrame.new(-45.4000015, 0.290000021, 17.0000019, -4.37113954e-008, -4.37113812e-008, 1, -7.37408419e-015, 1, 4.37113705e-008, -1, -7.10542736e-015, -8.74227908e-008)
- p.BottomSurface=0
- p.TopSurface=0
- kl=Instance.new("CylinderMesh")
- kl.Scale=Vector3.new(0.800000012, 1, 0.800000012)
- kl.Parent=p
- p.Parent=Model p=Instance.new("Part")
- p.Name="Plate"
- p.formFactor="Custom"
- p.Size=Vector3.new(2, 0.200000003, 2)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Medium stone grey")
- p.CFrame=CFrame.new(-45.3999939, 0.090000011, 17, -1, 0, 0, 0, -1, 0, 0, 0, 1)
- p.BottomSurface=0
- p.TopSurface=0
- p.Parent=Model p=Instance.new("Part")
- p.Name="Part"
- p.formFactor="Custom"
- p.Size=Vector3.new(0.799999833, 0.400000006, 0.400000006)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Medium stone grey")
- p.CFrame=CFrame.new(-45.4000015, 0.390000075, 16.4000015, -1, 0, 0, 0, -1, 0, 0, 0, 1)
- p.BottomSurface=0
- p.TopSurface=0
- kl=Instance.new("BlockMesh")
- kl.Scale=Vector3.new(1, 1, 1)
- kl.Parent=p
- p.Parent=Model
- return Model
- end
- Units["RadarDome"]["Requires"]={"ConYard"}
- Units["TechCenter"]={}
- Units["TechCenter"]["EnergyCost"]=70
- Units["TechCenter"]["MaxUnits"]=1
- Units["TechCenter"]["BuildTime"]=8
- Units["TechCenter"]["Model"]=function()
- Model=Instance.new("Model")
- Model.Name="TechCenter" p=Instance.new("Part")
- p.Name="Part"
- p.formFactor="Custom"
- p.Size=Vector3.new(0.999999821, 0.200000003, 1.60000002)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Medium stone grey")
- p.CFrame=CFrame.new(-56.7000122, 0.290000021, 23, -1, 0, 0, 0, -1, 0, 0, 0, 1)
- p.BottomSurface=0
- p.TopSurface=0
- p.Parent=Model p=Instance.new("Part")
- p.Name="Part"
- p.formFactor="Custom"
- p.Size=Vector3.new(0.599999845, 0.400000036, 1.4000001)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Pastel Blue")
- p.CFrame=CFrame.new(-56.7000008, 0.590000033, 23.1000004, -1, 0, 0, 0, -1, 0, 0, 0, 1)
- p.BottomSurface=0
- p.TopSurface=0
- p.Parent=Model p=Instance.new("WedgePart")
- p.Name="Part"
- p.formFactor="Custom"
- p.Size=Vector3.new(0.80000025, 0.200000003, 0.200000003)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Pastel Blue")
- p.CFrame=CFrame.new(-56.8999977, 0.890000105, 22.7999992, 0, 0, 1, 0, 1, 0, -1, 0, -4.37113883e-008)
- p.BottomSurface=0
- p.TopSurface=0
- p.Parent=Model p=Instance.new("WedgePart")
- p.Name="Part"
- p.formFactor="Custom"
- p.Size=Vector3.new(0.600000262, 0.200000003, 0.200000003)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Pastel Blue")
- p.CFrame=CFrame.new(-56.8999977, 1.09000015, 23.5000019, -8.74227766e-008, 0, 1, 0, 1, 0, -1, 0, -1.31134158e-007)
- p.BottomSurface=0
- p.TopSurface=0
- p.Parent=Model p=Instance.new("Part")
- p.Name="Part"
- p.formFactor="Custom"
- p.Size=Vector3.new(0.799999833, 0.200000003, 0.200000003)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Pastel Blue")
- p.CFrame=CFrame.new(-56.7000046, 0.890000045, 22.7999992, 0, 0, 1, 0, -1, 0, 1, 0, -4.37113883e-008)
- p.BottomSurface=0
- p.TopSurface=0
- p.Parent=Model p=Instance.new("Part")
- p.Name="Part"
- p.formFactor="Custom"
- p.Size=Vector3.new(0.999999821, 1.20000005, 0.600000024)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Pastel Blue")
- p.CFrame=CFrame.new(-55.9000015, 0.99000001, 23.5000019, -1, 0, 0, 0, -1, 0, 0, 0, 1)
- p.BottomSurface=0
- p.TopSurface=0
- p.Parent=Model p=Instance.new("Part")
- p.Name="Part"
- p.formFactor="Custom"
- p.Size=Vector3.new(0.200000003, 0.200000033, 0.600000024)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Pastel Blue")
- p.CFrame=CFrame.new(-56.9000092, 0.890000045, 23.5, -1, 0, 0, 0, -1, 0, 0, 0, 1)
- p.BottomSurface=0
- p.TopSurface=0
- p.Parent=Model p=Instance.new("Part")
- p.Name="Part"
- p.formFactor="Custom"
- p.Size=Vector3.new(0.599999845, 0.200000003, 0.799999952)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Medium stone grey")
- p.CFrame=CFrame.new(-55.9000053, 0.290000021, 23.4000015, -1, 0, 0, 0, -1, 0, 0, 0, 1)
- p.BottomSurface=0
- p.TopSurface=0
- p.Parent=Model p=Instance.new("Part")
- p.Name="Plate"
- p.formFactor="Custom"
- p.Size=Vector3.new(3, 0.200000003, 2)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Medium stone grey")
- p.CFrame=CFrame.new(-55.9000015, 0.0900000781, 23, -1, 0, 0, 0, -1, 0, 0, 0, 1)
- p.BottomSurface=0
- p.TopSurface=0
- p.Parent=Model p=Instance.new("Part")
- p.Name="Part"
- p.formFactor="Custom"
- p.Size=Vector3.new(0.400000006, 0.400000036, 0.600000024)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Pastel Blue")
- p.CFrame=CFrame.new(-56.5999985, 0.99000001, 23.5000019, -1, 0, 0, 0, -1, 0, 0, 0, 1)
- p.BottomSurface=0
- p.TopSurface=0
- p.Parent=Model p=Instance.new("Part")
- p.Name="Part"
- p.formFactor="Custom"
- p.Size=Vector3.new(1, 0.200000003, 0.399999857)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Mid gray")
- p.CFrame=CFrame.new(-55.8999977, 0.889999807, 23.3999939, 1, 0, 0, 0, -1, 0, 0, 0, -1)
- p.BottomSurface=0
- p.TopSurface=0
- kl=Instance.new("BlockMesh")
- kl.Scale=Vector3.new(0.949999988, 1, 1.04999995)
- kl.Parent=p
- p.Parent=Model p=Instance.new("WedgePart")
- p.Name="Part"
- p.formFactor="Custom"
- p.Size=Vector3.new(0.80000025, 0.200000003, 0.200000003)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Pastel Blue")
- p.CFrame=CFrame.new(-56.5, 0.890000045, 22.8000011, 0, 0, -1, 0, 1, 0, 1, 0, 4.37113883e-008)
- p.BottomSurface=0
- p.TopSurface=0
- p.Parent=Model p=Instance.new("WedgePart")
- p.Name="Part"
- p.formFactor="Custom"
- p.Size=Vector3.new(0.80000025, 0.200000003, 0.200000003)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Pastel Blue")
- p.CFrame=CFrame.new(-54.9000053, 0.890000165, 22.8000031, 4.37113883e-008, 0, -1, 0, 1, 0, 1, 0, 8.74227766e-008)
- p.BottomSurface=0
- p.TopSurface=0
- p.Parent=Model p=Instance.new("WedgePart")
- p.Name="Part"
- p.formFactor="Custom"
- p.Size=Vector3.new(0.80000025, 0.200000003, 0.200000003)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Pastel Blue")
- p.CFrame=CFrame.new(-55.2999992, 0.890000165, 22.8000031, 0, 0, 1, 0, 1, 0, -1, 0, -4.37113883e-008)
- p.BottomSurface=0
- p.TopSurface=0
- p.Parent=Model p=Instance.new("Part")
- p.Name="Part"
- p.formFactor="Custom"
- p.Size=Vector3.new(0.399999857, 0.400000036, 0.600000024)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Pastel Blue")
- p.CFrame=CFrame.new(-55.2000008, 0.99000001, 23.5000019, -1, 0, 0, 0, -1, 0, 0, 0, 1)
- p.BottomSurface=0
- p.TopSurface=0
- p.Parent=Model p=Instance.new("Part")
- p.Name="Part"
- p.formFactor="Custom"
- p.Size=Vector3.new(0.799999833, 0.200000003, 0.200000003)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Pastel Blue")
- p.CFrame=CFrame.new(-55.1000023, 0.890000105, 22.8000031, 0, 0, 1, 0, -1, 0, 1, 0, -4.37113883e-008)
- p.BottomSurface=0
- p.TopSurface=0
- p.Parent=Model p=Instance.new("Part")
- p.Name="Part"
- p.formFactor="Custom"
- p.Size=Vector3.new(0.599999845, 0.400000036, 1.4000001)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Pastel Blue")
- p.CFrame=CFrame.new(-55.0999985, 0.590000033, 23.1000023, -1, 0, 0, 0, -1, 0, 0, 0, 1)
- p.BottomSurface=0
- p.TopSurface=0
- p.Parent=Model p=Instance.new("WedgePart")
- p.Name="Part"
- p.formFactor="Custom"
- p.Size=Vector3.new(0.600000262, 0.200000003, 0.200000003)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Pastel Blue")
- p.CFrame=CFrame.new(-54.9000015, 1.09000003, 23.5000038, 4.37113883e-008, 0, -1, 0, 1, 0, 1, 0, 8.74227766e-008)
- p.BottomSurface=0
- p.TopSurface=0
- p.Parent=Model p=Instance.new("Part")
- p.Name="Part"
- p.formFactor="Custom"
- p.Size=Vector3.new(0.200000003, 0.200000033, 0.600000024)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Pastel Blue")
- p.CFrame=CFrame.new(-54.9000015, 0.890000045, 23.5, -1, 0, 0, 0, -1, 0, 0, 0, 1)
- p.BottomSurface=0
- p.TopSurface=0
- p.Parent=Model p=Instance.new("Part")
- p.Name="Part"
- p.formFactor="Custom"
- p.Size=Vector3.new(1, 0.200000003, 0.399999857)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Mid gray")
- p.CFrame=CFrame.new(-55.9000015, 1.28999996, 23.4000015, 1, 0, 0, 0, -1, 0, 0, 0, -1)
- p.BottomSurface=0
- p.TopSurface=0
- kl=Instance.new("BlockMesh")
- kl.Scale=Vector3.new(0.949999988, 1, 1.04999995)
- kl.Parent=p
- p.Parent=Model p=Instance.new("Part")
- p.Name="Part"
- p.formFactor="Custom"
- p.Size=Vector3.new(0.999999821, 0.200000003, 1.60000002)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Medium stone grey")
- p.CFrame=CFrame.new(-55.1000061, 0.290000021, 23.0000019, -1, 0, 0, 0, -1, 0, 0, 0, 1)
- p.BottomSurface=0
- p.TopSurface=0
- p.Parent=Model p=Instance.new("WedgePart")
- p.Name="Part"
- p.formFactor="Custom"
- p.Size=Vector3.new(0.600000262, 0.200000003, 0.200000003)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Pastel Blue")
- p.CFrame=CFrame.new(-55.5000038, 1.69000006, 23.5000019, 0, 0, -1, 0, 1, 0, 1, 0, 4.37113883e-008)
- p.BottomSurface=0
- p.TopSurface=0
- p.Parent=Model p=Instance.new("Part")
- p.Name="Part"
- p.formFactor="Custom"
- p.Size=Vector3.new(0.599999845, 0.200000003, 0.600000024)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Pastel Blue")
- p.CFrame=CFrame.new(-55.8999977, 1.68999994, 23.5, -1, 0, 0, 0, -1, 0, 0, 0, 1)
- p.BottomSurface=0
- p.TopSurface=0
- p.Parent=Model p=Instance.new("WedgePart")
- p.Name="Part"
- p.formFactor="Custom"
- p.Size=Vector3.new(0.600000262, 0.200000003, 0.200000003)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Pastel Blue")
- p.CFrame=CFrame.new(-56.2999992, 1.69000006, 23.4999981, 0, 0, 1, 0, 1, 0, -1, 0, -4.37113883e-008)
- p.BottomSurface=0
- p.TopSurface=0
- p.Parent=Model
- return Model
- end
- Units["TechCenter"]["Requires"]={"ConYard","RadarDome"}
- Units["Wall"]={}
- Units["Wall"]["EnergyCost"]=2
- Units["Wall"]["MaxUnits"]=120
- Units["Wall"]["BuildTime"]=1
- Units["Wall"]["Model"]=function()
- Model=Instance.new("Model")
- Model.Name="Wall" p=Instance.new("Part")
- p.Name="Part"
- p.formFactor="Custom"
- p.Size=Vector3.new(1, 0.600000024, 0.200000033)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Medium stone grey")
- p.CFrame=CFrame.new(-53.5000038, 0.49000001, 17.5, -1, 0, 0, 0, -1, 0, 0, 0, 1)
- p.BottomSurface=0
- p.TopSurface=0
- p.Parent=Model p=Instance.new("Part")
- p.Name="Part"
- p.formFactor="Custom"
- p.Size=Vector3.new(1, 0.200000003, 0.200000033)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Pastel Blue")
- p.CFrame=CFrame.new(-53.5000038, 0.889999986, 17.5, -1, 0, 0, 0, -1, 0, 0, 0, 1)
- p.BottomSurface=0
- p.TopSurface=0
- kl=Instance.new("BlockMesh")
- kl.Scale=Vector3.new(1, 1, 1.20000005)
- kl.Parent=p
- p.Parent=Model p=Instance.new("Part")
- p.Name="Plate"
- p.formFactor="Custom"
- p.Size=Vector3.new(1, 0.200000003, 1)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Medium stone grey")
- p.CFrame=CFrame.new(-53.5, 0.090000011, 17.5, -1, 0, 0, 0, -1, 0, 0, 0, 1)
- p.BottomSurface=0
- p.TopSurface=0
- p.Parent=Model
- return Model
- end
- Units["Wall"]["Requires"]={"ConYard"}
- Units["WallCorner"]={}
- Units["WallCorner"]["EnergyCost"]=2
- Units["WallCorner"]["MaxUnits"]=50
- Units["WallCorner"]["BuildTime"]=2
- Units["WallCorner"]["Model"]=function()
- Model=Instance.new("Model")
- Model.Name="WallCorner" p=Instance.new("Part")
- p.Name="Part"
- p.formFactor="Custom"
- p.Size=Vector3.new(0.400000006, 0.200000003, 0.200000033)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Pastel Blue")
- p.CFrame=CFrame.new(-55.1000099, 0.889999926, 17.8000011, 0, 0, 1, 0, -1, 0, 1, 0, -4.37113883e-008)
- p.BottomSurface=0
- p.TopSurface=0
- kl=Instance.new("BlockMesh")
- kl.Scale=Vector3.new(1, 1, 1.20000005)
- kl.Parent=p
- p.Parent=Model p=Instance.new("Part")
- p.Name="Part"
- p.formFactor="Custom"
- p.Size=Vector3.new(0.200000003, 0.600000024, 0.200000033)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Medium stone grey")
- p.CFrame=CFrame.new(-55.1000137, 0.490000039, 17.5, -1, 0, 0, 0, -1, 0, 0, 0, 1)
- p.BottomSurface=0
- p.TopSurface=0
- p.Parent=Model p=Instance.new("Part")
- p.Name="Part"
- p.formFactor="Custom"
- p.Size=Vector3.new(0.200000003, 0.200000003, 0.200000033)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Pastel Blue")
- p.CFrame=CFrame.new(-55.1000023, 0.890000045, 17.5, -1, 0, 0, 0, -1, 0, 0, 0, 1)
- p.BottomSurface=0
- p.TopSurface=0
- kl=Instance.new("BlockMesh")
- kl.Scale=Vector3.new(1.20000005, 1.20000005, 1.20000005)
- kl.Parent=p
- p.Parent=Model p=Instance.new("Part")
- p.Name="Part"
- p.formFactor="Custom"
- p.Size=Vector3.new(0.400000036, 0.600000024, 0.200000033)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Medium stone grey")
- p.CFrame=CFrame.new(-55.1000099, 0.490000069, 17.8000011, 0, 0, 1, 0, -1, 0, 1, 0, -4.37113883e-008)
- p.BottomSurface=0
- p.TopSurface=0
- p.Parent=Model p=Instance.new("Part")
- p.Name="Plate"
- p.formFactor="Custom"
- p.Size=Vector3.new(1, 0.200000003, 1)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Medium stone grey")
- p.CFrame=CFrame.new(-55.1000099, 0.0900000632, 17.5, -1, 0, 0, 0, -1, 0, 0, 0, 1)
- p.BottomSurface=0
- p.TopSurface=0
- p.Parent=Model p=Instance.new("Part")
- p.Name="Part"
- p.formFactor="Custom"
- p.Size=Vector3.new(0.400000006, 0.200000003, 0.200000033)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Pastel Blue")
- p.CFrame=CFrame.new(-54.8000107, 0.889999926, 17.5, -1, 0, 0, 0, -1, 0, 0, 0, 1)
- p.BottomSurface=0
- p.TopSurface=0
- kl=Instance.new("BlockMesh")
- kl.Scale=Vector3.new(1, 1, 1.20000005)
- kl.Parent=p
- p.Parent=Model p=Instance.new("Part")
- p.Name="Part"
- p.formFactor="Custom"
- p.Size=Vector3.new(0.400000036, 0.600000024, 0.200000033)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Medium stone grey")
- p.CFrame=CFrame.new(-54.8000107, 0.490000069, 17.5, -1, 0, 0, 0, -1, 0, 0, 0, 1)
- p.BottomSurface=0
- p.TopSurface=0
- p.Parent=Model
- return Model
- end
- Units["WallCorner"]["Requires"]={"ConYard"}
- Units["Pillbox"]={}
- Units["Pillbox"]["EnergyCost"]=12
- Units["Pillbox"]["MaxUnits"]=5
- Units["Pillbox"]["BuildTime"]=6.2
- Units["Pillbox"]["Model"]=function()
- Model=Instance.new("Model")
- Model.Name="Pillbox" p=Instance.new("WedgePart")
- p.Name="Part"
- p.formFactor="Custom"
- p.Size=Vector3.new(0.200000003, 0.200000003, 0.200000003)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Pastel Blue")
- p.CFrame=CFrame.new(-51.3000031, 0.290000021, 17.7000027, 0, 0, -1, -1, 0, 0, 0, 1, 4.37113883e-008)
- p.BottomSurface=0
- p.TopSurface=0
- p.Parent=Model p=Instance.new("Part")
- p.Name="Part"
- p.formFactor="Custom"
- p.Size=Vector3.new(0.200000003, 0.200000003, 0.200000033)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Black")
- p.CFrame=CFrame.new(-51.2999992, 0.290000021, 17.5000019, 0, 0, -1, 0, -1, -0, -1, 0, -0)
- p.BottomSurface=0
- p.TopSurface=0
- kl=Instance.new("BlockMesh")
- kl.Scale=Vector3.new(1, 0.330000013, 1)
- kl.Parent=p
- p.Parent=Model p=Instance.new("WedgePart")
- p.Name="Part"
- p.formFactor="Custom"
- p.Size=Vector3.new(0.200000003, 0.200000003, 0.200000003)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Pastel Blue")
- p.CFrame=CFrame.new(-51.2999992, 0.290000021, 17.3000011, 0, 0, -1, 1, 0, 0, 0, -1, 4.37113883e-008)
- p.BottomSurface=0
- p.TopSurface=0
- p.Parent=Model p=Instance.new("Part")
- p.Name="Part"
- p.formFactor="Custom"
- p.Size=Vector3.new(0.200000003, 0.200000003, 0.200000033)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Pastel Blue")
- p.CFrame=CFrame.new(-51.5, 0.290000021, 17.6999989, -1, 0, 0, 0, -1, 0, 0, 0, 1)
- p.BottomSurface=0
- p.TopSurface=0
- kl=Instance.new("BlockMesh")
- kl.Scale=Vector3.new(1, 1, 1)
- kl.Parent=p
- p.Parent=Model p=Instance.new("Part")
- p.Name="Plate"
- p.formFactor="Custom"
- p.Size=Vector3.new(1, 0.200000003, 1)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Medium stone grey")
- p.CFrame=CFrame.new(-51.5, 0.090000011, 17.5, -1, 0, 0, 0, -1, 0, 0, 0, 1)
- p.BottomSurface=0
- p.TopSurface=0
- p.Parent=Model p=Instance.new("Part")
- p.Name="Part"
- p.formFactor="Custom"
- p.Size=Vector3.new(0.600000024, 0.200000003, 0.200000033)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Pastel Blue")
- p.CFrame=CFrame.new(-51.5000038, 0.290000021, 17.5, -1, 0, 0, 0, -1, 0, 0, 0, 1)
- p.BottomSurface=0
- p.TopSurface=0
- kl=Instance.new("BlockMesh")
- kl.Scale=Vector3.new(1, 1, 1)
- kl.Parent=p
- p.Parent=Model p=Instance.new("WedgePart")
- p.Name="Part"
- p.formFactor="Custom"
- p.Size=Vector3.new(0.200000003, 0.200000003, 0.200000003)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Pastel Blue")
- p.CFrame=CFrame.new(-51.7000008, 0.290000021, 17.7000008, 0, 0, 1, 1, 0, 0, 0, 1, -4.37113883e-008)
- p.BottomSurface=0
- p.TopSurface=0
- p.Parent=Model p=Instance.new("WedgePart")
- p.Name="Part"
- p.formFactor="Custom"
- p.Size=Vector3.new(0.200000003, 0.200000003, 0.200000003)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Pastel Blue")
- p.CFrame=CFrame.new(-51.6999931, 0.290000021, 17.3000011, 0, 0, 1, -1, 0, 0, 0, -1, -4.37113883e-008)
- p.BottomSurface=0
- p.TopSurface=0
- p.Parent=Model p=Instance.new("Part")
- p.Name="Part"
- p.formFactor="Custom"
- p.Size=Vector3.new(0.200000003, 0.200000003, 0.200000033)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Black")
- p.CFrame=CFrame.new(-51.5, 0.290000021, 17.2999992, -1, 0, 0, 0, -1, 0, 0, 0, 1)
- p.BottomSurface=0
- p.TopSurface=0
- kl=Instance.new("BlockMesh")
- kl.Scale=Vector3.new(1, 0.330000013, 1)
- kl.Parent=p
- p.Parent=Model p=Instance.new("Part")
- p.Name="Part"
- p.formFactor="Custom"
- p.Size=Vector3.new(0.200000003, 0.200000003, 0.200000033)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Pastel Blue")
- p.CFrame=CFrame.new(-51.5, 0.290000021, 17.2999992, -1, 0, 0, 0, -1, 0, 0, 0, 1)
- p.BottomSurface=0
- p.TopSurface=0
- kl=Instance.new("BlockMesh")
- kl.Scale=Vector3.new(1, 1, 1)
- kl.Parent=p
- p.Parent=Model p=Instance.new("Part")
- p.Name="Part"
- p.formFactor="Custom"
- p.Size=Vector3.new(0.200000003, 0.200000003, 0.200000033)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Black")
- p.CFrame=CFrame.new(-51.7000046, 0.290000021, 17.5, 0, 0, 1, 0, -1, 0, 1, 0, -0)
- p.BottomSurface=0
- p.TopSurface=0
- kl=Instance.new("BlockMesh")
- kl.Scale=Vector3.new(1, 0.330000013, 1)
- kl.Parent=p
- p.Parent=Model p=Instance.new("Part")
- p.Name="Part"
- p.formFactor="Custom"
- p.Size=Vector3.new(0.200000003, 0.200000003, 0.200000033)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Black")
- p.CFrame=CFrame.new(-51.5000038, 0.290000021, 17.7000008, 1, 0, 0, 0, -1, 0, 0, 0, -1)
- p.BottomSurface=0
- p.TopSurface=0
- kl=Instance.new("BlockMesh")
- kl.Scale=Vector3.new(1, 0.330000013, 1)
- kl.Parent=p
- p.Parent=Model
- return Model
- end
- Units["Pillbox"]["Attack"]=function(Unit,Object,Location)
- Dist=(Unit.Centroid.Position-(Object:FindFirstChild("Torso").Position-Vector3.new(0,2,0))).magnitude
- AttackDist=25
- if Dist>AttackDist then
- else
- if Unit:FindFirstChild("Cooldown")==nil then
- t=Instance.new("IntValue")
- t.Name="Cooldown"
- t.Value=25
- t.Parent=Unit
- coroutine.resume(coroutine.create(function(Unit)
- flash=Instance.new("Part")
- flash.Name="PEWPEW"
- flash.TopSurface=0
- flash.BottomSurface=0
- flash.BrickColor=BrickColor:Yellow()
- flash.formFactor="Custom"
- flash.Size=Vector3.new(.2,.2,.2)
- mm=Instance.new("SpecialMesh")
- mm.MeshType="Sphere"
- mm.Scale=Vector3.new(.8,.4,.4)
- mm.Parent=flash
- flash.Parent=Unit
- w=Instance.new("Weld")
- w.Part0=Unit.Centroid
- w.Part1=flash
- w.C0=CFrame.new(0,0,.5)
- w.Parent=flash
- game:GetService("Debris"):AddItem(flash,.1)
- end),Unit)
- PlaySound("MG1",1,Unit.Centroid,"PEW")
- Object.Humanoid:TakeDamage(15)
- else
- Unit.Cooldown.Value=Unit.Cooldown.Value-1
- if Unit.Cooldown.Value<=-1 then
- Unit.Cooldown:Destroy()
- end
- end
- end
- end
- Units["Pillbox"]["Requires"]={"ConYard","Barracks"}
- Units["TeslaCoil"]={}
- Units["TeslaCoil"]["EnergyCost"]=35
- Units["TeslaCoil"]["MaxUnits"]=4
- Units["TeslaCoil"]["BuildTime"]=8
- Units["TeslaCoil"]["Model"]=function()
- Model=Instance.new("Model")
- Model.Name="TeslaCoil" p=Instance.new("Part")
- p.Name="Part"
- p.formFactor="Custom"
- p.Size=Vector3.new(0.200000003, 0.200000003, 0.200000003)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Medium stone grey")
- p.CFrame=CFrame.new(-64.3000031, 1.2700001, 23.5000057, -4.37113954e-008, -4.37113812e-008, 1, -7.37408419e-015, 1, 4.37113705e-008, -1, -7.10542736e-015, -8.74227908e-008)
- p.BottomSurface=0
- p.TopSurface=0
- kl=Instance.new("SpecialMesh")
- kl.Scale=Vector3.new(1, 1, 1)
- kl.Parent=p
- kl.MeshType="Sphere" p.Parent=Model p=Instance.new("Part")
- p.Name="Rung3"
- p.formFactor="Custom"
- p.Size=Vector3.new(0.600000262, 0.200000003, 0.600000024)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Mid gray")
- p.CFrame=CFrame.new(-64.3000031, 1.03000009, 23.5000057, -4.37113954e-008, -4.37113812e-008, 1, -7.37408419e-015, 1, 4.37113705e-008, -1, -7.10542736e-015, -8.74227908e-008)
- p.BottomSurface=0
- p.TopSurface=0
- kl=Instance.new("CylinderMesh")
- kl.Scale=Vector3.new(0.400000006, 0.200000003, 0.400000006)
- kl.Parent=p
- p.Parent=Model p=Instance.new("Part")
- p.Name="Part"
- p.formFactor="Custom"
- p.Size=Vector3.new(0.200000003, 1, 0.600000024)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Pastel Blue")
- p.CFrame=CFrame.new(-64.3000031, 0.730000257, 23.5000057, -4.37113954e-008, -4.37113812e-008, 1, -7.37408419e-015, 1, 4.37113705e-008, -1, -7.10542736e-015, -8.74227908e-008)
- p.BottomSurface=0
- p.TopSurface=0
- kl=Instance.new("CylinderMesh")
- kl.Scale=Vector3.new(0.5, 1, 0.5)
- kl.Parent=p
- p.Parent=Model p=Instance.new("Part")
- p.Name="Rung2"
- p.formFactor="Custom"
- p.Size=Vector3.new(0.600000262, 0.200000003, 0.600000024)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Mid gray")
- p.CFrame=CFrame.new(-64.3000031, 0.850000441, 23.5000057, -4.37113954e-008, -4.37113812e-008, 1, -7.37408419e-015, 1, 4.37113705e-008, -1, -7.10542736e-015, -8.74227908e-008)
- p.BottomSurface=0
- p.TopSurface=0
- kl=Instance.new("CylinderMesh")
- kl.Scale=Vector3.new(0.600000024, 0.200000003, 0.600000024)
- kl.Parent=p
- p.Parent=Model p=Instance.new("Part")
- p.Name="Rung1"
- p.formFactor="Custom"
- p.Size=Vector3.new(0.600000262, 0.200000003, 0.600000024)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Mid gray")
- p.CFrame=CFrame.new(-64.3000031, 0.640000582, 23.5000057, -4.37113954e-008, -4.37113812e-008, 1, -7.37408419e-015, 1, 4.37113705e-008, -1, -7.10542736e-015, -8.74227908e-008)
- p.BottomSurface=0
- p.TopSurface=0
- kl=Instance.new("CylinderMesh")
- kl.Scale=Vector3.new(0.699999988, 0.200000003, 0.699999988)
- kl.Parent=p
- p.Parent=Model p=Instance.new("Part")
- p.Name="Part"
- p.formFactor="Custom"
- p.Size=Vector3.new(0.600000262, 0.200000003, 0.600000024)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Pastel Blue")
- p.CFrame=CFrame.new(-64.2999954, 0.219999984, 23.5000057, -4.37113954e-008, -4.37113812e-008, 1, -7.37408419e-015, 1, 4.37113705e-008, -1, -7.10542736e-015, -8.74227908e-008)
- p.BottomSurface=0
- p.TopSurface=0
- kl=Instance.new("CylinderMesh")
- kl.Scale=Vector3.new(1, 0.5, 1)
- kl.Parent=p
- p.Parent=Model p=Instance.new("Part")
- p.Name="Plate"
- p.formFactor="Custom"
- p.Size=Vector3.new(1, 0.200000003, 1)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Medium stone grey")
- p.CFrame=CFrame.new(-64.3000031, 0.090000011, 23.5000057, -1, 0, 0, 0, -1, 0, 0, 0, 1)
- p.BottomSurface=0
- p.TopSurface=0
- p.Parent=Model
- return Model
- end
- Units["TeslaCoil"]["Attack"]=function(Unit,Object,Location)
- end
- Units["TeslaCoil"]["Requires"]={"ConYard","TechCenter"}
- Units["ABombSilo"]={}
- Units["ABombSilo"]["EnergyCost"]=60
- Units["ABombSilo"]["MaxUnits"]=1
- Units["ABombSilo"]["BuildTime"]=10
- Units["ABombSilo"]["Model"]=function()
- Model=Instance.new("Model")
- Model.Name="ABombSilo" p=Instance.new("Part")
- p.Name="SliderBottom"
- p.formFactor="Custom"
- p.Size=Vector3.new(0.600000501, 0.200000003, 0.600000024)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Pastel Blue")
- p.CFrame=CFrame.new(-66.3000031, 0.290000021, 22.9000092, -1, 0, 0, 0, -1, 0, 0, 0, 1)
- p.BottomSurface=0
- p.TopSurface=0
- kl=Instance.new("BlockMesh")
- kl.Scale=Vector3.new(1, 1, 1)
- kl.Parent=p
- p.Parent=Model p=Instance.new("Part")
- p.Name="Part"
- p.formFactor="Custom"
- p.Size=Vector3.new(0.600000501, 0.200000003, 0.800000012)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Pastel Blue")
- p.CFrame=CFrame.new(-66.3000031, 0.290000021, 23.8000145, -1, 0, 0, 0, -1, 0, 0, 0, 1)
- p.BottomSurface=0
- p.TopSurface=0
- kl=Instance.new("BlockMesh")
- kl.Scale=Vector3.new(1, 1, 1)
- kl.Parent=p
- p.Parent=Model p=Instance.new("Part")
- p.Name="Plate"
- p.formFactor="Custom"
- p.Size=Vector3.new(1.00000048, 0.200000003, 2.00000024)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Medium stone grey")
- p.CFrame=CFrame.new(-66.3000031, 0.090000011, 23.4000111, -1, 0, 0, 0, -1, 0, 0, 0, 1)
- p.BottomSurface=0
- p.TopSurface=0
- p.Parent=Model p=Instance.new("Part")
- p.Name="Hole"
- p.formFactor="Custom"
- p.Size=Vector3.new(0.600000501, 0.200000003, 0.600000024)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Black")
- p.CFrame=CFrame.new(-66.3000031, 0.290000081, 23.900013, -1, 0, 0, 0, -1, 0, 0, 0, 1)
- p.BottomSurface=0
- p.TopSurface=0
- kl=Instance.new("CylinderMesh")
- kl.Scale=Vector3.new(0.600000024, 1.00999999, 0.600000024)
- kl.Parent=p
- p.Parent=Model p=Instance.new("Part")
- p.Name="Part"
- p.formFactor="Custom"
- p.Size=Vector3.new(0.200000003, 0.200000003, 0.200000003)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Bright yellow")
- p.CFrame=CFrame.new(-66.3000031, 0.290000021, 23.3000126, -1, 0, 0, 0, -1, 0, 0, 0, 1)
- p.BottomSurface=0
- p.TopSurface=0
- kl=Instance.new("BlockMesh")
- kl.Scale=Vector3.new(1, 1, 1)
- kl.Parent=p
- p.Parent=Model p=Instance.new("Part")
- p.Name="Part"
- p.formFactor="Custom"
- p.Size=Vector3.new(0.200000003, 0.200000003, 0.200000003)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Black")
- p.CFrame=CFrame.new(-66.5, 0.290000081, 23.3000107, -1, 0, 0, 0, -1, 0, 0, 0, 1)
- p.BottomSurface=0
- p.TopSurface=0
- kl=Instance.new("BlockMesh")
- kl.Scale=Vector3.new(1, 1, 1)
- kl.Parent=p
- p.Parent=Model p=Instance.new("Part")
- p.Name="Slider"
- p.formFactor="Custom"
- p.Size=Vector3.new(0.600000501, 0.200000003, 0.800000012)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Dark stone grey")
- p.CFrame=CFrame.new(-66.3000031, 0.49000001, 23.8000126, -1, 0, 0, 0, -1, 0, 0, 0, 1)
- p.BottomSurface=0
- p.TopSurface=0
- kl=Instance.new("BlockMesh")
- kl.Scale=Vector3.new(1, 1, 1)
- kl.Parent=p
- p.Parent=Model p=Instance.new("Part")
- p.Name="Part"
- p.formFactor="Custom"
- p.Size=Vector3.new(0.200000003, 0.200000003, 0.200000003)
- p.Material=Enum.Material.Plastic
- p.BrickColor=BrickColor.new("Black")
- p.CFrame=CFrame.new(-66.1000061, 0.290000021, 23.3000107, -1, 0, 0, 0, -1, 0, 0, 0, 1)
- p.BottomSurface=0
- p.TopSurface=0
- kl=Instance.new("BlockMesh")
- kl.Scale=Vector3.new(1, 1, 1)
- kl.Parent=p
- p.Parent=Model
- return Model
- end
- Units["ABombSilo"]["Attack"]=function(Unit,Object,Location)
- end
- Units["ABombSilo"]["Requires"]={"ConYard","TechCenter","RadarDome","WarFactory"}
- Units["Soldier"]={}
- Units["Soldier"]["EnergyCost"]=4
- Units["Soldier"]["Speed"]=6
- Units["Soldier"]["MaxUnits"]=10
- Units["Soldier"]["BuildTime"]=2.5
- Units["Soldier"]["Attack"]=function(Unit,Object,Location)
- Dist=(Unit.Centroid.Position-(Object:FindFirstChild("Torso").Position-Vector3.new(0,2,0))).magnitude
- AttackDist=5.6
- if Dist>AttackDist then
- UnitMoveTo(Unit,Object.Torso.Position,"NOE")
- unitmove(Unit)
- else
- unitstop(Unit)
- if Unit:FindFirstChild("Cooldown")==nil then
- t=Instance.new("IntValue")
- t.Name="Cooldown"
- t.Value=25
- t.Parent=Unit
- coroutine.resume(coroutine.create(function(Unit)
- flash=Instance.new("Part")
- flash.Name="PEWPEW"
- flash.TopSurface=0
- flash.BottomSurface=0
- flash.BrickColor=BrickColor:Yellow()
- flash.formFactor="Custom"
- flash.Size=Vector3.new(.2,.2,.2)
- mm=Instance.new("SpecialMesh")
- mm.MeshType="Sphere"
- mm.Scale=Vector3.new(.4,.4,.4)
- mm.Parent=flash
- flash.Parent=Unit
- w=Instance.new("Weld")
- w.Part0=Unit.Gun
- w.Part1=flash
- w.C0=CFrame.new(0,.2,0)
- w.Parent=flash
- game:GetService("Debris"):AddItem(flash,.1)
- end),Unit)
- PlaySound("MG3",1,Unit.Centroid,"PEW")
- Object.Humanoid:TakeDamage(2)
- else
- Unit.Cooldown.Value=Unit.Cooldown.Value-1
- if Unit.Cooldown.Value<=-1 then
- Unit.Cooldown:Destroy()
- end
- end
- end
- end
- Units["Soldier"]["Requires"]={"Barracks"}
- Units["RocketSoldier"]={}
- Units["RocketSoldier"]["Speed"]=4.5
- Units["RocketSoldier"]["EnergyCost"]=6
- Units["RocketSoldier"]["MaxUnits"]=5
- Units["RocketSoldier"]["BuildTime"]=3.5
- Units["RocketSoldier"]["Attack"]=function(Unit,Object,Location)
- end
- Units["RocketSoldier"]["Requires"]={"Barracks"}
- Units["TeslaSoldier"]={}
- Units["TeslaSoldier"]["Speed"]=3.5
- Units["TeslaSoldier"]["EnergyCost"]=10
- Units["TeslaSoldier"]["MaxUnits"]=5
- Units["TeslaSoldier"]["BuildTime"]=5
- Units["TeslaSoldier"]["Attack"]=function(Unit,Object,Location)
- end
- Units["TeslaSoldier"]["Requires"]={"Barracks","TeslaCoil"}
- Units["FlameSoldier"]={}
- Units["FlameSoldier"]["Speed"]=3.5
- Units["FlameSoldier"]["EnergyCost"]=9
- Units["FlameSoldier"]["MaxUnits"]=5
- Units["FlameSoldier"]["BuildTime"]=6
- Units["FlameSoldier"]["Attack"]=function(Unit,Object,Location)
- end
- Units["FlameSoldier"]["Requires"]={"Barracks","TechCenter","WarFactory"}
- PlaySound=function(Sound,Volume,Parent,Name)
- p=Instance.new("Sound")
- p.SoundId="http://www.roblox.com/asset/?id="..SFX[Sound]
- p.Volume=Volume
- p.Parent=Parent
- p.Name=Name
- p:Play()
- game:GetService("Debris"):AddItem(p,5)
- end
- GetUnits=function(Type)
- s=0
- for _,v in pairs(ActiveUnits) do
- if v.Name==Type then
- s=s+1
- end
- end
- return s
- end
- LastUnitResponse=time()
- UnitsAtPos=function(Pos)
- s=0
- for _,v in pairs(Units) do
- if (v.DesiredPosition.Value-Pos).magnitude<1 then
- s=s+1
- end
- end
- return s
- end
- SelectedUnits={}
- SpreadVector=function(noun)
- noun=noun*1.5+2
- return Vector3.new(math.cos(math.random(-90,90))*math.random(-noun,noun),0,math.cos(math.random(-90,90))*math.random(-noun,noun)) / 4
- end
- UnitMoveTo=function(Unit,Pos,NoVoice)
- Unit.DesiredPosition.Value=Pos
- if Unit:FindFirstChild("VoiceSet")~=nil and time()-LastUnitResponse>.45 and NoVoice==nil then
- LastUnitResponse=time()
- PlaySound("VS"..Unit.VoiceSet.Value.."Order"..math.random(1,Unit.VoiceSet.Comply.Value),1,Unit.Centroid,"Yessir!")
- end
- end
- unitmove=function(Unit)
- Pos=Unit.DesiredPosition.Value
- Unit.Centroid.BodyGyro.cframe=CFrame.new(Unit.Centroid.Position,Vector3.new(Pos.x,Unit.Centroid.Position.y,Pos.z)) * CFrame.fromEulerAnglesXYZ(0,math.pi,0)
- Unit.Centroid.BodyVelocity.velocity=(Unit.Centroid.Position-Pos).unit*(-Unit.Speed.Value)
- end
- unitstop=function(Unit)
- Pos=Unit.DesiredPosition.Value
- Unit.Centroid.BodyGyro.cframe=CFrame.new(Unit.Centroid.Position,Vector3.new(Pos.x,Unit.Centroid.Position.y,Pos.z)) * CFrame.fromEulerAnglesXYZ(0,math.pi,0)
- Unit.Centroid.BodyVelocity.velocity=Vector3.new(0,0,0)
- end
- MakeTinyBabyMan=function(Arm)
- Model=Instance.new("Model")
- Model.Name=Arm.."Soldier"
- p=Instance.new("Part")
- p.TopSurface=0
- p.BottomSurface=0
- p.formFactor="Custom"
- p.Size=Vector3.new(.2,.2,.2)
- p.CFrame=CFrame.new(0,1,0)
- p.Parent=Model
- p.BrickColor=BrickColor.new("Light yellow")
- p.Name="Head"
- m=Instance.new("SpecialMesh")
- m.Scale=Vector3.new(1.25,1.25,1.25)/2
- m.Parent=p
- p=Instance.new("Part")
- p.TopSurface=0
- p.BottomSurface=0
- p.formFactor="Custom"
- p.Size=Vector3.new(.2,.2,.2)
- p.CFrame=CFrame.new(0,1,0)
- p.Parent=Model
- p.BrickColor=ScrubColor
- p.Name="Torso"
- m=Instance.new("BlockMesh")
- m.Scale=Vector3.new(1,1,.5)
- m.Parent=p
- p=Instance.new("Part")
- p.TopSurface=0
- p.BottomSurface=0
- p.formFactor="Custom"
- p.Size=Vector3.new(.2,.2,.2)
- p.CFrame=CFrame.new(0,1,0)
- p.Parent=Model
- p.BrickColor=BrickColor.new("Light yellow")
- p.Name="Left Arm"
- m=Instance.new("BlockMesh")
- m.Scale=Vector3.new(.5,1,.5)
- m.Parent=p
- p=Instance.new("Part")
- p.TopSurface=0
- p.BottomSurface=0
- p.formFactor="Custom"
- p.Size=Vector3.new(.2,.2,.2)
- p.CFrame=CFrame.new(0,1,0)
- p.Parent=Model
- p.BrickColor=ScrubColor
- p.Name="Left Leg"
- m=Instance.new("BlockMesh")
- m.Scale=Vector3.new(.5,1,.5)
- m.Parent=p
- p=Instance.new("Part")
- p.TopSurface=0
- p.BottomSurface=0
- p.formFactor="Custom"
- p.Size=Vector3.new(.2,.2,.2)
- p.CFrame=CFrame.new(0,1,0)
- p.Parent=Model
- p.BrickColor=ScrubColor
- p.Name="Right Leg"
- m=Instance.new("BlockMesh")
- m.Scale=Vector3.new(.5,1,.5)
- m.Parent=p
- p=Instance.new("Part")
- p.TopSurface=0
- p.BottomSurface=0
- p.formFactor="Custom"
- p.Size=Vector3.new(.2,.2,.2)
- p.CFrame=CFrame.new(0,1,0)
- p.Parent=Model
- p.BrickColor=BrickColor.new("Light yellow")
- p.Name="Right Arm"
- m=Instance.new("BlockMesh")
- m.Scale=Vector3.new(.5,1,.5)
- m.Parent=p
- if Arm~="Tesla" and Arm~="Flame" then
- p=Instance.new("Part")
- p.TopSurface=0
- p.BottomSurface=0
- p.formFactor="Custom"
- p.Size=Vector3.new(.2,.2,.2)
- p.CFrame=CFrame.new(0,1,0)
- p.Parent=Model
- p.BrickColor=BrickColor.new("Dark stone grey")
- p.Name="Helmet"
- m=Instance.new("SpecialMesh")
- m.MeshId="http://www.roblox.com/asset/?id=1045381"
- m.Scale=Vector3.new(.12,.12,.12)
- m.Parent=p
- w=Instance.new("Motor6D")
- w.Name="Hat"
- w.Part0=Model.Torso
- w.Part1=Model["Helmet"]
- w.C0=CFrame.new(0,.21,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
- w.C1=CFrame.new(0,0,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
- w.Parent=w.Part0
- elseif Arm=="Tesla" then
- p=Instance.new("Part")
- p.TopSurface=0
- p.BottomSurface=0
- p.formFactor="Custom"
- p.Size=Vector3.new(.2,.2,.2)
- p.CFrame=CFrame.new(0,1,0)
- p.Parent=Model
- p.BrickColor=ScrubColor
- p.Name="Helmet"
- m=Instance.new("SpecialMesh")
- m.MeshId="http://www.roblox.com/asset/?id=112643970"
- m.Scale=Vector3.new(.12,.12,.12)
- m.Parent=p
- w=Instance.new("Motor6D")
- w.Name="Hat"
- w.Part0=Model.Torso
- w.Part1=Model["Helmet"]
- w.C0=CFrame.new(0,.15,0) * CFrame.fromEulerAnglesXYZ(0,math.rad(180),0)
- w.C1=CFrame.new(0,0,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
- w.Parent=w.Part0
- Model["Right Arm"].BrickColor=BrickColor.new("Dark stone grey")
- Model["Left Arm"].BrickColor=BrickColor.new("Dark stone grey")
- Model["Right Leg"].BrickColor=BrickColor.new("Dark stone grey")
- Model["Left Leg"].BrickColor=BrickColor.new("Dark stone grey")
- p=Instance.new("Part")
- p.TopSurface=0
- p.BottomSurface=0
- p.formFactor="Custom"
- p.Size=Vector3.new(.2,.2,.2)
- p.CFrame=CFrame.new(0,1,0)
- p.Parent=Model
- p.BrickColor=ScrubColor
- p.Name="Generator"
- m=Instance.new("SpecialMesh")
- m.Scale=Vector3.new(1,1,1)
- m.Parent=p
- w=Instance.new("Motor6D")
- w.Name="Generator"
- w.Part0=Model.Torso
- w.Part1=Model["Generator"]
- w.C0=CFrame.new(0,.02,-.08) * CFrame.fromEulerAnglesXYZ(0,0,0)
- w.C1=CFrame.new(0,0,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
- w.Parent=w.Part0
- elseif Arm=="Flame" then
- p=Instance.new("Part")
- p.TopSurface=0
- p.BottomSurface=0
- p.formFactor="Custom"
- p.Size=Vector3.new(.2,.2,.2)
- p.CFrame=CFrame.new(0,1,0)
- p.Parent=Model
- p.BrickColor=ScrubColor
- p.Name="Helmet"
- m=Instance.new("SpecialMesh")
- m.MeshId="http://www.roblox.com/asset/?id=16378042"
- m.Scale=Vector3.new(.12,.12,.12)
- m.Parent=p
- w=Instance.new("Motor6D")
- w.Name="Hat"
- w.Part0=Model.Torso
- w.Part1=Model["Helmet"]
- w.C0=CFrame.new(0,.12,0) * CFrame.fromEulerAnglesXYZ(0,math.rad(180),0)
- w.C1=CFrame.new(0,0,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
- w.Parent=w.Part0
- Model["Right Arm"].BrickColor=BrickColor.new("Medium stone grey")
- Model["Left Arm"].BrickColor=BrickColor.new("Medium stone grey")
- Model["Right Leg"].BrickColor=BrickColor.new("Dark stone grey")
- Model["Left Leg"].BrickColor=BrickColor.new("Dark stone grey")
- p=Instance.new("Part")
- p.TopSurface=0
- p.BottomSurface=0
- p.formFactor="Custom"
- p.Size=Vector3.new(.2,.2,.2)
- p.CFrame=CFrame.new(0,1,0)
- p.Parent=Model
- p.BrickColor=BrickColor.new("Light stone grey")
- p.Name="Generator"
- m=Instance.new("SpecialMesh")
- m.Scale=Vector3.new(.6,1.2,.6)
- m.Parent=p
- w=Instance.new("Motor6D")
- w.Name="Generator"
- w.Part0=Model.Torso
- w.Part1=Model["Generator"]
- w.C0=CFrame.new(0.06,0,-.05) * CFrame.fromEulerAnglesXYZ(0,0,0)
- w.C1=CFrame.new(0,0,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
- w.Parent=w.Part0
- p=Instance.new("Part")
- p.TopSurface=0
- p.BottomSurface=0
- p.formFactor="Custom"
- p.Size=Vector3.new(.2,.2,.2)
- p.CFrame=CFrame.new(0,1,0)
- p.Parent=Model
- p.BrickColor=BrickColor.new("Light stone grey")
- p.Name="Generator2"
- m=Instance.new("SpecialMesh")
- m.Scale=Vector3.new(.6,1.2,.6)
- m.Parent=p
- w=Instance.new("Motor6D")
- w.Name="Generator2"
- w.Part0=Model.Torso
- w.Part1=Model["Generator2"]
- w.C0=CFrame.new(-0.06,0,-.05) * CFrame.fromEulerAnglesXYZ(0,0,0)
- w.C1=CFrame.new(0,0,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
- w.Parent=w.Part0
- end
- w=Instance.new("Motor6D")
- w.Name="Neck"
- w.Part0=Model.Torso
- w.Part1=Model["Head"]
- w.C0=CFrame.new(0,.15,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
- w.C1=CFrame.new(0,0,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
- w.Parent=w.Part0
- w=Instance.new("Motor6D")
- w.Name="Right Shoulder"
- w.Part0=Model.Torso
- w.Part1=Model["Right Arm"]
- w.C0=CFrame.new(-.07,.05,0.05) * CFrame.fromEulerAnglesXYZ(0,-math.rad(60),0)
- w.C1=CFrame.new(0,.05,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
- w.MaxVelocity=.15
- w.DesiredAngle=math.rad(90)
- w.Parent=w.Part0
- w=Instance.new("Motor6D")
- w.Name="Left Shoulder"
- w.Part0=Model.Torso
- w.Part1=Model["Left Arm"]
- w.C0=CFrame.new(0,.05,.05) * CFrame.fromEulerAnglesXYZ(0,-math.rad(40),0)
- w.C1=CFrame.new(0,.05,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
- w.MaxVelocity=.15
- w.DesiredAngle=math.rad(90)
- w.Parent=w.Part0
- w=Instance.new("Motor6D")
- w.Name="Right Hip"
- w.Part0=Model.Torso
- w.Part1=Model["Right Leg"]
- w.C0=CFrame.new(-.05,.05 - .2,0) * CFrame.fromEulerAnglesXYZ(0,math.rad(90),0)
- w.C1=CFrame.new(0,.05,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
- w.MaxVelocity=.15
- w.DesiredAngle=0
- w.Parent=w.Part0
- w=Instance.new("Motor6D")
- w.Name="Left Hip"
- w.Part0=Model.Torso
- w.Part1=Model["Left Leg"]
- w.C0=CFrame.new(.05,.05 - .2,0) * CFrame.fromEulerAnglesXYZ(0,-math.rad(90),0)
- w.C1=CFrame.new(0,.05,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
- w.MaxVelocity=.15
- w.DesiredAngle=0
- w.Parent=w.Part0
- Model.Parent=workspace
- Model:MoveTo(Vector3.new(0,100,0))
- gans={}
- gans["Tesla"]=Instance.new("SpecialMesh")
- gans["Tesla"].MeshId="http://www.roblox.com/asset/?id=28909790"
- gans["Tesla"].Scale=Vector3.new(.1,.1,.1)
- gans[""]=Instance.new("SpecialMesh")
- gans[""].MeshId="http://www.roblox.com/asset/?id=72012671"
- gans[""].Scale=Vector3.new(.1,.1,.1)
- gans["Rocket"]=Instance.new("SpecialMesh")
- gans["Rocket"].MeshId="rbxasset://fonts/rocketlauncher.mesh"
- gans["Rocket"].Scale=Vector3.new(-.08,.08,-.08)
- gans["Flame"]=Instance.new("SpecialMesh")
- gans["Flame"].MeshId="http://www.roblox.com/asset/?id=33798955"
- gans["Flame"].Scale=Vector3.new(.1,.1,.1)
- p=Instance.new("Part")
- p.TopSurface=0
- p.BottomSurface=0
- p.formFactor="Custom"
- p.Size=Vector3.new(.2,.2,.2)
- p.CFrame=CFrame.new(0,1,0)
- p.Parent=Model
- p.BrickColor=BrickColor.new("Dark stone grey")
- p.Name="Gun"
- gans[Arm]:clone().Parent=p
- w=Instance.new("Weld")
- w.Name="RightGrip"
- w.Part0=Model["Right Arm"]
- w.Part1=p
- w.Parent=p
- if Arm=="" then
- w.C0=CFrame.new(0.05,-0.1,-.02) * CFrame.fromEulerAnglesXYZ(math.pi+.05,math.pi/2.2,0)
- elseif Arm=="Tesla" then
- w.C0=CFrame.new(0.06,-0.12,-.02) * CFrame.fromEulerAnglesXYZ(math.pi/2,0,-math.pi/2)
- elseif Arm=="Rocket" then
- w.C0=CFrame.new(0.05,-0,-.02) * CFrame.fromEulerAnglesXYZ(0,-math.pi/2,math.pi/2)
- elseif Arm=="Flame" then
- w.C0=CFrame.new(0,-.13,-.01) * CFrame.fromEulerAnglesXYZ(-math.pi/2,0,-math.pi/2)
- end
- for _,v in pairs(Model:children()) do
- v.Elasticity=0
- v.Friction=.66
- v.CanCollide=false
- end
- p=Model["Right Arm"]:clone()
- p.Transparency=1
- p.Size=Vector3.new(.3,.7,.3)
- p.Parent=Model
- p.Name="Centroid"
- p.CanCollide=true
- w=Instance.new("Weld")
- w.Part0=p
- w.Part1=Model.Torso
- w.Parent=w.Part0
- w.Name="RootJoint"
- p=Instance.new("BodyGyro")
- p.Parent=Model.Centroid
- p.maxTorque=Vector3.new(500,500,500)
- p=Instance.new("BodyVelocity")
- p.Parent=Model.Centroid
- p.maxForce=Vector3.new(math.huge,0,math.huge)
- p.P=5000
- f=Instance.new("BodyForce")
- f.force=Vector3.new(0,12,0)
- f.Parent=Model.Centroid
- return Model
- end
- SetUnitVoiceSet=function(Unit)
- r=math.floor(math.random(10,39)/10)
- math.randomseed(r)
- p=Instance.new("IntValue")
- p.Name="VoiceSet"
- p.Value=r
- p.Parent=Unit
- x=Instance.new("IntValue")
- x.Name="Comply"
- if p.Value==1 then
- x.Value=2
- elseif p.Value==2 then
- x.Value=5
- elseif p.Value==3 then
- x.Value=7
- end
- x.Parent=p
- x=Instance.new("IntValue")
- x.Name="Select"
- if p.Value==1 then
- x.Value=2
- elseif p.Value==2 then
- x.Value=3
- elseif p.Value==3 then
- x.Value=4
- end
- x.Parent=p
- end
- SetUnitParameters=function(Unit,Speed)
- p=Instance.new("IntValue")
- p.Name="Speed"
- p.Value=Speed
- p.Parent=Unit
- p=Instance.new("StringValue")
- p.Name="Status"
- p.Value="Move"
- p.Parent=Unit
- p=Instance.new("Vector3Value")
- p.Name="DesiredPosition"
- p.Value=Unit.Centroid.Position
- p.Parent=Unit
- end
- SetUnitCentroid=function(Unit,Pos,Anchored) --Units which need centroids placed
- if Unit:FindFirstChild("Plate")==nil then
- for _,v in pairs(Unit:children()) do
- if v:IsA("BasePart") then
- v.CanCollide=false
- end
- end
- cpos=Unit:GetModelCFrame().p
- csize=Unit:GetModelSize()
- p=Instance.new("Part")
- p.Name="Centroid"
- p.TopSurface=0
- p.BottomSurface=0
- p.formFactor="Custom"
- p.Size=csize + Vector3.new(.1,.1,.1)
- p.CFrame=CFrame.new(cpos) * CFrame.fromEulerAnglesXYZ(0,math.pi,0)
- p.Parent=Unit
- p.Transparency=1
- for _,v in pairs(Unit:children()) do
- if v:IsA("BasePart") then
- w=Instance.new("Weld")
- w.Name="AUTOJOINT"
- w.Part0=p
- w.Part1=v
- w.C0=p.CFrame:inverse()*CFrame.new(p.Position)
- w.C1=v.CFrame:inverse()*CFrame.new(p.Position)
- w.Parent=w.Part0
- end
- end
- else
- cpos=Unit:GetModelCFrame().p
- csize=Unit:GetModelSize()
- p=Instance.new("Part")
- p.Name="Centroid"
- p.TopSurface=0
- p.BottomSurface=0
- p.formFactor="Custom"
- p.Size=Unit.Plate.Size
- p.CFrame=Unit.Plate.CFrame * CFrame.fromEulerAnglesXYZ(math.pi,0,0)
- p.Parent=Unit
- p.Transparency=1
- for _,v in pairs(Unit:children()) do
- if v:IsA("BasePart") then
- w=Instance.new("Weld")
- w.Name="AUTOJOINT"
- w.Part0=p
- w.Part1=v
- w.C0=p.CFrame:inverse()*CFrame.new(p.Position)
- w.C1=v.CFrame:inverse()*CFrame.new(p.Position)
- w.Parent=w.Part0
- end
- end
- end
- end
- UNITCONT=workspace:FindFirstChild(game.Players.LocalPlayer.Name.."UNITS")
- if UNITCONT==nil then
- else
- UNITCONT:Remove()
- end
- m=Instance.new("Model")
- m.Name=game.Players.LocalPlayer.Name.."UNITS"
- m.Parent=workspace
- UNITCONT=m
- ActiveUnits={}
- SelectedUnits={}
- MakingUnit=false
- Rotation=0
- RequestNewUnit=function(Pos,UnitType)
- if MakingUnit==true then return end
- MakingUnit=true
- MeetsRequirements=false
- Needs={}
- for _,v in pairs(Units[UnitType]["Requires"]) do
- for __,vv in pairs(ActiveUnits) do
- if vv.Name==v then
- table.insert(Needs,"Gottam")
- end
- end
- end
- if #Needs>=#Units[UnitType]["Requires"] then
- MeetsRequirements=true
- end
- Needs={}
- print(tostring(MeetsRequirements))
- if GetUnits(UnitType) < Units[UnitType]["MaxUnits"] and MeetsRequirements then
- UnitAType="Mobile"
- LEL={"ConYard","PowerPlant","WarFactory","RadarDome","Barracks","Pillbox","TeslaCoil","Wall","WallCorner","TechCenter"}
- for _,v in pairs(LEL) do
- if v==UnitType then
- UnitAType="Stationary"
- end
- end
- if UnitAType=="Mobile" then
- if string.match(UnitType,"Soldier")=="Soldier" then
- newUnit=MakeTinyBabyMan(string.gsub(UnitType,"Soldier",""))
- newUnit:MoveTo(Pos+Vector3.new(0,2,0))
- SetUnitParameters(newUnit,Units[UnitType]["Speed"])
- SetUnitVoiceSet(newUnit)
- newUnit:MoveTo(Pos+Vector3.new(0,5,0))
- newUnit.Parent=UNITCONT
- table.insert(ActiveUnits,newUnit)
- v=Instance.new("ObjectValue")
- v.Name="AttackObj"
- v.Value=nil
- v.Parent=newUnit
- v=Instance.new("Vector3Value")
- v.Name="AttackPos"
- v.Parent=newUnit
- else
- print("rarbing")
- newUnit=Units[UnitType]["Model"]()
- newUnit:MoveTo(Pos+Vector3.new(0,2,0))
- wait(.1)
- SetUnitCentroid(newUnit)
- SetUnitParameters(newUnit,Units[UnitType]["Speed"])
- SetUnitVoiceSet(newUnit)
- newUnit.Parent=UNITCONT
- p=newUnit.Centroid
- wait(.2)
- p2=Instance.new("BodyGyro")
- p2.Parent=p
- p2.maxTorque=Vector3.new(50000,50000,50000)
- p2.D=10
- p2.P=200
- p2=Instance.new("BodyVelocity")
- p2.Parent=p
- p2.maxForce=Vector3.new(50000000000,0,50000000000)
- p2.P=5000
- f2=Instance.new("BodyForce")
- f2.force=Vector3.new(0,50,0)
- f2.Parent=p
- v=Instance.new("ObjectValue")
- v.Name="AttackObj"
- v.Value=nil
- v.Parent=newUnit
- v=Instance.new("Vector3Value")
- v.Name="AttackPos"
- v.Parent=newUnit
- for i=1, 3 do
- newUnit:MoveTo(Pos+Vector3.new(0,6,0))
- newUnit.DesiredPosition.Value=Pos
- wait(.2)
- end
- table.insert(ActiveUnits,newUnit)
- end
- else
- --Buildings
- if UnitType=="ConYard" then
- newUnit=Units[UnitType]["Model"]()
- Pos=UNITCONT["MCV"].Centroid.Position-Vector3.new(0,.5,0)
- UNITCONT["MCV"]:Remove()
- despos=Vector3.new(math.floor(Pos.x+.5),Pos.y,math.floor(Pos.z+.5))
- newUnit:MoveTo(despos)
- SetUnitCentroid(newUnit)
- newUnit.Parent=UNITCONT
- newUnit:MoveTo(despos)
- newUnit.Centroid.Anchored=true
- PlaySound("BuildStart",1,newUnit.Plate,"Stuff")
- newUnit.Centroid.CFrame=CFrame.new(despos-Vector3.new(0,2,0))*CFrame.fromEulerAnglesXYZ(0,Rotation,0)
- wait(.1)
- v=Instance.new("ObjectValue")
- v.Name="AttackObj"
- v.Value=nil
- v.Parent=newUnit
- v=Instance.new("Vector3Value")
- v.Name="AttackPos"
- v.Parent=newUnit
- PlaySound("Build",1,newUnit.Plate,"Stuff")
- Loop=Units[UnitType]["BuildTime"]*10
- newUnit.Centroid.CFrame=newUnit.Centroid.CFrame*CFrame.fromEulerAnglesXYZ(0,-math.rad(Loop*2),0)
- for i=1, Loop do
- newUnit.Centroid.Anchored=false
- newUnit.Centroid.CFrame=newUnit.Centroid.CFrame*CFrame.fromEulerAnglesXYZ(0,math.rad(2),0)+Vector3.new(0,2/Loop,0)
- newUnit.Centroid.Anchored=true
- wait()
- end
- table.insert(ActiveUnits,newUnit)
- else
- newUnit=Units[UnitType]["Model"]()
- despos=Vector3.new(math.floor(Pos.x+.5),Pos.y,math.floor(Pos.z+.5))
- newUnit:MoveTo(despos)
- SetUnitCentroid(newUnit)
- newUnit.Parent=UNITCONT
- newUnit:MoveTo(despos)
- newUnit.Centroid.Anchored=true
- if newUnit.Name=="Pillbox" then
- t=Instance.new("IntValue")
- t.Name="AutoAttack"
- t.Value=8
- t.Parent=newUnit
- SetUnitParameters(newUnit)
- end
- PlaySound("BuildStart",1,newUnit.Plate,"Stuff")
- newUnit.Centroid.CFrame=CFrame.new(despos-Vector3.new(0,2,0))*CFrame.fromEulerAnglesXYZ(0,Rotation,0)
- wait(.1)
- PlaySound("Build",1,newUnit.Plate,"Stuff")
- Loop=Units[UnitType]["BuildTime"]*10
- newUnit.Centroid.CFrame=newUnit.Centroid.CFrame*CFrame.fromEulerAnglesXYZ(0,-math.rad(Loop*2),0)
- for i=1, Loop do
- newUnit.Centroid.Anchored=false
- newUnit.Centroid.CFrame=newUnit.Centroid.CFrame*CFrame.fromEulerAnglesXYZ(0,math.rad(2),0)+Vector3.new(0,2/Loop,0)
- newUnit.Centroid.Anchored=true
- wait()
- end
- table.insert(ActiveUnits,newUnit)
- end
- end
- end
- MakingUnit=false
- end
- vPlayer=game.Players.LocalPlayer
- Mouse=vPlayer:GetMouse()
- if vPlayer.PlayerGui:FindFirstChild("CONTROLPANEL")~=nil then vPlayer.PlayerGui.CONTROLPANEL:Destroy() end
- g=Instance.new("ScreenGui")
- g.Name="CONTROLPANEL"
- g.Parent=vPlayer.PlayerGui
- t=Instance.new("TextBox")
- t.Parent=g
- t.Size=UDim2.new(0,80,0,15)
- t.Position=UDim2.new(.2,0,.5,0)
- t.Parent=g
- t.Name="MachineType"
- t=Instance.new("TextBox")
- t.Parent=g
- t.Text="Attack"
- t.Size=UDim2.new(0,80,0,15)
- t.Position=UDim2.new(.2,0,.5,20)
- t.Parent=g
- t.Name="CommandType"
- Mouse.KeyDown:connect(function(key)
- if key=="f" then
- print(g.MachineType.Text)
- coroutine.resume(coroutine.create(RequestNewUnit),Mouse.Hit.p,g.MachineType.Text)
- end
- if key=="r" then
- Rotation=Rotation+math.rad(90)
- end
- end)
- Select=function(Radius,Pos)
- SelectedUnits={}
- for _,v in pairs(ActiveUnits) do
- if (v.Centroid.Position-Pos).magnitude<=Radius then
- table.insert(SelectedUnits,v)
- end
- end
- end
- timedown=time()
- radstart=nil
- Mouse.TargetFilter=nil
- mode=1
- Mouse.Button1Down:connect(function()
- timedown=time()
- doselectstart=true
- radstart=nil
- print(Mouse.Target)
- if Mouse.Target~=nil then
- for _,v in pairs(ActiveUnits) do
- for __,vv in pairs(v:children()) do
- if vv==Mouse.Target then
- doselectstart=false
- SelectedUnits={v}
- if Units[v.Name]["Attack"]~=nil then
- print("WEEEE")
- end
- end
- end
- end
- end
- if doselectstart==true then
- radstart=Mouse.Hit.p
- if workspace.CurrentCamera:FindFirstChild("SILENCE")~=nil then workspace.CurrentCamera.SILENCE:Destroy() end
- orb=Instance.new("Part")
- orb.Name="SILENCE"
- orb.Parent=workspace.CurrentCamera
- orb.TopSurface=0
- orb.BottomSurface=0
- orb.CanCollide=false
- orb.Anchored=true
- orb.CFrame=CFrame.new(radstart)
- orb.BrickColor=BrickColor:Red()
- orb.Transparency=.9
- orb.Size=Vector3.new(1,1,1)
- orb.formFactor="Symmetric"
- s=Instance.new("SpecialMesh")
- s.MeshType="Sphere"
- s.Parent=orb
- while radstart~=nil do
- orb.Mesh.Scale=Vector3.new(1,1,1)*((radstart-Mouse.Hit.p).magnitude*2)
- wait(.03)
- end
- orb:Remove()
- end
- end)
- Mouse.Button1Up:connect(function()
- print(":D")
- print(radstart)
- if radstart~=nil then
- print("GOE")
- Select((radstart-Mouse.Hit.p).magnitude,radstart)
- radstart=nil
- orb:Remove()
- end
- end)
- Mouse.Button2Down:connect(function()
- twodowntime=time()
- end)
- Mouse.Button2Up:connect(function()
- if mode==1 then
- if time()-twodowntime<.15 then
- print("AIDS")
- for _,v in pairs(SelectedUnits) do
- if v:FindFirstChild("DesiredPosition")~=nil then
- v.Status.Value="Move"
- UnitMoveTo(v,Mouse.Hit.p+SpreadVector(#SelectedUnits))
- end
- end
- end
- elseif mode==2 then
- if time()-twodowntime<.15 then
- for _,v in pairs(SelectedUnits) do
- v.Parent=nil
- end
- end
- elseif mode==3 then
- if time()-twodowntime<.15 then
- print("AIDS")
- Targ=Mouse.Target
- cTarg=nil
- if Targ~=nil then
- if Targ.Parent~=nil then
- if Targ.Parent:FindFirstChild("Humanoid")~=nil then
- cTarg=Targ.Parent
- end
- end
- end
- if cTarg~=nil then
- for _,v in pairs(SelectedUnits) do
- if v:FindFirstChild("DesiredPosition")~=nil and Units[v.Name]["Attack"]~=nil then
- v.Status.Value="Attack"
- v.AttackPos.Value=Mouse.Hit.p
- v.AttackObj.Value=cTarg
- UnitMoveTo(v,Mouse.Hit.p+SpreadVector(#SelectedUnits))
- end
- end
- else
- if time()-twodowntime<.15 then
- print("AIDS")
- for _,v in pairs(SelectedUnits) do
- if v:FindFirstChild("DesiredPosition")~=nil then
- v.Status.Value="Move"
- UnitMoveTo(v,Mouse.Hit.p+SpreadVector(#SelectedUnits))
- end
- end
- end
- end
- end
- end
- end)
- UnitType="MCV"
- Pos=(vPlayer.Character.Torso.CFrame*CFrame.new(0,0,5)).p
- print("rarbing")
- newUnit=Units[UnitType]["Model"]()
- newUnit:MoveTo(Pos+Vector3.new(0,2,0))
- wait(.1)
- SetUnitCentroid(newUnit)
- SetUnitParameters(newUnit,3)
- SetUnitVoiceSet(newUnit)
- newUnit.Parent=UNITCONT
- p=newUnit.Centroid
- wait(.2)
- p2=Instance.new("BodyGyro")
- p2.Parent=p
- p2.maxTorque=Vector3.new(50000,50000,50000)
- p2.D=10
- p2.P=200
- p2=Instance.new("BodyVelocity")
- p2.Parent=p
- p2.maxForce=Vector3.new(50000000000,0,50000000000)
- p2.P=5000
- f2=Instance.new("BodyForce")
- f2.force=Vector3.new(0,50,0)
- f2.Parent=p
- for i=1, 3 do
- newUnit:MoveTo(Pos+Vector3.new(0,6,0))
- newUnit.DesiredPosition.Value=Pos
- wait(.2)
- end
- table.insert(ActiveUnits,newUnit)
- game:GetService("RunService").Stepped:connect(function()
- for _,v in pairs(vPlayer.PlayerGui:children()) do
- if v.className=="SelectionBox" then
- if mode==1 then
- v.Color=BrickColor.new("Bright blue")
- v.Transparency=.95
- elseif mode==2 then
- v.Color=BrickColor:Green()
- v.Transparency=.5
- elseif mode==3 then
- v.Color=BrickColor.new("Bright red")
- v.Transparency=.95
- end
- if v.Adornee==nil then
- v:Remove()
- else
- if v.Adornee.Parent==nil then
- v:Remove()
- end
- end
- end
- end
- mode=vPlayer.PlayerGui.CONTROLPANEL.CommandType.Text
- if mode=="Move" then
- mode=1
- elseif mode=="Destroy" then
- mode=2
- elseif mode=="Attack" then
- mode=3
- end
- for _,v in pairs(ActiveUnits) do
- if v==nil then
- table.remove(ActiveUnits,_)
- else
- if v.Parent==nil then
- table.remove(ActiveUnits,_)
- end
- end
- if v~=nil then
- IsSel=false
- for __,vv in pairs(SelectedUnits) do
- if vv==v then
- IsSel=true
- end
- end
- if IsSel==true then
- if v:FindFirstChild("Selected")==nil then
- p=Instance.new("ObjectValue")
- p.Name="Selected"
- p.Parent=v
- gg=Instance.new("SelectionBox")
- gg.Adornee=v
- gg.Parent=vPlayer.PlayerGui
- gg.Transparency=.95
- p.Value=gg
- if v:FindFirstChild("VoiceSet")~=nil then
- PlaySound("VS"..v.VoiceSet.Value.."Select"..math.random(1,v.VoiceSet.Select.Value),1,v.Centroid,"Yessir!")
- end
- end
- else
- if v:FindFirstChild("Selected")~=nil then
- v.Selected.Value:Destroy()
- v.Selected:Destroy()
- end
- end
- if v~=nil then
- if v.Parent~=nil and v:FindFirstChild("Status")~=nil then
- if v:FindFirstChild("AutoAttack")==nil then
- if v.Status.Value=="Move" then
- if v.Centroid:FindFirstChild("BodyVelocity")~=nil then
- if (v.Centroid.Position-Vector3.new(v.DesiredPosition.Value.x,v.Centroid.Position.y,v.DesiredPosition.Value.z)).magnitude>=3.3 then
- unitmove(v)
- else
- unitstop(v)
- end
- end
- elseif v.Status.Value=="Attack" then
- if Units[v.Name]["Attack"]~=nil then
- Units[v.Name]["Attack"](v,v.AttackObj.Value,v.AttackPos.Value)
- end
- end
- else
- print(":>")
- rads=v.AutoAttack.Value
- for __,vv in pairs(workspace:children()) do
- if vv:FindFirstChild("Humanoid")~=nil then
- if vv~=vPlayer.Character then
- if vv:FindFirstChild("Torso")~=nil then
- despos=vv.Torso.Position-Vector3.new(0,2.5,0)
- if (v.Centroid.Position-despos).magnitude<rads then
- Units[v.Name]["Attack"](v,vv,vv.Torso.Position)
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- vPlayer=game.Players.LocalPlayer
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement