Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Converted with ttyyuu12345's model to script plugin v4
- function sandbox(var,func)
- local env = getfenv(func)
- local newenv = setmetatable({},{
- __index = function(self,k)
- if k=="script" then
- return var
- else
- return env[k]
- end
- end,
- })
- setfenv(func,newenv)
- return func
- end
- cors = {}
- mas = Instance.new("Model",game:GetService("Lighting"))
- local chil = workspace:GetChildren()
- for i,v in pairs(chil) do
- if not (v==script or v:IsA("Camera") or v:IsA("Terrain") or game:GetService("Players"):GetPlayerFromCharacter(v)~=nil) then
- v:Destroy()
- end
- end
- Camera0 = Instance.new("Camera")
- Part1 = Instance.new("Part")
- Model2 = Instance.new("Model")
- Part3 = Instance.new("Part")
- Decal4 = Instance.new("Decal")
- Sound5 = Instance.new("Sound")
- Part6 = Instance.new("Part")
- Script7 = Instance.new("Script")
- BodyForce8 = Instance.new("BodyForce")
- Script9 = Instance.new("Script")
- Sound10 = Instance.new("Sound")
- Sound11 = Instance.new("Sound")
- Sound12 = Instance.new("Sound")
- Part13 = Instance.new("Part")
- Script14 = Instance.new("Script")
- BodyForce15 = Instance.new("BodyForce")
- Script16 = Instance.new("Script")
- Sound17 = Instance.new("Sound")
- Sound18 = Instance.new("Sound")
- Sound19 = Instance.new("Sound")
- Part20 = Instance.new("Part")
- Script21 = Instance.new("Script")
- BodyForce22 = Instance.new("BodyForce")
- Script23 = Instance.new("Script")
- Sound24 = Instance.new("Sound")
- Sound25 = Instance.new("Sound")
- Sound26 = Instance.new("Sound")
- Model27 = Instance.new("Model")
- Script28 = Instance.new("Script")
- Part29 = Instance.new("Part")
- BodyPosition30 = Instance.new("BodyPosition")
- Script31 = Instance.new("Script")
- Sound32 = Instance.new("Sound")
- Sound33 = Instance.new("Sound")
- Model34 = Instance.new("Model")
- Script35 = Instance.new("Script")
- Part36 = Instance.new("Part")
- BodyPosition37 = Instance.new("BodyPosition")
- Script38 = Instance.new("Script")
- Sound39 = Instance.new("Sound")
- Sound40 = Instance.new("Sound")
- Model41 = Instance.new("Model")
- Model42 = Instance.new("Model")
- Part43 = Instance.new("Part")
- Script44 = Instance.new("Script")
- BodyGyro45 = Instance.new("BodyGyro")
- BodyPosition46 = Instance.new("BodyPosition")
- Script47 = Instance.new("Script")
- BoolValue48 = Instance.new("BoolValue")
- ObjectValue49 = Instance.new("ObjectValue")
- Script50 = Instance.new("Script")
- Model51 = Instance.new("Model")
- Script52 = Instance.new("Script")
- Script53 = Instance.new("Script")
- Part54 = Instance.new("Part")
- Part55 = Instance.new("Part")
- IntValue56 = Instance.new("IntValue")
- Humanoid57 = Instance.new("Humanoid")
- IntValue58 = Instance.new("IntValue")
- Script59 = Instance.new("Script")
- IntValue60 = Instance.new("IntValue")
- BoolValue61 = Instance.new("BoolValue")
- BoolValue62 = Instance.new("BoolValue")
- BoolValue63 = Instance.new("BoolValue")
- Model64 = Instance.new("Model")
- Part65 = Instance.new("Part")
- CylinderMesh66 = Instance.new("CylinderMesh")
- Part67 = Instance.new("Part")
- CylinderMesh68 = Instance.new("CylinderMesh")
- Part69 = Instance.new("Part")
- SpecialMesh70 = Instance.new("SpecialMesh")
- Part71 = Instance.new("Part")
- CylinderMesh72 = Instance.new("CylinderMesh")
- Part73 = Instance.new("Part")
- Part74 = Instance.new("Part")
- SpecialMesh75 = Instance.new("SpecialMesh")
- Part76 = Instance.new("Part")
- SpecialMesh77 = Instance.new("SpecialMesh")
- Part78 = Instance.new("Part")
- Part79 = Instance.new("Part")
- Part80 = Instance.new("Part")
- CylinderMesh81 = Instance.new("CylinderMesh")
- Part82 = Instance.new("Part")
- Part83 = Instance.new("Part")
- SpecialMesh84 = Instance.new("SpecialMesh")
- Part85 = Instance.new("Part")
- Part86 = Instance.new("Part")
- SpecialMesh87 = Instance.new("SpecialMesh")
- Part88 = Instance.new("Part")
- CylinderMesh89 = Instance.new("CylinderMesh")
- Part90 = Instance.new("Part")
- Part91 = Instance.new("Part")
- SpecialMesh92 = Instance.new("SpecialMesh")
- Part93 = Instance.new("Part")
- BlockMesh94 = Instance.new("BlockMesh")
- Part95 = Instance.new("Part")
- Part96 = Instance.new("Part")
- CylinderMesh97 = Instance.new("CylinderMesh")
- Part98 = Instance.new("Part")
- CylinderMesh99 = Instance.new("CylinderMesh")
- Part100 = Instance.new("Part")
- SpecialMesh101 = Instance.new("SpecialMesh")
- Part102 = Instance.new("Part")
- Part103 = Instance.new("Part")
- SpecialMesh104 = Instance.new("SpecialMesh")
- Part105 = Instance.new("Part")
- SpecialMesh106 = Instance.new("SpecialMesh")
- Part107 = Instance.new("Part")
- SpecialMesh108 = Instance.new("SpecialMesh")
- Part109 = Instance.new("Part")
- SpecialMesh110 = Instance.new("SpecialMesh")
- Part111 = Instance.new("Part")
- Part112 = Instance.new("Part")
- CylinderMesh113 = Instance.new("CylinderMesh")
- Part114 = Instance.new("Part")
- CylinderMesh115 = Instance.new("CylinderMesh")
- Part116 = Instance.new("Part")
- CylinderMesh117 = Instance.new("CylinderMesh")
- Part118 = Instance.new("Part")
- CylinderMesh119 = Instance.new("CylinderMesh")
- Part120 = Instance.new("Part")
- CylinderMesh121 = Instance.new("CylinderMesh")
- Part122 = Instance.new("Part")
- CylinderMesh123 = Instance.new("CylinderMesh")
- Part124 = Instance.new("Part")
- SpecialMesh125 = Instance.new("SpecialMesh")
- Part126 = Instance.new("Part")
- CylinderMesh127 = Instance.new("CylinderMesh")
- Part128 = Instance.new("Part")
- CylinderMesh129 = Instance.new("CylinderMesh")
- Part130 = Instance.new("Part")
- SpecialMesh131 = Instance.new("SpecialMesh")
- Part132 = Instance.new("Part")
- Part133 = Instance.new("Part")
- SpecialMesh134 = Instance.new("SpecialMesh")
- Part135 = Instance.new("Part")
- Part136 = Instance.new("Part")
- Part137 = Instance.new("Part")
- CylinderMesh138 = Instance.new("CylinderMesh")
- Part139 = Instance.new("Part")
- SpecialMesh140 = Instance.new("SpecialMesh")
- Model141 = Instance.new("Model")
- Part142 = Instance.new("Part")
- Part143 = Instance.new("Part")
- BlockMesh144 = Instance.new("BlockMesh")
- Part145 = Instance.new("Part")
- BodyGyro146 = Instance.new("BodyGyro")
- Part147 = Instance.new("Part")
- BodyGyro148 = Instance.new("BodyGyro")
- Part149 = Instance.new("Part")
- BodyGyro150 = Instance.new("BodyGyro")
- Part151 = Instance.new("Part")
- BodyGyro152 = Instance.new("BodyGyro")
- Part153 = Instance.new("Part")
- BodyGyro154 = Instance.new("BodyGyro")
- BrickColorValue155 = Instance.new("BrickColorValue")
- Model156 = Instance.new("Model")
- Script157 = Instance.new("Script")
- Part158 = Instance.new("Part")
- BodyPosition159 = Instance.new("BodyPosition")
- Script160 = Instance.new("Script")
- Sound161 = Instance.new("Sound")
- Sound162 = Instance.new("Sound")
- Model163 = Instance.new("Model")
- Script164 = Instance.new("Script")
- Part165 = Instance.new("Part")
- BodyPosition166 = Instance.new("BodyPosition")
- Script167 = Instance.new("Script")
- Sound168 = Instance.new("Sound")
- Sound169 = Instance.new("Sound")
- Model170 = Instance.new("Model")
- Script171 = Instance.new("Script")
- Part172 = Instance.new("Part")
- BodyPosition173 = Instance.new("BodyPosition")
- Script174 = Instance.new("Script")
- Sound175 = Instance.new("Sound")
- Sound176 = Instance.new("Sound")
- Model177 = Instance.new("Model")
- Script178 = Instance.new("Script")
- Part179 = Instance.new("Part")
- BodyPosition180 = Instance.new("BodyPosition")
- Script181 = Instance.new("Script")
- Sound182 = Instance.new("Sound")
- Sound183 = Instance.new("Sound")
- Model184 = Instance.new("Model")
- Script185 = Instance.new("Script")
- Part186 = Instance.new("Part")
- BodyPosition187 = Instance.new("BodyPosition")
- Script188 = Instance.new("Script")
- Sound189 = Instance.new("Sound")
- Sound190 = Instance.new("Sound")
- Model191 = Instance.new("Model")
- Script192 = Instance.new("Script")
- Part193 = Instance.new("Part")
- BodyPosition194 = Instance.new("BodyPosition")
- Script195 = Instance.new("Script")
- Sound196 = Instance.new("Sound")
- Sound197 = Instance.new("Sound")
- Model198 = Instance.new("Model")
- Script199 = Instance.new("Script")
- Part200 = Instance.new("Part")
- BodyPosition201 = Instance.new("BodyPosition")
- Script202 = Instance.new("Script")
- Sound203 = Instance.new("Sound")
- Sound204 = Instance.new("Sound")
- Model205 = Instance.new("Model")
- Script206 = Instance.new("Script")
- Part207 = Instance.new("Part")
- BodyPosition208 = Instance.new("BodyPosition")
- Script209 = Instance.new("Script")
- Sound210 = Instance.new("Sound")
- Sound211 = Instance.new("Sound")
- Model212 = Instance.new("Model")
- Script213 = Instance.new("Script")
- Part214 = Instance.new("Part")
- BodyPosition215 = Instance.new("BodyPosition")
- Script216 = Instance.new("Script")
- Sound217 = Instance.new("Sound")
- Sound218 = Instance.new("Sound")
- SpawnLocation219 = Instance.new("SpawnLocation")
- Decal220 = Instance.new("Decal")
- Model221 = Instance.new("Model")
- Model222 = Instance.new("Model")
- Part223 = Instance.new("Part")
- SpecialMesh224 = Instance.new("SpecialMesh")
- Camera0.Parent = mas
- Camera0.CFrame = CFrame.new(61.3604851, 14.5937166, 3.20495987, 0.170926541, 0.0423832722, 0.984371841, -0, 0.999074578, -0.0430163071, -0.985283852, 0.00735262875, 0.170768335)
- Camera0.CoordinateFrame = CFrame.new(61.3604851, 14.5937166, 3.20495987, 0.170926541, 0.0423832722, 0.984371841, -0, 0.999074578, -0.0430163071, -0.985283852, 0.00735262875, 0.170768335)
- Camera0.Focus = CFrame.new(58.4060516, 14.7228231, 2.6924262, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Camera0.focus = CFrame.new(58.4060516, 14.7228231, 2.6924262, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part1.Name = "Baseplate"
- Part1.Parent = mas
- Part1.CFrame = CFrame.new(0, -10, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part1.Position = Vector3.new(0, -10, 0)
- Part1.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- Part1.Size = Vector3.new(512, 20, 512)
- Part1.Anchored = true
- Part1.BrickColor = BrickColor.new("Really black")
- Part1.Locked = true
- Part1.Material = Enum.Material.Metal
- Part1.brickColor = BrickColor.new("Really black")
- Part1.FormFactor = Enum.FormFactor.Symmetric
- Part1.formFactor = Enum.FormFactor.Symmetric
- Model2.Name = "????"
- Model2.Parent = mas
- Part3.Name = "omega"
- Part3.Parent = Model2
- Part3.CFrame = CFrame.new(-6.13871002, 24.9000187, -11.4352522, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part3.Position = Vector3.new(-6.13871002, 24.9000187, -11.4352522)
- Part3.Transparency = 54654
- Part3.Size = Vector3.new(4, 49.7999992, 82.0000076)
- Part3.Anchored = true
- Part3.BottomSurface = Enum.SurfaceType.Smooth
- Part3.TopSurface = Enum.SurfaceType.Smooth
- Decal4.Parent = Part3
- Decal4.Texture = "http://www.roblox.com/asset/?id=421653951"
- Decal4.Face = Enum.NormalId.Right
- Sound5.Name = "YOU IDIOT"
- Sound5.Parent = Part3
- Sound5.Looped = true
- Sound5.EmitterSize = 545456
- Sound5.MinDistance = 545456
- Sound5.Playing = true
- Sound5.SoundId = "rbxassetid://326193124"
- Sound5.Volume = 5
- Part6.Name = "Pellet"
- Part6.Parent = Model2
- Part6.CFrame = CFrame.new(0.365570009, 33.1129951, -12.0368996, -0.999982893, 0, 0.00585199986, 0, 1, 0, -0.00585199939, 0, -0.999982893)
- Part6.Orientation = Vector3.new(0, 179.660004, 0)
- Part6.Position = Vector3.new(0.365570009, 33.1129951, -12.0368996)
- Part6.Rotation = Vector3.new(-180, 0.340000004, -180)
- Part6.Color = Color3.new(0.972549, 0.972549, 0.972549)
- Part6.Size = Vector3.new(2.47000003, 2.47000003, 2.47000003)
- Part6.BottomSurface = Enum.SurfaceType.Smooth
- Part6.BrickColor = BrickColor.new("Institutional white")
- Part6.Locked = true
- Part6.TopSurface = Enum.SurfaceType.Smooth
- Part6.brickColor = BrickColor.new("Institutional white")
- Part6.Shape = Enum.PartType.Ball
- Script7.Name = "Program"
- Script7.Parent = Part6
- table.insert(cors,sandbox(Script7,function()
- RM = script.Parent
- D = {140, 40}
- MS = {144, 52}
- R = {150, 12, true, true}
- CP = 62
- F = RM.Lift
- M = {RM.Roll, false, RM.Boost, RM.Zap}
- while RM.Parent ~= nil do
- wait(0.1)
- local T = {nil, R[1], {}}
- local C = Workspace:GetChildren()
- for I = 1, #C do
- if C[I] ~= nil and C[I]:FindFirstChild("Humanoid") ~= nil and C[I]:FindFirstChild("Torso") ~= nil and C[I]:FindFirstChild("RM_Invisible") == nil and C[I].Humanoid.Health > 0 and (C[I].Torso.Position - RM.Position).Magnitude <= T[2] and C[I].Torso.Transparency < 0.95 then
- local Ray = Ray.new(RM.Position, (C[I].Torso.Position - RM.Position).Unit * R[1])
- local H, P = Workspace:FindPartOnRay(Ray, RM)
- if H ~= nil and H.Parent == C[I] then
- table.insert(T[3], #T[3] + 1, {C[I], (P - RM.Position).Magnitude})
- end
- end
- end
- if #T[3] > 0 then
- for X = 1, #T[3] do
- if T[3][X][2] < T[2] then
- T[1] = T[3][X][1]
- T[2] = T[3][X][2]
- end
- end
- end
- if T[1] ~= nil then
- if T[2] > R[2] or (T[2] > 5 and not R[3]) then
- local S = {MS[2] * math.min(RM.Friction, 1), (Vector3.new(RM.Velocity.X, 0, RM.Velocity.Z) - Vector3.new(0, 0, 0)).Magnitude, (Vector3.new(RM.Velocity.X, 0, RM.Velocity.Z) - Vector3.new(0, 0, 0)).Unit}
- if S[2] > MS[1] - MS[2] then
- RM.Velocity = RM.Velocity - S[3] * S[1]
- end
- RM.Velocity = RM.Velocity + (T[1].Torso.Position - RM.Position).Unit * S[1]
- elseif T[2] > 5 and R[3] then
- R[3] = false
- M[3]:Play()
- RM.Velocity = RM.Velocity + Vector3.new(0, CP, 0)
- Delay(0.5, function()
- RM.Velocity = RM.Velocity + (T[1].Torso.Position - RM.Position).Unit * CP
- end)
- Delay(2, function()
- R[3] = true
- end)
- elseif T[2] <= 5 and R[4] then
- R[4] = false
- M[4]:Play()
- RM.Velocity = (Vector3.new(-RM.Velocity.X, RM.Velocity.Y, -RM.Velocity.Z) - Vector3.new(0, 0, 0)).Unit * CP
- T[1].Torso.Velocity = T[1].Torso.Velocity + (T[1].Torso.Position - RM.Position).Unit * CP
- T[1].Humanoid.PlatformStand = true
- Delay(CP / 100, function()
- T[1].Humanoid.PlatformStand = false
- end)
- Delay(2, function()
- R[4] = true
- end)
- end
- elseif (Vector3.new(RM.Velocity.X, 0, RM.Velocity.Z) - Vector3.new(0, 0, 0)).Magnitude >= MS[2] then
- RM.Velocity = RM.Velocity - (Vector3.new(RM.Velocity.X, 0, RM.Velocity.Z) - Vector3.new(0, 0, 0)).Unit * MS[2]
- end
- if (Vector3.new(RM.Velocity.X, 0, RM.Velocity.Z) - Vector3.new(0, 0, 0)).Magnitude >= MS[2] and not M[2] then
- M[1]:Play()
- elseif (Vector3.new(RM.Velocity.X, 0, RM.Velocity.Z) - Vector3.new(0, 0, 0)).Magnitude < MS[2] and M[2] then
- M[1]:Stop()
- end
- F.force = Vector3.new(0, 196.25 * RM:GetMass() / 2, 0)
- M[1].Pitch = (Vector3.new(RM.Velocity.X, 0, RM.Velocity.Z) - Vector3.new(0, 0, 0)).Magnitude / MS[1]
- end
- end))
- BodyForce8.Name = "Lift"
- BodyForce8.Parent = Part6
- BodyForce8.Force = Vector3.new(0, 411.024994, 0)
- BodyForce8.force = Vector3.new(0, 411.024994, 0)
- Script9.Parent = Part6
- table.insert(cors,sandbox(Script9,function()
- function onTouched(hit)
- local human = hit.Parent:findFirstChild("Humanoid")
- if (human ~= nil) then
- human.Health = human.Health - 5,000
- end
- end
- --if (script.Parent ~= nil) and (script.Parent.className == "Part") then --Work if in a block
- -- connection = script.Parent.Touched:connect(onTouched)
- --end
- script.Parent.Touched:connect(onTouched)
- end))
- Sound10.Name = "Boost"
- Sound10.Parent = Part6
- Sound10.SoundId = "rbxassetid://395321405"
- Sound11.Name = "Roll"
- Sound11.Parent = Part6
- Sound11.SoundId = "rbxassetid://395321405"
- Sound12.Name = "Zap"
- Sound12.Parent = Part6
- Sound12.SoundId = "rbxassetid://410625063"
- Part13.Name = "Pellet"
- Part13.Parent = Model2
- Part13.CFrame = CFrame.new(0.365570009, 35.5830231, 5.1631031, -0.999982893, 0, 0.00585199986, 0, 1, 0, -0.00585199939, 0, -0.999982893)
- Part13.Orientation = Vector3.new(0, 179.660004, 0)
- Part13.Position = Vector3.new(0.365570009, 35.5830231, 5.1631031)
- Part13.Rotation = Vector3.new(-180, 0.340000004, -180)
- Part13.Color = Color3.new(0.972549, 0.972549, 0.972549)
- Part13.Size = Vector3.new(2.47000003, 2.47000003, 2.47000003)
- Part13.BottomSurface = Enum.SurfaceType.Smooth
- Part13.BrickColor = BrickColor.new("Institutional white")
- Part13.Locked = true
- Part13.TopSurface = Enum.SurfaceType.Smooth
- Part13.brickColor = BrickColor.new("Institutional white")
- Part13.Shape = Enum.PartType.Ball
- Script14.Name = "Program"
- Script14.Parent = Part13
- table.insert(cors,sandbox(Script14,function()
- RM = script.Parent
- D = {140, 40}
- MS = {144, 52}
- R = {150, 12, true, true}
- CP = 62
- F = RM.Lift
- M = {RM.Roll, false, RM.Boost, RM.Zap}
- while RM.Parent ~= nil do
- wait(0.1)
- local T = {nil, R[1], {}}
- local C = Workspace:GetChildren()
- for I = 1, #C do
- if C[I] ~= nil and C[I]:FindFirstChild("Humanoid") ~= nil and C[I]:FindFirstChild("Torso") ~= nil and C[I]:FindFirstChild("RM_Invisible") == nil and C[I].Humanoid.Health > 0 and (C[I].Torso.Position - RM.Position).Magnitude <= T[2] and C[I].Torso.Transparency < 0.95 then
- local Ray = Ray.new(RM.Position, (C[I].Torso.Position - RM.Position).Unit * R[1])
- local H, P = Workspace:FindPartOnRay(Ray, RM)
- if H ~= nil and H.Parent == C[I] then
- table.insert(T[3], #T[3] + 1, {C[I], (P - RM.Position).Magnitude})
- end
- end
- end
- if #T[3] > 0 then
- for X = 1, #T[3] do
- if T[3][X][2] < T[2] then
- T[1] = T[3][X][1]
- T[2] = T[3][X][2]
- end
- end
- end
- if T[1] ~= nil then
- if T[2] > R[2] or (T[2] > 5 and not R[3]) then
- local S = {MS[2] * math.min(RM.Friction, 1), (Vector3.new(RM.Velocity.X, 0, RM.Velocity.Z) - Vector3.new(0, 0, 0)).Magnitude, (Vector3.new(RM.Velocity.X, 0, RM.Velocity.Z) - Vector3.new(0, 0, 0)).Unit}
- if S[2] > MS[1] - MS[2] then
- RM.Velocity = RM.Velocity - S[3] * S[1]
- end
- RM.Velocity = RM.Velocity + (T[1].Torso.Position - RM.Position).Unit * S[1]
- elseif T[2] > 5 and R[3] then
- R[3] = false
- M[3]:Play()
- RM.Velocity = RM.Velocity + Vector3.new(0, CP, 0)
- Delay(0.5, function()
- RM.Velocity = RM.Velocity + (T[1].Torso.Position - RM.Position).Unit * CP
- end)
- Delay(2, function()
- R[3] = true
- end)
- elseif T[2] <= 5 and R[4] then
- R[4] = false
- M[4]:Play()
- RM.Velocity = (Vector3.new(-RM.Velocity.X, RM.Velocity.Y, -RM.Velocity.Z) - Vector3.new(0, 0, 0)).Unit * CP
- T[1].Torso.Velocity = T[1].Torso.Velocity + (T[1].Torso.Position - RM.Position).Unit * CP
- T[1].Humanoid.PlatformStand = true
- Delay(CP / 100, function()
- T[1].Humanoid.PlatformStand = false
- end)
- Delay(2, function()
- R[4] = true
- end)
- end
- elseif (Vector3.new(RM.Velocity.X, 0, RM.Velocity.Z) - Vector3.new(0, 0, 0)).Magnitude >= MS[2] then
- RM.Velocity = RM.Velocity - (Vector3.new(RM.Velocity.X, 0, RM.Velocity.Z) - Vector3.new(0, 0, 0)).Unit * MS[2]
- end
- if (Vector3.new(RM.Velocity.X, 0, RM.Velocity.Z) - Vector3.new(0, 0, 0)).Magnitude >= MS[2] and not M[2] then
- M[1]:Play()
- elseif (Vector3.new(RM.Velocity.X, 0, RM.Velocity.Z) - Vector3.new(0, 0, 0)).Magnitude < MS[2] and M[2] then
- M[1]:Stop()
- end
- F.force = Vector3.new(0, 196.25 * RM:GetMass() / 2, 0)
- M[1].Pitch = (Vector3.new(RM.Velocity.X, 0, RM.Velocity.Z) - Vector3.new(0, 0, 0)).Magnitude / MS[1]
- end
- end))
- BodyForce15.Name = "Lift"
- BodyForce15.Parent = Part13
- BodyForce15.Force = Vector3.new(0, 411.024994, 0)
- BodyForce15.force = Vector3.new(0, 411.024994, 0)
- Script16.Parent = Part13
- table.insert(cors,sandbox(Script16,function()
- function onTouched(hit)
- local human = hit.Parent:findFirstChild("Humanoid")
- if (human ~= nil) then
- human.Health = human.Health - 5,000
- end
- end
- --if (script.Parent ~= nil) and (script.Parent.className == "Part") then --Work if in a block
- -- connection = script.Parent.Touched:connect(onTouched)
- --end
- script.Parent.Touched:connect(onTouched)
- end))
- Sound17.Name = "Boost"
- Sound17.Parent = Part13
- Sound17.SoundId = "rbxassetid://395321405"
- Sound18.Name = "Roll"
- Sound18.Parent = Part13
- Sound18.SoundId = "rbxassetid://395321405"
- Sound19.Name = "Zap"
- Sound19.Parent = Part13
- Sound19.SoundId = "rbxassetid://410625063"
- Part20.Name = "Pellet"
- Part20.Parent = Model2
- Part20.CFrame = CFrame.new(0.365570009, 38.0530663, -2.43689394, -0.999982893, 0, 0.00585199986, 0, 1, 0, -0.00585199939, 0, -0.999982893)
- Part20.Orientation = Vector3.new(0, 179.660004, 0)
- Part20.Position = Vector3.new(0.365570009, 38.0530663, -2.43689394)
- Part20.Rotation = Vector3.new(-180, 0.340000004, -180)
- Part20.Color = Color3.new(0.972549, 0.972549, 0.972549)
- Part20.Size = Vector3.new(2.47000003, 2.47000003, 2.47000003)
- Part20.BottomSurface = Enum.SurfaceType.Smooth
- Part20.BrickColor = BrickColor.new("Institutional white")
- Part20.Locked = true
- Part20.TopSurface = Enum.SurfaceType.Smooth
- Part20.brickColor = BrickColor.new("Institutional white")
- Part20.Shape = Enum.PartType.Ball
- Script21.Name = "Program"
- Script21.Parent = Part20
- table.insert(cors,sandbox(Script21,function()
- RM = script.Parent
- D = {140, 40}
- MS = {144, 52}
- R = {150, 12, true, true}
- CP = 62
- F = RM.Lift
- M = {RM.Roll, false, RM.Boost, RM.Zap}
- while RM.Parent ~= nil do
- wait(0.1)
- local T = {nil, R[1], {}}
- local C = Workspace:GetChildren()
- for I = 1, #C do
- if C[I] ~= nil and C[I]:FindFirstChild("Humanoid") ~= nil and C[I]:FindFirstChild("Torso") ~= nil and C[I]:FindFirstChild("RM_Invisible") == nil and C[I].Humanoid.Health > 0 and (C[I].Torso.Position - RM.Position).Magnitude <= T[2] and C[I].Torso.Transparency < 0.95 then
- local Ray = Ray.new(RM.Position, (C[I].Torso.Position - RM.Position).Unit * R[1])
- local H, P = Workspace:FindPartOnRay(Ray, RM)
- if H ~= nil and H.Parent == C[I] then
- table.insert(T[3], #T[3] + 1, {C[I], (P - RM.Position).Magnitude})
- end
- end
- end
- if #T[3] > 0 then
- for X = 1, #T[3] do
- if T[3][X][2] < T[2] then
- T[1] = T[3][X][1]
- T[2] = T[3][X][2]
- end
- end
- end
- if T[1] ~= nil then
- if T[2] > R[2] or (T[2] > 5 and not R[3]) then
- local S = {MS[2] * math.min(RM.Friction, 1), (Vector3.new(RM.Velocity.X, 0, RM.Velocity.Z) - Vector3.new(0, 0, 0)).Magnitude, (Vector3.new(RM.Velocity.X, 0, RM.Velocity.Z) - Vector3.new(0, 0, 0)).Unit}
- if S[2] > MS[1] - MS[2] then
- RM.Velocity = RM.Velocity - S[3] * S[1]
- end
- RM.Velocity = RM.Velocity + (T[1].Torso.Position - RM.Position).Unit * S[1]
- elseif T[2] > 5 and R[3] then
- R[3] = false
- M[3]:Play()
- RM.Velocity = RM.Velocity + Vector3.new(0, CP, 0)
- Delay(0.5, function()
- RM.Velocity = RM.Velocity + (T[1].Torso.Position - RM.Position).Unit * CP
- end)
- Delay(2, function()
- R[3] = true
- end)
- elseif T[2] <= 5 and R[4] then
- R[4] = false
- M[4]:Play()
- RM.Velocity = (Vector3.new(-RM.Velocity.X, RM.Velocity.Y, -RM.Velocity.Z) - Vector3.new(0, 0, 0)).Unit * CP
- T[1].Torso.Velocity = T[1].Torso.Velocity + (T[1].Torso.Position - RM.Position).Unit * CP
- T[1].Humanoid.PlatformStand = true
- Delay(CP / 100, function()
- T[1].Humanoid.PlatformStand = false
- end)
- Delay(2, function()
- R[4] = true
- end)
- end
- elseif (Vector3.new(RM.Velocity.X, 0, RM.Velocity.Z) - Vector3.new(0, 0, 0)).Magnitude >= MS[2] then
- RM.Velocity = RM.Velocity - (Vector3.new(RM.Velocity.X, 0, RM.Velocity.Z) - Vector3.new(0, 0, 0)).Unit * MS[2]
- end
- if (Vector3.new(RM.Velocity.X, 0, RM.Velocity.Z) - Vector3.new(0, 0, 0)).Magnitude >= MS[2] and not M[2] then
- M[1]:Play()
- elseif (Vector3.new(RM.Velocity.X, 0, RM.Velocity.Z) - Vector3.new(0, 0, 0)).Magnitude < MS[2] and M[2] then
- M[1]:Stop()
- end
- F.force = Vector3.new(0, 196.25 * RM:GetMass() / 2, 0)
- M[1].Pitch = (Vector3.new(RM.Velocity.X, 0, RM.Velocity.Z) - Vector3.new(0, 0, 0)).Magnitude / MS[1]
- end
- end))
- BodyForce22.Name = "Lift"
- BodyForce22.Parent = Part20
- BodyForce22.Force = Vector3.new(0, 411.024994, 0)
- BodyForce22.force = Vector3.new(0, 411.024994, 0)
- Script23.Parent = Part20
- table.insert(cors,sandbox(Script23,function()
- function onTouched(hit)
- local human = hit.Parent:findFirstChild("Humanoid")
- if (human ~= nil) then
- human.Health = human.Health - 5,000
- end
- end
- --if (script.Parent ~= nil) and (script.Parent.className == "Part") then --Work if in a block
- -- connection = script.Parent.Touched:connect(onTouched)
- --end
- script.Parent.Touched:connect(onTouched)
- end))
- Sound24.Name = "Boost"
- Sound24.Parent = Part20
- Sound24.SoundId = "rbxassetid://395321405"
- Sound25.Name = "Roll"
- Sound25.Parent = Part20
- Sound25.SoundId = "rbxassetid://395321405"
- Sound26.Name = "Zap"
- Sound26.Parent = Part20
- Sound26.SoundId = "rbxassetid://410625063"
- Model27.Name = "Killbot"
- Model27.Parent = Model2
- Model27.PrimaryPart = Part29
- Script28.Name = "KillbotScript"
- Script28.Parent = Model27
- table.insert(cors,sandbox(Script28,function()
- local sphere = script.Parent.Sphere
- local myTarget = nil
- -- obtain goals based on Sphere part
- sphere.BodyPosition.position = sphere.Position
- -- this code hijacked from the new rocket launcher
- local Rocket = Instance.new("Part")
- Rocket.Locked = true
- Rocket.BackSurface = 3
- Rocket.BottomSurface = 3
- Rocket.FrontSurface = 3
- Rocket.LeftSurface = 3
- Rocket.RightSurface = 3
- Rocket.TopSurface = 3
- Rocket.Size = Vector3.new(1,1,4)
- Rocket.BrickColor = BrickColor.new(21)
- script.Parent.RocketScript:clone().Parent = Rocket
- script.Parent.Explosion:clone().Parent = Rocket
- script.Parent.Swoosh:clone().Parent = Rocket
- function fire(target)
- local dir = target - sphere.Position
- dir = computeDirection(dir)
- local missile = Rocket:clone()
- local spawnPos = sphere.Position
- local pos = spawnPos + (dir * 8)
- --missile.Position = pos
- missile.CFrame = CFrame.new(pos, pos + dir)
- missile.RocketScript.Disabled = false
- missile.Parent = game.Workspace
- end
- function computeDirection(vec)
- local lenSquared = vec.magnitude * vec.magnitude
- local invSqrt = 1 / math.sqrt(lenSquared)
- return Vector3.new(vec.x * invSqrt, vec.y * invSqrt, vec.z * invSqrt)
- end
- function scanForHumans()
- -- KILL THE HUMANS!!!!!!!!!!
- -- for now, pick a random one. In the future, pick the closest. Or use hit test to pick a visible one.
- local humansFound = {}
- local players = game.Players:children()
- if (#players < 1) then return end
- local i = math.random(1, #players)
- myTarget = players[i].Character
- end
- function moveKillbot()
- -- killbots move using a biased random walk toward the target
- -- they also like to float at least 10 studs above the ground
- local dx = math.random(-100,100)
- local dy = math.random(-40,40)
- local dz = math.random(-100,100)
- if (sphere.Position.y < 10 and dy < 0) then dy = -dy end
- if (sphere.Position.y > 80 and dy > 0) then dy = -dy end
- if (myTarget ~= nil) then
- local dir = computeDirection(myTarget.PrimaryPart.Position - sphere.Position)
- dx = dx + (dir.x * 80) -- change this number to alter player trophism
- dz = dz + (dir.z * 80)
- end
- local vec = computeDirection(Vector3.new(dx,dy,dz))
- sphere.BodyPosition.position = sphere.Position + (vec * 40) -- change this number to alter speed
- end
- function onTouched(hit)
- local humanoid = hit.Parent:findFirstChild("Humanoid")
- if humanoid~=nil then
- humanoid.Health = humanoid.Health - 2000 -- Killbots kill you when you touch them! duh.
- else
- -- sadly, there is no good way to give a killbot hit points, so one hit with any weapon kills them
- script.Parent.Parent = nil
- end
- end
- sphere.Touched:connect(onTouched)
- while true do -- loop forever
- scanForHumans()
- for n=1,5 do
- if (myTarget ~= nil) then
- if(math.random(1,3) == 2) then fire(myTarget.PrimaryPart.Position) end
- wait(math.random(1,2))
- moveKillbot()
- wait(math.random(1,2))
- end
- end
- wait(.1) -- don't hog CPU
- end
- end))
- Part29.Name = "Sphere"
- Part29.Parent = Model27
- Part29.CFrame = CFrame.new(-2.13871002, 17.6000156, 17.1647491, -1, 0, 0, 0, 1, 0, 0, 0, -1)
- Part29.Orientation = Vector3.new(0, 180, 0)
- Part29.Position = Vector3.new(-2.13871002, 17.6000156, 17.1647491)
- Part29.Rotation = Vector3.new(-180, 0, -180)
- Part29.Color = Color3.new(0.105882, 0.164706, 0.207843)
- Part29.Transparency = 423234
- Part29.Size = Vector3.new(4, 4, 4)
- Part29.Anchored = true
- Part29.BackSurface = Enum.SurfaceType.Weld
- Part29.BottomSurface = Enum.SurfaceType.Weld
- Part29.BrickColor = BrickColor.new("Black")
- Part29.FrontSurface = Enum.SurfaceType.Weld
- Part29.LeftSurface = Enum.SurfaceType.Weld
- Part29.Reflectance = 0.20000000298023
- Part29.RightSurface = Enum.SurfaceType.Weld
- Part29.TopSurface = Enum.SurfaceType.Weld
- Part29.brickColor = BrickColor.new("Black")
- Part29.FormFactor = Enum.FormFactor.Symmetric
- Part29.formFactor = Enum.FormFactor.Symmetric
- Part29.Shape = Enum.PartType.Ball
- BodyPosition30.Parent = Part29
- BodyPosition30.D = 10000
- BodyPosition30.MaxForce = Vector3.new(4000, 400000, 4000)
- BodyPosition30.maxForce = Vector3.new(4000, 400000, 4000)
- Script31.Name = "RocketScript"
- Script31.Parent = Model27
- table.insert(cors,sandbox(Script31,function()
- r = game:service("RunService")
- shaft = script.Parent
- position = shaft.Position
- script.Parent.Explosion.PlayOnRemove = true -- play explosion sound when projectile removed from game
- function fly()
- direction = shaft.CFrame.lookVector
- position = position + direction
- error = position - shaft.Position
- shaft.Velocity = 7*error
- end
- function blow()
- swoosh:stop()
- explosion = Instance.new("Explosion")
- explosion.Position = shaft.Position
- -- find instigator tag
- local creator = script.Parent:findFirstChild("creator")
- if creator ~= nil then
- explosion.Hit:connect(function(part, distance) onPlayerBlownUp(part, distance, creator) end)
- end
- explosion.Parent = game.Workspace
- connection:disconnect()
- wait(.1)
- shaft:remove()
- end
- function onPlayerBlownUp(part, distance, creator)
- if part.Name == "Head" then
- local humanoid = part.Parent:findFirstChild("Humanoid")
- tagHumanoid(humanoid, creator)
- end
- end
- function tagHumanoid(humanoid, creator)
- -- tag does not need to expire iff all explosions lethal
- if creator ~= nil then
- local new_tag = creator:clone()
- new_tag.Parent = humanoid
- end
- end
- function untagHumanoid(humanoid)
- if humanoid ~= nil then
- local tag = humanoid:findFirstChild("creator")
- if tag ~= nil then
- tag.Parent = nil
- end
- end
- end
- t, s = r.Stepped:wait()
- swoosh = script.Parent.Swoosh
- swoosh:play()
- d = t + 10.0 - s
- connection = shaft.Touched:connect(blow)
- while t < d do
- fly()
- t = r.Stepped:wait()
- end
- -- at max range
- script.Parent.Explosion.PlayOnRemove = false
- swoosh:stop()
- shaft:remove()
- end))
- Script31.Disabled = true
- Sound32.Name = "Explosion"
- Sound32.Parent = Model27
- Sound32.SoundId = "rbxasset://sounds/collide.wav"
- Sound32.Volume = 1
- Sound33.Name = "Swoosh"
- Sound33.Parent = Model27
- Sound33.Looped = true
- Sound33.SoundId = "rbxasset://sounds/Rocket whoosh 01.wav"
- Sound33.Volume = 0.69999998807907
- Model34.Name = "Killbot"
- Model34.Parent = Model2
- Model34.PrimaryPart = Part36
- Script35.Name = "KillbotScript"
- Script35.Parent = Model34
- table.insert(cors,sandbox(Script35,function()
- local sphere = script.Parent.Sphere
- local myTarget = nil
- -- obtain goals based on Sphere part
- sphere.BodyPosition.position = sphere.Position
- -- this code hijacked from the new rocket launcher
- local Rocket = Instance.new("Part")
- Rocket.Locked = true
- Rocket.BackSurface = 3
- Rocket.BottomSurface = 3
- Rocket.FrontSurface = 3
- Rocket.LeftSurface = 3
- Rocket.RightSurface = 3
- Rocket.TopSurface = 3
- Rocket.Size = Vector3.new(1,1,4)
- Rocket.BrickColor = BrickColor.new(21)
- script.Parent.RocketScript:clone().Parent = Rocket
- script.Parent.Explosion:clone().Parent = Rocket
- script.Parent.Swoosh:clone().Parent = Rocket
- function fire(target)
- local dir = target - sphere.Position
- dir = computeDirection(dir)
- local missile = Rocket:clone()
- local spawnPos = sphere.Position
- local pos = spawnPos + (dir * 8)
- --missile.Position = pos
- missile.CFrame = CFrame.new(pos, pos + dir)
- missile.RocketScript.Disabled = false
- missile.Parent = game.Workspace
- end
- function computeDirection(vec)
- local lenSquared = vec.magnitude * vec.magnitude
- local invSqrt = 1 / math.sqrt(lenSquared)
- return Vector3.new(vec.x * invSqrt, vec.y * invSqrt, vec.z * invSqrt)
- end
- function scanForHumans()
- -- KILL THE HUMANS!!!!!!!!!!
- -- for now, pick a random one. In the future, pick the closest. Or use hit test to pick a visible one.
- local humansFound = {}
- local players = game.Players:children()
- if (#players < 1) then return end
- local i = math.random(1, #players)
- myTarget = players[i].Character
- end
- function moveKillbot()
- -- killbots move using a biased random walk toward the target
- -- they also like to float at least 10 studs above the ground
- local dx = math.random(-100,100)
- local dy = math.random(-40,40)
- local dz = math.random(-100,100)
- if (sphere.Position.y < 10 and dy < 0) then dy = -dy end
- if (sphere.Position.y > 80 and dy > 0) then dy = -dy end
- if (myTarget ~= nil) then
- local dir = computeDirection(myTarget.PrimaryPart.Position - sphere.Position)
- dx = dx + (dir.x * 80) -- change this number to alter player trophism
- dz = dz + (dir.z * 80)
- end
- local vec = computeDirection(Vector3.new(dx,dy,dz))
- sphere.BodyPosition.position = sphere.Position + (vec * 40) -- change this number to alter speed
- end
- function onTouched(hit)
- local humanoid = hit.Parent:findFirstChild("Humanoid")
- if humanoid~=nil then
- humanoid.Health = humanoid.Health - 2000 -- Killbots kill you when you touch them! duh.
- else
- -- sadly, there is no good way to give a killbot hit points, so one hit with any weapon kills them
- script.Parent.Parent = nil
- end
- end
- sphere.Touched:connect(onTouched)
- while true do -- loop forever
- scanForHumans()
- for n=1,5 do
- if (myTarget ~= nil) then
- if(math.random(1,3) == 2) then fire(myTarget.PrimaryPart.Position) end
- wait(math.random(1,2))
- moveKillbot()
- wait(math.random(1,2))
- end
- end
- wait(.1) -- don't hog CPU
- end
- end))
- Part36.Name = "Sphere"
- Part36.Parent = Model34
- Part36.CFrame = CFrame.new(-2.13871002, 16.4000072, -40.8352509, -1, 0, 0, 0, 1, 0, 0, 0, -1)
- Part36.Orientation = Vector3.new(0, 180, 0)
- Part36.Position = Vector3.new(-2.13871002, 16.4000072, -40.8352509)
- Part36.Rotation = Vector3.new(-180, 0, -180)
- Part36.Color = Color3.new(0.105882, 0.164706, 0.207843)
- Part36.Transparency = 5454
- Part36.Size = Vector3.new(4, 4, 4)
- Part36.Anchored = true
- Part36.BackSurface = Enum.SurfaceType.Weld
- Part36.BottomSurface = Enum.SurfaceType.Weld
- Part36.BrickColor = BrickColor.new("Black")
- Part36.FrontSurface = Enum.SurfaceType.Weld
- Part36.LeftSurface = Enum.SurfaceType.Weld
- Part36.Reflectance = 0.20000000298023
- Part36.RightSurface = Enum.SurfaceType.Weld
- Part36.TopSurface = Enum.SurfaceType.Weld
- Part36.brickColor = BrickColor.new("Black")
- Part36.FormFactor = Enum.FormFactor.Symmetric
- Part36.formFactor = Enum.FormFactor.Symmetric
- Part36.Shape = Enum.PartType.Ball
- BodyPosition37.Parent = Part36
- BodyPosition37.D = 10000
- BodyPosition37.MaxForce = Vector3.new(4000, 400000, 4000)
- BodyPosition37.maxForce = Vector3.new(4000, 400000, 4000)
- Script38.Name = "RocketScript"
- Script38.Parent = Model34
- table.insert(cors,sandbox(Script38,function()
- r = game:service("RunService")
- shaft = script.Parent
- position = shaft.Position
- script.Parent.Explosion.PlayOnRemove = true -- play explosion sound when projectile removed from game
- function fly()
- direction = shaft.CFrame.lookVector
- position = position + direction
- error = position - shaft.Position
- shaft.Velocity = 7*error
- end
- function blow()
- swoosh:stop()
- explosion = Instance.new("Explosion")
- explosion.Position = shaft.Position
- -- find instigator tag
- local creator = script.Parent:findFirstChild("creator")
- if creator ~= nil then
- explosion.Hit:connect(function(part, distance) onPlayerBlownUp(part, distance, creator) end)
- end
- explosion.Parent = game.Workspace
- connection:disconnect()
- wait(.1)
- shaft:remove()
- end
- function onPlayerBlownUp(part, distance, creator)
- if part.Name == "Head" then
- local humanoid = part.Parent:findFirstChild("Humanoid")
- tagHumanoid(humanoid, creator)
- end
- end
- function tagHumanoid(humanoid, creator)
- -- tag does not need to expire iff all explosions lethal
- if creator ~= nil then
- local new_tag = creator:clone()
- new_tag.Parent = humanoid
- end
- end
- function untagHumanoid(humanoid)
- if humanoid ~= nil then
- local tag = humanoid:findFirstChild("creator")
- if tag ~= nil then
- tag.Parent = nil
- end
- end
- end
- t, s = r.Stepped:wait()
- swoosh = script.Parent.Swoosh
- swoosh:play()
- d = t + 10.0 - s
- connection = shaft.Touched:connect(blow)
- while t < d do
- fly()
- t = r.Stepped:wait()
- end
- -- at max range
- script.Parent.Explosion.PlayOnRemove = false
- swoosh:stop()
- shaft:remove()
- end))
- Script38.Disabled = true
- Sound39.Name = "Explosion"
- Sound39.Parent = Model34
- Sound39.SoundId = "rbxasset://sounds/collide.wav"
- Sound39.Volume = 1
- Sound40.Name = "Swoosh"
- Sound40.Parent = Model34
- Sound40.Looped = true
- Sound40.SoundId = "rbxasset://sounds/Rocket whoosh 01.wav"
- Sound40.Volume = 0.69999998807907
- Model41.Parent = Model2
- Model41.PrimaryPart = Part43
- Model42.Name = "Brain"
- Model42.Parent = Model41
- Model42.PrimaryPart = Part43
- Part43.Name = "TurretEngine"
- Part43.Parent = Model42
- Part43.CFrame = CFrame.new(10.9743958, 14.1751575, -4.20593405, 0.994529426, 0, 0.104527965, 0, 1, 0, -0.104527049, 0, 0.994529426)
- Part43.Orientation = Vector3.new(0, 6, 0)
- Part43.Position = Vector3.new(10.9743958, 14.1751575, -4.20593405)
- Part43.Rotation = Vector3.new(0, 6, 0)
- Part43.Color = Color3.new(0.388235, 0.372549, 0.384314)
- Part43.Transparency = 50
- Part43.Velocity = Vector3.new(-0.944120467, -9.18225765, 0.415148199)
- Part43.Size = Vector3.new(9.19578457, 9.19578457, 13.7936754)
- Part43.Anchored = true
- Part43.BackSurface = Enum.SurfaceType.Weld
- Part43.BottomSurface = Enum.SurfaceType.Smooth
- Part43.BrickColor = BrickColor.new("Dark stone grey")
- Part43.FrontSurface = Enum.SurfaceType.Weld
- Part43.RotVelocity = Vector3.new(4.21531331e-06, -8.56451425e-06, 9.53156359e-06)
- Part43.TopSurface = Enum.SurfaceType.Smooth
- Part43.brickColor = BrickColor.new("Dark stone grey")
- Part43.FormFactor = Enum.FormFactor.Symmetric
- Part43.formFactor = Enum.FormFactor.Symmetric
- Script44.Parent = Part43
- table.insert(cors,sandbox(Script44,function()
- local ZombieTarget = script.Parent.Parent.Parent["Target Zombies"]
- local HumanoidTarget = script.Parent.Parent.Parent["Target Humanoids"]
- local isTeamGame = script.Parent.Parent.Parent.TeamGame
- local MyTeamColor = script.Parent.Parent.Parent.TeamColor
- local SightRadius = script.Parent.Parent.Parent.ScanRange
- function move(target, engine)
- local origincframe = engine:findFirstChild("BodyGyro").cframe
- local dir = (target - engine.Position).unit
- local spawnPos = engine.Position
- local pos = spawnPos + dir
- engine:findFirstChild("BodyGyro").maxTorque = Vector3.new(9900,9900, 0)
- engine:findFirstChild("BodyGyro").cframe = CFrame.new(pos, pos+dir)
- end
- function getTurrets(Base)
- local bits = Base:children()
- local Turrets = {}
- local Tnum = 1
- for i=1,#bits do
- local tmp = bits[i]
- local TurretBrain = tmp:findFirstChild("Brain")
- if(TurretBrain ~= nil) then
- Turrets[Tnum] = TurretBrain.Parent
- Tnum = Tnum +1
- end
- end
- if(#Turrets > 0) then
- return Turrets
- else
- return nil
- end
- end
- function findNearestTorso(pos)
- local list = game.Workspace:children()
- local torso = nil
- local dist = SightRadius.Value
- local temp = nil
- local human = nil
- local temp2 = nil
- for x = 1, #list do
- temp2 = list[x]
- if (temp2.className == "Model") and (temp2 ~= script.Parent.Parent) then
- temp = temp2:findFirstChild("Torso")
- human = temp2:findFirstChild("Zombie") or temp2:findFirstChild("Humanoid")
- local player = game.Players:GetPlayerFromCharacter(temp2)
- local Ai = temp2:findFirstChild("Brain") or temp2:findFirstChild("Parts")
- if(Ai ~= nil) then -- for my turrets and cars etc....
- local LP = Ai:findFirstChild("TurretEngine") -- For our Turrets
- local EN = Ai:findFirstChild("Engine") -- for our Ai Cars etc...
- local MyAiCar = script.Parent.Parent.Parent.Parent
- local TeamColor = Ai.Parent:findFirstChild("TeamColor")
- local TeamGame = Ai.Parent:findFirstChild("TeamGame")
- if(LP ~= nil) then
- if(TeamColor ~= nil and TeamGame ~= nil) then
- if(TeamGame.Value == true) then
- if(TeamColor.Value ~= MyTeamColor.Value) then
- if (LP.Position - pos).magnitude < dist then
- torso = LP
- dist = (LP.Position - pos).magnitude
- end
- end
- else
- if (LP.Position - pos).magnitude < dist then
- torso = LP
- dist = (LP.Position - pos).magnitude
- end
- end
- end
- end
- if(EN ~= nil and Ai.Parent ~= MyAiCar) then
- local EnemyTurrets = getTurrets(Ai.Parent)
- if(EnemyTurrets ~= nil) then
- if(TeamColor ~= nil and TeamGame ~= nil) then
- if(TeamGame.Value == true) then
- if(TeamColor.Value ~= MyTeamColor.Value) then
- for i=1,#EnemyTurrets do
- local Turret = EnemyTurrets[i]
- local Brain = Turret:findFirstChild("Brain")
- if(Brain ~= nil) then
- local TEngine= Brain:findFirstChild("TurretEngine")
- if (TEngine.Position - pos).magnitude < dist then
- torso =TEngine
- dist = (TEngine.Position - pos).magnitude
- end
- end
- end
- end
- end
- end
- else
- if(TeamColor ~= nil and TeamGame ~= nil) then
- if(TeamGame.Value == true) then
- if(TeamColor.Value ~= MyTeamColor.Value) then
- if (EN.Position - pos).magnitude < dist then
- torso =EN
- dist = (EN.Position - pos).magnitude
- end
- end
- else
- if (EN.Position - pos).magnitude < dist then
- torso = EN
- dist = (EN.Position - pos).magnitude
- end
- end
- end
- end
- end
- end
- if(human ~= nil or temp ~= nil) then -- just for humanoids and zombies
- if(ZombieTarget.Value == true and HumanoidTarget.Value == false) then
- if(human.Name ~= "Zombie") then
- human = nil
- temp = nil
- end
- end
- if(HumanoidTarget.Value == true and ZombieTarget.Value == false)then
- if(human.Name ~= "Humanoid") then
- human = nil
- temp = nil
- else
- if(player ~= nil) then
- if(isTeamGame.Value == true) then
- if(player.TeamColor == MyTeamColor.Value) then
- human = nil
- temp = nil
- end
- end
- end
- end
- end
- if(HumanoidTarget.Value == true and ZombieTarget.Value == true)then
- if(player ~= nil) then
- if(isTeamGame.Value == true) then
- if(player.TeamColor == MyTeamColor.Value) then
- human = nil
- temp = nil
- end
- end
- end
- end
- if(HumanoidTarget.Value == false and ZombieTarget.Value == false)then
- temp = nil
- human = nil
- end
- end
- if (temp ~= nil and human ~= nil) then
- if (temp.Position - pos).magnitude < dist and human.Health > 0 then
- torso = temp
- dist = (temp.Position - pos).magnitude
- end
- end
- end
- end
- return torso
- end
- function isInFireingRange(Tgt,pos)
- local dist = SightRadius.Value-40
- local torso = nil
- local human = Tgt.Parent:findFirstChild("Zombie") or Tgt.Parent:findFirstChild("Humanoid")
- target = findNearestTorso(script.Parent.Position)
- if(target ~=nil) then
- if(target.Name == "Torso") then
- if(human ~= nil and target ~= nil) then
- if (Tgt.Position - pos).magnitude < dist and human.Health > 0 then
- torso = Tgt
- dist = (Tgt.Position - pos).magnitude
- end
- end
- else
- if(target ~= nil) then
- if (Tgt.Position - pos).magnitude < dist then
- torso = Tgt
- dist = (Tgt.Position - pos).magnitude
- end
- end
- end
- end
- return torso
- end
- script.Parent.BodyGyro.cframe = script.Parent.CFrame
- wait(.1)
- -- ZombieTarget
- -- HumanoidTarget
- -- isTeamGame
- -- MyTeamColor
- while true do
- if(script.Parent.Parent.Destroyed.Value == false) then
- target = findNearestTorso(script.Parent.Position)
- if(target ~= nil) then
- if(isInFireingRange(target,script.Parent.Position))then
- script.Parent.Parent.MyTarget.Value = target
- else
- script.Parent.Parent.MyTarget.Value = nil
- end
- script.Parent.BodyGyro.cframe = script.Parent.CFrame
- script.Parent.BodyGyro.P = 2000
- move(target.Position,script.Parent)
- else
- move(script.Parent.Parent.Point.Position,script.Parent)
- script.Parent.BodyGyro.P = 500
- script.Parent.Parent.MyTarget.Value = nil
- end
- script.Parent.BodyPosition.position = script.Parent.Position
- end
- wait(0)
- end
- end))
- BodyGyro45.Parent = Part43
- BodyGyro45.CFrame = CFrame.new(42.7718315, 63.5309296, 400.966034, -0.973836124, -0.0427035429, 0.223203138, -2.00591987e-10, 0.982185662, 0.18791315, -0.227251485, 0.182996616, -0.956487834)
- BodyGyro45.MaxTorque = Vector3.new(0, 0, 0)
- BodyGyro45.P = 30000
- BodyGyro45.maxTorque = Vector3.new(0, 0, 0)
- BodyGyro45.D = 1000
- BodyGyro45.cframe = CFrame.new(42.7718315, 63.5309296, 400.966034, -0.973836124, -0.0427035429, 0.223203138, -2.00591987e-10, 0.982185662, 0.18791315, -0.227251485, 0.182996616, -0.956487834)
- BodyPosition46.Parent = Part43
- Script47.Name = "DeathScript"
- Script47.Parent = Model42
- table.insert(cors,sandbox(Script47,function()
- function test()
- if(script.Parent ~= nil) then
- script.Parent.Destroyed.Value =true
- end
- end
- script.Parent.ChildRemoved:connect(test)
- while true do
- if(script.Parent~= nil) then
- if(script.Parent.Destroyed.Value == true) then
- wait(2)
- Tengine = script.Parent:findFirstChild("TurretEngine")
- if(Tengine ~= nil) then
- script.Parent.TurretEngine.BodyGyro:remove()
- end
- wait(4)
- script.Parent.Parent.Head:remove()
- end
- end
- wait(.1)
- end
- end))
- BoolValue48.Name = "Destroyed"
- BoolValue48.Parent = Model42
- ObjectValue49.Name = "MyTarget"
- ObjectValue49.Parent = Model42
- Script50.Name = "PowerRegen"
- Script50.Parent = Model42
- table.insert(cors,sandbox(Script50,function()
- local Power = script.Parent.Parent.Power
- local Battery = script.Parent.Parent.Battery
- name = "Advanced Laser Turret"
- while true do
- if Power.Value < 10000 and Battery.Value > 0 then
- Power.Value = Power.Value +50
- Battery.Value = Battery.Value - 25
- end
- if(Battery.Value < 0) then
- Battery.Value = 0
- end
- if(Power.Value > 10000) then
- Power.Value = 10000
- end
- script.Parent.Parent.Name = ""
- script.Parent.Parent.Name = name.." PowerLevel :"..Power.Value.." Of : "..Battery.Value
- wait(.1)
- end
- end))
- Model51.Name = "FirePoints"
- Model51.Parent = Model42
- Script52.Parent = Model51
- table.insert(cors,sandbox(Script52,function()
- Power = script.Parent.Parent.Parent.Power
- Battery = script.Parent.Parent.Parent.Battery
- ShootPower = 0.3
- curr = 0
- SpinUP = true
- function Vel(speed,lv)
- return lv*Vector3.new(speed,speed,speed)
- end
- local tnum = 0
- wait(1)
- function doLaser(firepoint,Target)
- local P = Instance.new("Part")
- P.Name = "Advanced Laser"
- local Place0 = firepoint.CFrame
- P.formFactor = 0.1
- P.Size = Vector3.new(0.1,0.2,(Place0.p - Target.Position).magnitude)
- P.CFrame = CFrame.new((Place0.p + Target.Position)/2,Place0.p)
- P.Parent = game.Workspace
- P.BrickColor = BrickColor.new("Really red")
- P.Transparency = 0.37
- P.Reflectance = 0
- if(firepoint:findFirstChild("Sound") ~= nil) then
- firepoint.Sound:remove()
- end
- snd = Instance.new("Sound")
- snd.Parent= firepoint
- snd.SoundId = "http://www.roblox.com/asset/?id=2800815"
- snd.Volume = 1
- snd:play()
- MYPower = Instance.new("IntValue")
- MYPower.Value = ShootPower
- MYPower.Name = "Power"
- MYPower.Parent = P
- P.Locked = true
- P.TopSurface = 0
- P.BottomSurface = 0
- P.CanCollide = false
- s = script.BulletScript:clone()
- s.Parent = P
- P.Anchored = true
- end
- while true do
- pos1 = script.Parent:findFirstChild("Turret01")
- pos2 = script.Parent:findFirstChild("Turret02")
- firePoint = nil
- if(script.Parent.Parent.Destroyed.Value == false) then
- if(script.Parent.Parent.MyTarget.Value ~= nil) then
- if(SpinUP == true) then
- SpinUP = false
- wait(1)
- else
- if(Power.Value >= ShootPower) then
- if(tnum == 0) then
- tnum = 1
- firePoint = pos1
- else
- tnum = 0
- firePoint = pos2
- end
- if(firePoint == nil) then break end
- doLaser(firePoint,script.Parent.Parent.MyTarget.Value)
- local Target = script.Parent.Parent.MyTarget.Value
- local h= Target.Parent:findFirstChild("Humanoid") or Target.Parent:findFirstChild("Zombie")
- if(h ~= nil) then
- if(h.className == "Humanoid") then -- check we have a true Humanoid not a part or model
- h:TakeDamage(ShootPower)
- end
- end
- Power.Value = Power.Value -ShootPower
- else
- if(Battery.Value == 0) then
- script.Parent.Parent.Destroyed.Value = true
- end
- end
- end
- else
- SpinUP = true
- end
- end
- wait()
- end
- end))
- Script53.Name = "BulletScript"
- Script53.Parent = Script52
- table.insert(cors,sandbox(Script53,function()
- function DoDamage(part)
- if(part.Name ~= "Turret01" and part.Name ~= "Turret02") then
- if(part.Anchored == false) then
- local h = part.Parent:findFirstChild("Humanoid") or part.Parent:findFirstChild("Zombie")
- if(h ~= nil) then
- if(h.className == "Humanoid") then
- local MyPower = script.Parent:findFirstChild("Power")
- if(MyPower ~= nil) then
- if(MyPower.Value > 1) then
- h:TakeDamage(MyPower.Value)
- MyPower.Value = MyPower.Value/2
- end
- else
- script.Parent:remove()
- end
- end
- end
- end
- end
- end
- if(script.Parent.className == "Part") then
- base = script.Parent
- --print(script.Parent:findFirstChild("MyTurret").Value)
- base.Touched:connect(DoDamage)
- for i = 1,0,-0.1 do
- script.Parent.Transparency = 1-i
- script.Parent.Reflectance = i*0
- wait(.01)
- end
- script.Parent:Remove()
- end
- end))
- Part54.Name = "Turret02"
- Part54.Parent = Model51
- Part54.CFrame = CFrame.new(6.94753981, 14.1751575, -31.5221481, 0.994529426, -0.104527965, 0, 0, 0, 1, -0.104527049, -0.994529426, 0)
- Part54.Orientation = Vector3.new(-90, 6, 0)
- Part54.Position = Vector3.new(6.94753981, 14.1751575, -31.5221481)
- Part54.Rotation = Vector3.new(-90, 0, 6)
- Part54.Color = Color3.new(0.388235, 0.372549, 0.384314)
- Part54.Transparency = 50
- Part54.Velocity = Vector3.new(-0.944017708, -9.18221188, 0.415143907)
- Part54.Size = Vector3.new(2.29894614, 3.67831373, 4.59789228)
- Part54.Anchored = true
- Part54.BackSurface = Enum.SurfaceType.Weld
- Part54.BottomSurface = Enum.SurfaceType.Smooth
- Part54.BrickColor = BrickColor.new("Dark stone grey")
- Part54.RotVelocity = Vector3.new(4.21531331e-06, -8.56451425e-06, 9.53156359e-06)
- Part54.TopSurface = Enum.SurfaceType.Smooth
- Part54.brickColor = BrickColor.new("Dark stone grey")
- Part54.FormFactor = Enum.FormFactor.Plate
- Part54.formFactor = Enum.FormFactor.Plate
- Part55.Name = "Turret01"
- Part55.Parent = Model51
- Part55.CFrame = CFrame.new(9.23394775, 14.1751575, -31.7625351, 0.994529426, -0.104527965, 0, 0, 0, 1, -0.104527049, -0.994529426, 0)
- Part55.Orientation = Vector3.new(-90, 6, 0)
- Part55.Position = Vector3.new(9.23394775, 14.1751575, -31.7625351)
- Part55.Rotation = Vector3.new(-90, 0, 6)
- Part55.Color = Color3.new(0.388235, 0.372549, 0.384314)
- Part55.Transparency = 50
- Part55.Velocity = Vector3.new(-0.944017708, -9.18220234, 0.41515249)
- Part55.Size = Vector3.new(2.29894614, 3.67831373, 4.59789228)
- Part55.Anchored = true
- Part55.BackSurface = Enum.SurfaceType.Weld
- Part55.BottomSurface = Enum.SurfaceType.Smooth
- Part55.BrickColor = BrickColor.new("Dark stone grey")
- Part55.RotVelocity = Vector3.new(4.21531331e-06, -8.56451425e-06, 9.53156359e-06)
- Part55.TopSurface = Enum.SurfaceType.Smooth
- Part55.brickColor = BrickColor.new("Dark stone grey")
- Part55.FormFactor = Enum.FormFactor.Plate
- Part55.formFactor = Enum.FormFactor.Plate
- IntValue56.Name = "Battery"
- IntValue56.Parent = Model41
- IntValue56.Value = 1000000
- Humanoid57.Parent = Model41
- Humanoid57.Health = 0
- Humanoid57.MaxHealth = 0
- Humanoid57.NameOcclusion = Enum.NameOcclusion.NoOcclusion
- Humanoid57.maxHealth = 0
- IntValue58.Name = "Power"
- IntValue58.Parent = Model41
- IntValue58.Value = 10000
- Script59.Name = "RegenScript"
- Script59.Parent = Model41
- table.insert(cors,sandbox(Script59,function()
- model = script.Parent
- backup = model:clone()
- active = false
- function Regen(part)
- if(active == false) then
- active = true
- script.Parent:breakJoints()
- script.Parent.Brain.Destroyed.Value = true
- wait(1)
- model:remove()
- model = backup:Clone()
- wait(30)
- model.Parent = game.Workspace
- model:MakeJoints()
- end
- end
- function retriveParts(model,myColor)
- local raw_model = model:GetChildren()
- for i=1,#raw_model do
- local part = raw_model[i]
- if(part ~= nil) then
- part.BrickColor = myColor
- end
- end
- end
- function setTeam()
- local brain = script.Parent.Brain
- local isTeamGame = script.Parent.TeamGame.Value
- if(isTeamGame == true) then
- retriveParts(script.Parent.BodyKit.TeamColorBricks,script.Parent.TeamColor.Value)
- if(brain:findFirstChild("Point") ~= nil) then
- brain.Point.BrickColor = script.Parent.TeamColor.Value
- end
- if(brain:findFirstChild("TurretEngine") ~= nil) then
- brain.TurretEngine.BrickColor = script.Parent.TeamColor.Value
- end
- if(script.Parent:findFirstChild("Head") ~= nil) then
- script.Parent.Head.BrickColor = script.Parent.TeamColor.Value
- end
- else
- retriveParts(script.Parent.BodyKit.TeamColorBricks,BrickColor.new("Dark stone grey"))
- if(brain:findFirstChild("Point") ~= nil) then
- brain.Point.BrickColor = BrickColor.new("Dark stone grey")
- end
- if(brain:findFirstChild("TurretEngine") ~= nil) then
- brain.TurretEngine.BrickColor = BrickColor.new("Dark stone grey")
- end
- if(script.Parent:findFirstChild("Head") ~= nil) then
- script.Parent.Head.BrickColor = BrickColor.new("Dark stone grey")
- end
- end
- end
- setTeam()
- model.BodyKit.ChildRemoved:connect(Regen)
- model.ChildRemoved:connect(Regen)
- model.Brain.ChildRemoved:connect(Regen)
- script.Parent.TeamColor.Changed:connect(setTeam)
- script.Parent.TeamGame.Changed:connect(setTeam)
- end))
- IntValue60.Name = "ScanRange"
- IntValue60.Parent = Model41
- IntValue60.Value = 2000
- BoolValue61.Name = "Target Humanoids"
- BoolValue61.Parent = Model41
- BoolValue61.Value = true
- BoolValue62.Name = "Target Zombies"
- BoolValue62.Parent = Model41
- BoolValue62.Value = true
- BoolValue63.Name = "TeamGame"
- BoolValue63.Parent = Model41
- BoolValue63.Value = true
- Model64.Name = "BodyKit"
- Model64.Parent = Model41
- Part65.Parent = Model64
- Part65.CFrame = CFrame.new(19.4429474, 14.0449743, -2.81133795, -0.0037220316, -0.994529545, -0.104460642, -0.999365509, -9.08626987e-07, 0.0356169902, -0.0354222432, 0.104526028, -0.993898451)
- Part65.Orientation = Vector3.new(-2.03999996, -174, -90)
- Part65.Position = Vector3.new(19.4429474, 14.0449743, -2.81133795)
- Part65.Rotation = Vector3.new(-177.949997, -6, 90.2099991)
- Part65.Transparency = 3
- Part65.Velocity = Vector3.new(1.21259141, 8.57174683, -0.499329776)
- Part65.Size = Vector3.new(9.19578457, 2.75873542, 9.19578457)
- Part65.Anchored = true
- Part65.BackSurface = Enum.SurfaceType.Weld
- Part65.BottomSurface = Enum.SurfaceType.Weld
- Part65.FrontSurface = Enum.SurfaceType.Weld
- Part65.LeftSurface = Enum.SurfaceType.Weld
- Part65.RightSurface = Enum.SurfaceType.Weld
- Part65.RotVelocity = Vector3.new(-3.41720913e-23, 0.000276639475, -3.41357406e-23)
- Part65.TopSurface = Enum.SurfaceType.Weld
- CylinderMesh66.Parent = Part65
- CylinderMesh66.Offset = Vector3.new(0, 0.300000012, 0)
- CylinderMesh66.Scale = Vector3.new(0.800000012, 0.5, 0.800000012)
- Part67.Parent = Model64
- Part67.CFrame = CFrame.new(10.9303961, 18.7730675, -31.0162239, 0, -0.994529426, -0.104527965, -1, -0, 0, 0, 0.104527049, -0.994529426)
- Part67.Orientation = Vector3.new(0, -174, -90)
- Part67.Position = Vector3.new(10.9303961, 18.7730675, -31.0162239)
- Part67.Rotation = Vector3.new(-180, -6, 90)
- Part67.Transparency = 3
- Part67.Velocity = Vector3.new(-0.944040179, -9.18219757, 0.415166914)
- Part67.Size = Vector3.new(4.59789228, 0.919578433, 2.29894614)
- Part67.Anchored = true
- Part67.BackSurface = Enum.SurfaceType.Weld
- Part67.BottomSurface = Enum.SurfaceType.Weld
- Part67.FrontSurface = Enum.SurfaceType.Weld
- Part67.LeftSurface = Enum.SurfaceType.Weld
- Part67.RightSurface = Enum.SurfaceType.Weld
- Part67.RotVelocity = Vector3.new(4.21531331e-06, -8.56451425e-06, 9.53156359e-06)
- Part67.TopSurface = Enum.SurfaceType.Weld
- Part67.FormFactor = Enum.FormFactor.Plate
- Part67.formFactor = Enum.FormFactor.Plate
- CylinderMesh68.Parent = Part67
- CylinderMesh68.Offset = Vector3.new(-0.600000024, 1.20000005, -0.100000001)
- CylinderMesh68.Scale = Vector3.new(0.0299999993, 1, 0.0299999993)
- Part69.Parent = Model64
- Part69.CFrame = CFrame.new(4.54092407, 14.1751575, -32.4249687, 0, -0.994529426, 0.104527965, 1, -0, 0, 0, 0.104527049, 0.994529426)
- Part69.Orientation = Vector3.new(0, 6, 90)
- Part69.Position = Vector3.new(4.54092407, 14.1751575, -32.4249687)
- Part69.Rotation = Vector3.new(0, 6, 90)
- Part69.Transparency = 3
- Part69.Velocity = Vector3.new(-0.944013357, -9.18221951, 0.415135354)
- Part69.Size = Vector3.new(4.59789228, 2.29894614, 2.29894614)
- Part69.Anchored = true
- Part69.BackSurface = Enum.SurfaceType.Weld
- Part69.BottomSurface = Enum.SurfaceType.Weld
- Part69.FrontSurface = Enum.SurfaceType.Inlet
- Part69.RotVelocity = Vector3.new(4.21531331e-06, -8.56451425e-06, 9.53156359e-06)
- Part69.TopSurface = Enum.SurfaceType.Smooth
- Part69.FormFactor = Enum.FormFactor.Symmetric
- Part69.formFactor = Enum.FormFactor.Symmetric
- SpecialMesh70.Parent = Part69
- SpecialMesh70.MeshType = Enum.MeshType.Wedge
- Part71.Parent = Model64
- Part71.CFrame = CFrame.new(8.21086884, 19.2328491, -30.4991188, -0.994529426, 0, -0.104527965, -0, 1, 0, 0.104527049, 0, -0.994529426)
- Part71.Orientation = Vector3.new(0, -174, 0)
- Part71.Position = Vector3.new(8.21086884, 19.2328491, -30.4991188)
- Part71.Rotation = Vector3.new(-180, -6, -180)
- Part71.Transparency = 3
- Part71.Velocity = Vector3.new(-0.944042921, -9.18220901, 0.415157467)
- Part71.Size = Vector3.new(4.59789228, 0.919578433, 2.29894614)
- Part71.Anchored = true
- Part71.BackSurface = Enum.SurfaceType.Weld
- Part71.BottomSurface = Enum.SurfaceType.Weld
- Part71.FrontSurface = Enum.SurfaceType.Weld
- Part71.LeftSurface = Enum.SurfaceType.Weld
- Part71.RightSurface = Enum.SurfaceType.Weld
- Part71.RotVelocity = Vector3.new(4.21531331e-06, -8.56451425e-06, 9.53156359e-06)
- Part71.TopSurface = Enum.SurfaceType.Weld
- Part71.FormFactor = Enum.FormFactor.Plate
- Part71.formFactor = Enum.FormFactor.Plate
- CylinderMesh72.Parent = Part71
- CylinderMesh72.Scale = Vector3.new(0.100000001, 1, 0.100000001)
- Part73.Parent = Model64
- Part73.CFrame = CFrame.new(5.22343397, 14.1751575, -10.5362864, 0, -0.994529426, 0.104527965, 1, -0, 0, 0, 0.104527049, 0.994529426)
- Part73.Orientation = Vector3.new(0, 6, 90)
- Part73.Position = Vector3.new(5.22343397, 14.1751575, -10.5362864)
- Part73.Rotation = Vector3.new(0, 6, 90)
- Part73.Transparency = 3
- Part73.Velocity = Vector3.new(-0.944094777, -9.18226624, 0.415129364)
- Part73.Size = Vector3.new(4.59789228, 0.919578433, 4.59789228)
- Part73.Anchored = true
- Part73.BackSurface = Enum.SurfaceType.Weld
- Part73.BottomSurface = Enum.SurfaceType.Weld
- Part73.FrontSurface = Enum.SurfaceType.Weld
- Part73.LeftSurface = Enum.SurfaceType.Weld
- Part73.RightSurface = Enum.SurfaceType.Weld
- Part73.RotVelocity = Vector3.new(4.21531331e-06, -8.56451425e-06, 9.53156359e-06)
- Part73.TopSurface = Enum.SurfaceType.Weld
- Part73.FormFactor = Enum.FormFactor.Plate
- Part73.formFactor = Enum.FormFactor.Plate
- Part74.Parent = Model64
- Part74.CFrame = CFrame.new(8.21086884, 20.1524239, -30.4991188, -0.994529426, 0, -0.104527965, -0, 1, 0, 0.104527049, 0, -0.994529426)
- Part74.Orientation = Vector3.new(0, -174, 0)
- Part74.Position = Vector3.new(8.21086884, 20.1524239, -30.4991188)
- Part74.Rotation = Vector3.new(-180, -6, -180)
- Part74.Transparency = 3
- Part74.Velocity = Vector3.new(-0.944046736, -9.18220901, 0.415159166)
- Part74.Size = Vector3.new(4.59789228, 0.919578433, 2.29894614)
- Part74.Anchored = true
- Part74.BackSurface = Enum.SurfaceType.Weld
- Part74.BottomSurface = Enum.SurfaceType.Weld
- Part74.FrontSurface = Enum.SurfaceType.Weld
- Part74.LeftSurface = Enum.SurfaceType.Weld
- Part74.RightSurface = Enum.SurfaceType.Weld
- Part74.RotVelocity = Vector3.new(4.21531331e-06, -8.56451425e-06, 9.53156359e-06)
- Part74.TopSurface = Enum.SurfaceType.Weld
- Part74.FormFactor = Enum.FormFactor.Plate
- Part74.formFactor = Enum.FormFactor.Plate
- SpecialMesh75.Parent = Part74
- SpecialMesh75.MeshId = "http://www.roblox.com/asset/?id=3270017"
- SpecialMesh75.Scale = Vector3.new(1.14947271, 1.14947271, 11.4947281)
- SpecialMesh75.MeshType = Enum.MeshType.FileMesh
- Part76.Parent = Model64
- Part76.CFrame = CFrame.new(11.8396521, 10.7267437, 4.02485895, -0.994529426, 0.104527965, 0, -0, 0, 1, 0.104527049, 0.994529426, 0)
- Part76.Orientation = Vector3.new(-90, -174, 0)
- Part76.Position = Vector3.new(11.8396521, 10.7267437, 4.02485895)
- Part76.Rotation = Vector3.new(-90, 0, -174)
- Part76.Color = Color3.new(0.388235, 0.372549, 0.384314)
- Part76.Transparency = 3
- Part76.Velocity = Vector3.new(-0.944136977, -9.18227291, 0.415141881)
- Part76.Size = Vector3.new(4.59789228, 2.75873542, 2.29894614)
- Part76.Anchored = true
- Part76.BackSurface = Enum.SurfaceType.Weld
- Part76.BottomSurface = Enum.SurfaceType.Weld
- Part76.BrickColor = BrickColor.new("Dark stone grey")
- Part76.FrontSurface = Enum.SurfaceType.Inlet
- Part76.LeftSurface = Enum.SurfaceType.Weld
- Part76.RightSurface = Enum.SurfaceType.Weld
- Part76.RotVelocity = Vector3.new(4.21531331e-06, -8.56451425e-06, 9.53156359e-06)
- Part76.TopSurface = Enum.SurfaceType.Weld
- Part76.brickColor = BrickColor.new("Dark stone grey")
- SpecialMesh77.Parent = Part76
- SpecialMesh77.MeshType = Enum.MeshType.Wedge
- Part78.Parent = Model64
- Part78.CFrame = CFrame.new(11.8635635, 14.1751575, 4.25371695, -0.994529426, 0.104527965, 0, -0, 0, 1, 0.104527049, 0.994529426, 0)
- Part78.Orientation = Vector3.new(-90, -174, 0)
- Part78.Position = Vector3.new(11.8635635, 14.1751575, 4.25371695)
- Part78.Rotation = Vector3.new(-90, 0, -174)
- Part78.Color = Color3.new(0.388235, 0.372549, 0.384314)
- Part78.Transparency = 3
- Part78.Velocity = Vector3.new(-0.944152117, -9.18227291, 0.415148199)
- Part78.Size = Vector3.new(4.59789228, 2.75873542, 4.59789228)
- Part78.Anchored = true
- Part78.BackSurface = Enum.SurfaceType.Weld
- Part78.BottomSurface = Enum.SurfaceType.Weld
- Part78.BrickColor = BrickColor.new("Dark stone grey")
- Part78.FrontSurface = Enum.SurfaceType.Weld
- Part78.LeftSurface = Enum.SurfaceType.Weld
- Part78.RightSurface = Enum.SurfaceType.Weld
- Part78.RotVelocity = Vector3.new(4.21531331e-06, -8.56451425e-06, 9.53156359e-06)
- Part78.TopSurface = Enum.SurfaceType.Weld
- Part78.brickColor = BrickColor.new("Dark stone grey")
- Part79.Parent = Model64
- Part79.CFrame = CFrame.new(9.17211819, 10.7267437, -21.3537903, 0.994529426, 0, 0.104527965, 0, 1, 0, -0.104527049, 0, 0.994529426)
- Part79.Orientation = Vector3.new(0, 6, 0)
- Part79.Position = Vector3.new(9.17211819, 10.7267437, -21.3537903)
- Part79.Rotation = Vector3.new(0, 6, 0)
- Part79.Color = Color3.new(0.388235, 0.372549, 0.384314)
- Part79.Transparency = 3
- Part79.Velocity = Vector3.new(-0.944041908, -9.18222618, 0.415141881)
- Part79.Size = Vector3.new(4.59789228, 2.29894614, 20.6905136)
- Part79.Anchored = true
- Part79.BackSurface = Enum.SurfaceType.Weld
- Part79.BrickColor = BrickColor.new("Dark stone grey")
- Part79.FrontSurface = Enum.SurfaceType.Weld
- Part79.RotVelocity = Vector3.new(4.21531331e-06, -8.56451425e-06, 9.53156359e-06)
- Part79.TopSurface = Enum.SurfaceType.Weld
- Part79.brickColor = BrickColor.new("Dark stone grey")
- Part79.FormFactor = Enum.FormFactor.Symmetric
- Part79.formFactor = Enum.FormFactor.Symmetric
- Part80.Parent = Model64
- Part80.CFrame = CFrame.new(8.21086884, 21.0720215, -30.4991188, -0.994529426, 0, -0.104527965, -0, 1, 0, 0.104527049, 0, -0.994529426)
- Part80.Orientation = Vector3.new(0, -174, 0)
- Part80.Position = Vector3.new(8.21086884, 21.0720215, -30.4991188)
- Part80.Rotation = Vector3.new(-180, -6, -180)
- Part80.Transparency = 3
- Part80.Velocity = Vector3.new(-0.94405055, -9.18220901, 0.415160835)
- Part80.Size = Vector3.new(4.59789228, 0.919578433, 2.29894614)
- Part80.Anchored = true
- Part80.BackSurface = Enum.SurfaceType.Weld
- Part80.BottomSurface = Enum.SurfaceType.Weld
- Part80.FrontSurface = Enum.SurfaceType.Weld
- Part80.LeftSurface = Enum.SurfaceType.Weld
- Part80.RightSurface = Enum.SurfaceType.Weld
- Part80.RotVelocity = Vector3.new(4.21531331e-06, -8.56451425e-06, 9.53156359e-06)
- Part80.TopSurface = Enum.SurfaceType.Weld
- Part80.FormFactor = Enum.FormFactor.Plate
- Part80.formFactor = Enum.FormFactor.Plate
- CylinderMesh81.Parent = Part80
- CylinderMesh81.Offset = Vector3.new(0, -0.400000006, 0)
- CylinderMesh81.Scale = Vector3.new(0.0299999993, 1, 0.0299999993)
- Part82.Parent = Model64
- Part82.CFrame = CFrame.new(12.4815216, 14.1751575, -22.8574848, 0.994529426, 0, 0.104527965, 0, 1, 0, -0.104527049, 0, 0.994529426)
- Part82.Orientation = Vector3.new(0, 6, 0)
- Part82.Position = Vector3.new(12.4815216, 14.1751575, -22.8574848)
- Part82.Rotation = Vector3.new(0, 6, 0)
- Part82.Color = Color3.new(0.388235, 0.372549, 0.384314)
- Part82.Transparency = 3
- Part82.Velocity = Vector3.new(-0.944051921, -9.18220997, 0.415161043)
- Part82.Size = Vector3.new(2.29894614, 4.59789228, 18.3915691)
- Part82.Anchored = true
- Part82.BackSurface = Enum.SurfaceType.Weld
- Part82.BottomSurface = Enum.SurfaceType.Smooth
- Part82.BrickColor = BrickColor.new("Dark stone grey")
- Part82.FrontSurface = Enum.SurfaceType.Weld
- Part82.LeftSurface = Enum.SurfaceType.Weld
- Part82.RightSurface = Enum.SurfaceType.Inlet
- Part82.RotVelocity = Vector3.new(4.21531331e-06, -8.56451425e-06, 9.53156359e-06)
- Part82.TopSurface = Enum.SurfaceType.Smooth
- Part82.brickColor = BrickColor.new("Dark stone grey")
- Part82.FormFactor = Enum.FormFactor.Symmetric
- Part82.formFactor = Enum.FormFactor.Symmetric
- Part83.Parent = Model64
- Part83.CFrame = CFrame.new(7.97057295, 10.7267437, -32.7855721, -0.994529426, 0, 0.104527965, -0, -1, 0, 0.104527049, 0, 0.994529426)
- Part83.Orientation = Vector3.new(0, 6, -180)
- Part83.Position = Vector3.new(7.97057295, 10.7267437, -32.7855721)
- Part83.Rotation = Vector3.new(0, 6, -180)
- Part83.Transparency = 3
- Part83.Velocity = Vector3.new(-0.943999112, -9.1822052, 0.415141881)
- Part83.Size = Vector3.new(4.59789228, 2.29894614, 2.29894614)
- Part83.Anchored = true
- Part83.BackSurface = Enum.SurfaceType.Weld
- Part83.BottomSurface = Enum.SurfaceType.Weld
- Part83.FrontSurface = Enum.SurfaceType.Inlet
- Part83.RotVelocity = Vector3.new(4.21531331e-06, -8.56451425e-06, 9.53156359e-06)
- Part83.TopSurface = Enum.SurfaceType.Smooth
- Part83.FormFactor = Enum.FormFactor.Symmetric
- Part83.formFactor = Enum.FormFactor.Symmetric
- SpecialMesh84.Parent = Part83
- SpecialMesh84.MeshType = Enum.MeshType.Wedge
- Part85.Parent = Model64
- Part85.CFrame = CFrame.new(11.2146597, 20.1524239, -1.919505, 0.994529426, 0, 0.104527965, 0, 1, 0, -0.104527049, 0, 0.994529426)
- Part85.Orientation = Vector3.new(0, 6, 0)
- Part85.Position = Vector3.new(11.2146597, 20.1524239, -1.919505)
- Part85.Rotation = Vector3.new(0, 6, 0)
- Part85.Color = Color3.new(0.388235, 0.372549, 0.384314)
- Part85.Transparency = 3
- Part85.Velocity = Vector3.new(-0.944153786, -9.18226147, 0.415159166)
- Part85.Size = Vector3.new(4.59789228, 0.919578433, 4.59789228)
- Part85.Anchored = true
- Part85.BackSurface = Enum.SurfaceType.Weld
- Part85.BottomSurface = Enum.SurfaceType.Weld
- Part85.BrickColor = BrickColor.new("Dark stone grey")
- Part85.FrontSurface = Enum.SurfaceType.Weld
- Part85.LeftSurface = Enum.SurfaceType.Weld
- Part85.RightSurface = Enum.SurfaceType.Weld
- Part85.RotVelocity = Vector3.new(4.21531331e-06, -8.56451425e-06, 9.53156359e-06)
- Part85.TopSurface = Enum.SurfaceType.Weld
- Part85.brickColor = BrickColor.new("Dark stone grey")
- Part85.FormFactor = Enum.FormFactor.Plate
- Part85.formFactor = Enum.FormFactor.Plate
- Part86.Parent = Model64
- Part86.CFrame = CFrame.new(11.5752316, 20.1524239, 1.50998998, -0.994529426, 0, -0.104527965, -0, 1, 0, 0.104527049, 0, -0.994529426)
- Part86.Orientation = Vector3.new(0, -174, 0)
- Part86.Position = Vector3.new(11.5752316, 20.1524239, 1.50998998)
- Part86.Rotation = Vector3.new(-180, -6, -180)
- Part86.Color = Color3.new(0.388235, 0.372549, 0.384314)
- Part86.Transparency = 3
- Part86.Velocity = Vector3.new(-0.944166601, -9.18226814, 0.415159166)
- Part86.Size = Vector3.new(4.59789228, 0.919578433, 2.29894614)
- Part86.Anchored = true
- Part86.BackSurface = Enum.SurfaceType.Weld
- Part86.BottomSurface = Enum.SurfaceType.Weld
- Part86.BrickColor = BrickColor.new("Dark stone grey")
- Part86.FrontSurface = Enum.SurfaceType.Weld
- Part86.LeftSurface = Enum.SurfaceType.Weld
- Part86.RightSurface = Enum.SurfaceType.Weld
- Part86.RotVelocity = Vector3.new(4.21531331e-06, -8.56451425e-06, 9.53156359e-06)
- Part86.TopSurface = Enum.SurfaceType.Weld
- Part86.brickColor = BrickColor.new("Dark stone grey")
- Part86.FormFactor = Enum.FormFactor.Plate
- Part86.formFactor = Enum.FormFactor.Plate
- SpecialMesh87.Parent = Part86
- SpecialMesh87.MeshType = Enum.MeshType.Wedge
- Part88.Parent = Model64
- Part88.CFrame = CFrame.new(13.0822144, 17.6236, -17.1412506, 0, -0.104527958, 0.994529426, -1, 0, 0, 0, -0.994529426, -0.104527056)
- Part88.Orientation = Vector3.new(0, 96, -90)
- Part88.Position = Vector3.new(13.0822144, 17.6236, -17.1412506)
- Part88.Rotation = Vector3.new(-180, 84, 90)
- Part88.Transparency = 3
- Part88.Velocity = Vector3.new(-0.944087684, -9.18222046, 0.415167361)
- Part88.Size = Vector3.new(2.29894614, 11.49473, 2.29894614)
- Part88.Anchored = true
- Part88.BottomSurface = Enum.SurfaceType.Weld
- Part88.FrontSurface = Enum.SurfaceType.Weld
- Part88.RotVelocity = Vector3.new(4.21531331e-06, -8.56451425e-06, 9.53156359e-06)
- Part88.TopSurface = Enum.SurfaceType.Smooth
- Part88.FormFactor = Enum.FormFactor.Symmetric
- Part88.formFactor = Enum.FormFactor.Symmetric
- CylinderMesh89.Parent = Part88
- Part90.Parent = Model64
- Part90.CFrame = CFrame.new(5.62227583, 14.1751575, -22.1363029, 0.994529426, 0, 0.104527965, 0, 1, 0, -0.104527049, 0, 0.994529426)
- Part90.Orientation = Vector3.new(0, 6, 0)
- Part90.Position = Vector3.new(5.62227583, 14.1751575, -22.1363029)
- Part90.Rotation = Vector3.new(0, 6, 0)
- Part90.Color = Color3.new(0.388235, 0.372549, 0.384314)
- Part90.Transparency = 3
- Part90.Velocity = Vector3.new(-0.944051921, -9.18223858, 0.415135354)
- Part90.Size = Vector3.new(2.29894614, 4.59789228, 18.3915691)
- Part90.Anchored = true
- Part90.BackSurface = Enum.SurfaceType.Weld
- Part90.BottomSurface = Enum.SurfaceType.Smooth
- Part90.BrickColor = BrickColor.new("Dark stone grey")
- Part90.FrontSurface = Enum.SurfaceType.Weld
- Part90.LeftSurface = Enum.SurfaceType.Inlet
- Part90.RightSurface = Enum.SurfaceType.Weld
- Part90.RotVelocity = Vector3.new(4.21531331e-06, -8.56451425e-06, 9.53156359e-06)
- Part90.TopSurface = Enum.SurfaceType.Smooth
- Part90.brickColor = BrickColor.new("Dark stone grey")
- Part90.FormFactor = Enum.FormFactor.Symmetric
- Part90.formFactor = Enum.FormFactor.Symmetric
- Part91.Parent = Model64
- Part91.CFrame = CFrame.new(7.97057295, 17.6236, -32.7855721, 0.994529426, 0, 0.104527965, 0, 1, 0, -0.104527049, 0, 0.994529426)
- Part91.Orientation = Vector3.new(0, 6, 0)
- Part91.Position = Vector3.new(7.97057295, 17.6236, -32.7855721)
- Part91.Rotation = Vector3.new(0, 6, 0)
- Part91.Transparency = 3
- Part91.Velocity = Vector3.new(-0.944027722, -9.1822052, 0.415154517)
- Part91.Size = Vector3.new(4.59789228, 2.29894614, 2.29894614)
- Part91.Anchored = true
- Part91.BackSurface = Enum.SurfaceType.Weld
- Part91.BottomSurface = Enum.SurfaceType.Weld
- Part91.FrontSurface = Enum.SurfaceType.Inlet
- Part91.RotVelocity = Vector3.new(4.21531331e-06, -8.56451425e-06, 9.53156359e-06)
- Part91.TopSurface = Enum.SurfaceType.Smooth
- Part91.FormFactor = Enum.FormFactor.Symmetric
- Part91.formFactor = Enum.FormFactor.Symmetric
- SpecialMesh92.Parent = Part91
- SpecialMesh92.MeshType = Enum.MeshType.Wedge
- Part93.Parent = Model64
- Part93.CFrame = CFrame.new(5.46726179, 18.7730675, -30.2108421, 0, 0.994529426, 0.104527965, -1, 0, 0, 0, -0.104527049, 0.994529426)
- Part93.Orientation = Vector3.new(0, 6, -90)
- Part93.Position = Vector3.new(5.46726179, 18.7730675, -30.2108421)
- Part93.Rotation = Vector3.new(0, 6, -90)
- Part93.Color = Color3.new(0.768628, 0.156863, 0.109804)
- Part93.Transparency = 3
- Part93.Velocity = Vector3.new(-0.944041014, -9.18222046, 0.415146351)
- Part93.Size = Vector3.new(4.59789228, 0.919578433, 2.29894614)
- Part93.Anchored = true
- Part93.BackSurface = Enum.SurfaceType.Weld
- Part93.BottomSurface = Enum.SurfaceType.Weld
- Part93.BrickColor = BrickColor.new("Bright red")
- Part93.FrontSurface = Enum.SurfaceType.Weld
- Part93.LeftSurface = Enum.SurfaceType.Weld
- Part93.RightSurface = Enum.SurfaceType.Weld
- Part93.RotVelocity = Vector3.new(4.21531331e-06, -8.56451425e-06, 9.53156359e-06)
- Part93.TopSurface = Enum.SurfaceType.Weld
- Part93.brickColor = BrickColor.new("Bright red")
- Part93.FormFactor = Enum.FormFactor.Plate
- Part93.formFactor = Enum.FormFactor.Plate
- BlockMesh94.Parent = Part93
- BlockMesh94.Offset = Vector3.new(-0.600000024, 1.20000005, 0)
- BlockMesh94.Scale = Vector3.new(0.0299999993, 0.100000001, 0.100000001)
- Part95.Parent = Model64
- Part95.CFrame = CFrame.new(9.17211819, 17.6236, -21.3537903, 0.994529426, 0, 0.104527965, 0, 1, 0, -0.104527049, 0, 0.994529426)
- Part95.Orientation = Vector3.new(0, 6, 0)
- Part95.Position = Vector3.new(9.17211819, 17.6236, -21.3537903)
- Part95.Rotation = Vector3.new(0, 6, 0)
- Part95.Color = Color3.new(0.388235, 0.372549, 0.384314)
- Part95.Transparency = 3
- Part95.Velocity = Vector3.new(-0.944070518, -9.18222618, 0.415154517)
- Part95.Size = Vector3.new(4.59789228, 2.29894614, 20.6905136)
- Part95.Anchored = true
- Part95.BackSurface = Enum.SurfaceType.Weld
- Part95.BottomSurface = Enum.SurfaceType.Weld
- Part95.BrickColor = BrickColor.new("Dark stone grey")
- Part95.FrontSurface = Enum.SurfaceType.Weld
- Part95.RotVelocity = Vector3.new(4.21531331e-06, -8.56451425e-06, 9.53156359e-06)
- Part95.TopSurface = Enum.SurfaceType.Inlet
- Part95.brickColor = BrickColor.new("Dark stone grey")
- Part95.FormFactor = Enum.FormFactor.Symmetric
- Part95.formFactor = Enum.FormFactor.Symmetric
- Part96.Parent = Model64
- Part96.CFrame = CFrame.new(22.1864071, 14.0449743, -3.09954596, -0.0037220316, -0.994529545, -0.104460642, -0.999365509, -9.08626987e-07, 0.0356169902, -0.0354222432, 0.104526028, -0.993898451)
- Part96.Orientation = Vector3.new(-2.03999996, -174, -90)
- Part96.Position = Vector3.new(22.1864071, 14.0449743, -3.09954596)
- Part96.Rotation = Vector3.new(-177.949997, -6, 90.2099991)
- Part96.Transparency = 3
- Part96.Velocity = Vector3.new(1.21259141, 8.57174683, -0.499661744)
- Part96.Size = Vector3.new(9.19578457, 2.75873542, 9.19578457)
- Part96.Anchored = true
- Part96.BackSurface = Enum.SurfaceType.Weld
- Part96.BottomSurface = Enum.SurfaceType.Weld
- Part96.FrontSurface = Enum.SurfaceType.Weld
- Part96.LeftSurface = Enum.SurfaceType.Weld
- Part96.Reflectance = 0.20000000298023
- Part96.RightSurface = Enum.SurfaceType.Weld
- Part96.RotVelocity = Vector3.new(-3.41720913e-23, 0.000276639475, -3.41357406e-23)
- Part96.TopSurface = Enum.SurfaceType.Weld
- CylinderMesh97.Parent = Part96
- CylinderMesh97.Offset = Vector3.new(0, 1.39999998, 0)
- CylinderMesh97.Scale = Vector3.new(0.5, 0.5, 0.5)
- Part98.Parent = Model64
- Part98.CFrame = CFrame.new(6.22315216, 17.6236, -16.4203396, 0, -0.104527958, 0.994529426, -1, 0, 0, 0, -0.994529426, -0.104527056)
- Part98.Orientation = Vector3.new(0, 96, -90)
- Part98.Position = Vector3.new(6.22315216, 17.6236, -16.4203396)
- Part98.Rotation = Vector3.new(-180, 84, 90)
- Part98.Transparency = 3
- Part98.Velocity = Vector3.new(-0.944087684, -9.18224907, 0.415141672)
- Part98.Size = Vector3.new(2.29894614, 11.49473, 2.29894614)
- Part98.Anchored = true
- Part98.BackSurface = Enum.SurfaceType.Weld
- Part98.BottomSurface = Enum.SurfaceType.Weld
- Part98.FrontSurface = Enum.SurfaceType.Weld
- Part98.RotVelocity = Vector3.new(4.21531331e-06, -8.56451425e-06, 9.53156359e-06)
- Part98.TopSurface = Enum.SurfaceType.Smooth
- Part98.FormFactor = Enum.FormFactor.Symmetric
- Part98.formFactor = Enum.FormFactor.Symmetric
- CylinderMesh99.Parent = Part98
- Part100.Parent = Model64
- Part100.CFrame = CFrame.new(9.53257847, 19.2328491, -17.9240761, 0.994529426, 0, 0.104527965, 0, 1, 0, -0.104527049, 0, 0.994529426)
- Part100.Orientation = Vector3.new(0, 6, 0)
- Part100.Position = Vector3.new(9.53257847, 19.2328491, -17.9240761)
- Part100.Rotation = Vector3.new(0, 6, 0)
- Part100.Color = Color3.new(0.388235, 0.372549, 0.384314)
- Part100.Transparency = 3
- Part100.Velocity = Vector3.new(-0.944090009, -9.18223286, 0.415157467)
- Part100.Size = Vector3.new(4.59789228, 0.919578433, 13.7936754)
- Part100.Anchored = true
- Part100.BackSurface = Enum.SurfaceType.Weld
- Part100.BottomSurface = Enum.SurfaceType.Weld
- Part100.BrickColor = BrickColor.new("Dark stone grey")
- Part100.FrontSurface = Enum.SurfaceType.Inlet
- Part100.LeftSurface = Enum.SurfaceType.Weld
- Part100.RightSurface = Enum.SurfaceType.Weld
- Part100.RotVelocity = Vector3.new(4.21531331e-06, -8.56451425e-06, 9.53156359e-06)
- Part100.TopSurface = Enum.SurfaceType.Weld
- Part100.brickColor = BrickColor.new("Dark stone grey")
- Part100.FormFactor = Enum.FormFactor.Plate
- Part100.formFactor = Enum.FormFactor.Plate
- SpecialMesh101.Parent = Part100
- SpecialMesh101.MeshType = Enum.MeshType.Wedge
- Part102.Parent = Model64
- Part102.CFrame = CFrame.new(10.1332779, 14.1751575, -12.2081776, 0.994529426, 0, 0.104527965, 0, 1, 0, -0.104527049, 0, 0.994529426)
- Part102.Orientation = Vector3.new(0, 6, 0)
- Part102.Position = Vector3.new(10.1332779, 14.1751575, -12.2081776)
- Part102.Rotation = Vector3.new(0, 6, 0)
- Part102.Transparency = 3
- Part102.Velocity = Vector3.new(-0.944090486, -9.18224335, 0.415148199)
- Part102.Size = Vector3.new(9.19578457, 4.59789228, 2.29894614)
- Part102.Anchored = true
- Part102.BackSurface = Enum.SurfaceType.Weld
- Part102.BottomSurface = Enum.SurfaceType.Smooth
- Part102.FrontSurface = Enum.SurfaceType.Weld
- Part102.RotVelocity = Vector3.new(4.21531331e-06, -8.56451425e-06, 9.53156359e-06)
- Part102.TopSurface = Enum.SurfaceType.Smooth
- Part102.FormFactor = Enum.FormFactor.Symmetric
- Part102.formFactor = Enum.FormFactor.Symmetric
- Part103.Parent = Model64
- Part103.CFrame = CFrame.new(11.4001303, 14.1751575, -33.1460953, 0, 0.994529426, 0.104527965, -1, 0, 0, 0, -0.104527049, 0.994529426)
- Part103.Orientation = Vector3.new(0, 6, -90)
- Part103.Position = Vector3.new(11.4001303, 14.1751575, -33.1460953)
- Part103.Rotation = Vector3.new(0, 6, -90)
- Part103.Transparency = 3
- Part103.Velocity = Vector3.new(-0.944013357, -9.1821909, 0.415161043)
- Part103.Size = Vector3.new(4.59789228, 2.29894614, 2.29894614)
- Part103.Anchored = true
- Part103.BackSurface = Enum.SurfaceType.Weld
- Part103.BottomSurface = Enum.SurfaceType.Weld
- Part103.FrontSurface = Enum.SurfaceType.Inlet
- Part103.RotVelocity = Vector3.new(4.21531331e-06, -8.56451425e-06, 9.53156359e-06)
- Part103.TopSurface = Enum.SurfaceType.Smooth
- Part103.FormFactor = Enum.FormFactor.Symmetric
- Part103.formFactor = Enum.FormFactor.Symmetric
- SpecialMesh104.Parent = Part103
- SpecialMesh104.MeshType = Enum.MeshType.Wedge
- Part105.Parent = Model64
- Part105.CFrame = CFrame.new(4.38231611, 14.1751575, -18.5387115, 0, -0.994529426, 0.104527965, 1, -0, 0, 0, 0.104527049, 0.994529426)
- Part105.Orientation = Vector3.new(0, 6, 90)
- Part105.Position = Vector3.new(4.38231611, 14.1751575, -18.5387115)
- Part105.Rotation = Vector3.new(0, 6, 90)
- Part105.Color = Color3.new(0.388235, 0.372549, 0.384314)
- Part105.Transparency = 3
- Part105.Velocity = Vector3.new(-0.944064796, -9.18225193, 0.415129364)
- Part105.Size = Vector3.new(4.59789228, 0.919578433, 11.49473)
- Part105.Anchored = true
- Part105.BackSurface = Enum.SurfaceType.Weld
- Part105.BottomSurface = Enum.SurfaceType.Weld
- Part105.BrickColor = BrickColor.new("Dark stone grey")
- Part105.FrontSurface = Enum.SurfaceType.Inlet
- Part105.LeftSurface = Enum.SurfaceType.Weld
- Part105.RightSurface = Enum.SurfaceType.Weld
- Part105.RotVelocity = Vector3.new(4.21531331e-06, -8.56451425e-06, 9.53156359e-06)
- Part105.TopSurface = Enum.SurfaceType.Smooth
- Part105.brickColor = BrickColor.new("Dark stone grey")
- Part105.FormFactor = Enum.FormFactor.Plate
- Part105.formFactor = Enum.FormFactor.Plate
- SpecialMesh106.Parent = Part105
- SpecialMesh106.MeshType = Enum.MeshType.Wedge
- Part107.Parent = Model64
- Part107.CFrame = CFrame.new(9.77282047, 9.11744404, -15.63764, -0.994529426, 0, 0.104527965, -0, -1, 0, 0.104527049, 0, 0.994529426)
- Part107.Orientation = Vector3.new(0, 6, -180)
- Part107.Position = Vector3.new(9.77282047, 9.11744404, -15.63764)
- Part107.Rotation = Vector3.new(0, 6, -180)
- Part107.Color = Color3.new(0.388235, 0.372549, 0.384314)
- Part107.Transparency = 3
- Part107.Velocity = Vector3.new(-0.94405669, -9.18223667, 0.41513893)
- Part107.Size = Vector3.new(4.59789228, 0.919578433, 13.7936754)
- Part107.Anchored = true
- Part107.BackSurface = Enum.SurfaceType.Weld
- Part107.BottomSurface = Enum.SurfaceType.Weld
- Part107.BrickColor = BrickColor.new("Dark stone grey")
- Part107.FrontSurface = Enum.SurfaceType.Inlet
- Part107.LeftSurface = Enum.SurfaceType.Weld
- Part107.RightSurface = Enum.SurfaceType.Weld
- Part107.RotVelocity = Vector3.new(4.21531331e-06, -8.56451425e-06, 9.53156359e-06)
- Part107.TopSurface = Enum.SurfaceType.Weld
- Part107.brickColor = BrickColor.new("Dark stone grey")
- Part107.FormFactor = Enum.FormFactor.Plate
- Part107.formFactor = Enum.FormFactor.Plate
- SpecialMesh108.Parent = Part107
- SpecialMesh108.MeshType = Enum.MeshType.Wedge
- Part109.Parent = Model64
- Part109.CFrame = CFrame.new(11.8396521, 17.6236, 4.02485895, 0.994529426, 0.104527965, 0, 0, 0, -1, -0.104527049, 0.994529426, 0)
- Part109.Orientation = Vector3.new(90, 6, 0)
- Part109.Position = Vector3.new(11.8396521, 17.6236, 4.02485895)
- Part109.Rotation = Vector3.new(90, 0, -6)
- Part109.Color = Color3.new(0.388235, 0.372549, 0.384314)
- Part109.Transparency = 3
- Part109.Size = Vector3.new(4.59789228, 2.75873542, 2.29894614)
- Part109.Anchored = true
- Part109.BackSurface = Enum.SurfaceType.Weld
- Part109.BottomSurface = Enum.SurfaceType.Weld
- Part109.BrickColor = BrickColor.new("Dark stone grey")
- Part109.FrontSurface = Enum.SurfaceType.Inlet
- Part109.LeftSurface = Enum.SurfaceType.Weld
- Part109.RightSurface = Enum.SurfaceType.Weld
- Part109.TopSurface = Enum.SurfaceType.Inlet
- Part109.brickColor = BrickColor.new("Dark stone grey")
- SpecialMesh110.Parent = Part109
- SpecialMesh110.MeshType = Enum.MeshType.Wedge
- Part111.Parent = Model64
- Part111.CFrame = CFrame.new(15.2835236, 14.1751575, -11.5938797, 0, -0.994529426, 0.104527965, 1, -0, 0, 0, 0.104527049, 0.994529426)
- Part111.Orientation = Vector3.new(0, 6, 90)
- Part111.Position = Vector3.new(15.2835236, 14.1751575, -11.5938797)
- Part111.Rotation = Vector3.new(0, 6, 90)
- Part111.Transparency = 3
- Part111.Velocity = Vector3.new(-0.944094777, -9.18222427, 0.415167034)
- Part111.Size = Vector3.new(4.59789228, 0.919578433, 4.59789228)
- Part111.Anchored = true
- Part111.BackSurface = Enum.SurfaceType.Weld
- Part111.BottomSurface = Enum.SurfaceType.Weld
- Part111.FrontSurface = Enum.SurfaceType.Weld
- Part111.LeftSurface = Enum.SurfaceType.Weld
- Part111.RightSurface = Enum.SurfaceType.Weld
- Part111.RotVelocity = Vector3.new(4.21531331e-06, -8.56451425e-06, 9.53156359e-06)
- Part111.TopSurface = Enum.SurfaceType.Weld
- Part111.FormFactor = Enum.FormFactor.Plate
- Part111.formFactor = Enum.FormFactor.Plate
- Part112.Parent = Model64
- Part112.CFrame = CFrame.new(9.95133209, 21.0720215, -2.94255209, -0.994529426, 0, -0.104527965, -0, 1, 0, 0.104527049, 0, -0.994529426)
- Part112.Orientation = Vector3.new(0, -174, 0)
- Part112.Position = Vector3.new(9.95133209, 21.0720215, -2.94255209)
- Part112.Rotation = Vector3.new(-180, -6, -180)
- Part112.Transparency = 3
- Part112.Velocity = Vector3.new(-0.944153309, -9.18226433, 0.415156573)
- Part112.Size = Vector3.new(2.29894614, 0.919578433, 2.29894614)
- Part112.Anchored = true
- Part112.BackSurface = Enum.SurfaceType.Weld
- Part112.BottomSurface = Enum.SurfaceType.Weld
- Part112.FrontSurface = Enum.SurfaceType.Weld
- Part112.LeftSurface = Enum.SurfaceType.Weld
- Part112.RightSurface = Enum.SurfaceType.Weld
- Part112.RotVelocity = Vector3.new(4.21531331e-06, -8.56451425e-06, 9.53156359e-06)
- Part112.TopSurface = Enum.SurfaceType.Weld
- Part112.FormFactor = Enum.FormFactor.Plate
- Part112.formFactor = Enum.FormFactor.Plate
- CylinderMesh113.Parent = Part112
- CylinderMesh113.Offset = Vector3.new(0, -0.400000006, 0)
- CylinderMesh113.Scale = Vector3.new(0.200000003, 2, 0.200000003)
- Part114.Parent = Model64
- Part114.CFrame = CFrame.new(12.4780045, 21.0720215, -0.896456003, -0.994529426, 0, -0.104527965, -0, 1, 0, 0.104527049, 0, -0.994529426)
- Part114.Orientation = Vector3.new(0, -174, 0)
- Part114.Position = Vector3.new(12.4780045, 21.0720215, -0.896456003)
- Part114.Rotation = Vector3.new(-180, -6, -180)
- Part114.Transparency = 3
- Part114.Velocity = Vector3.new(-0.944161892, -9.18225861, 0.415165126)
- Part114.Size = Vector3.new(2.29894614, 0.919578433, 2.29894614)
- Part114.Anchored = true
- Part114.BackSurface = Enum.SurfaceType.Weld
- Part114.BottomSurface = Enum.SurfaceType.Weld
- Part114.FrontSurface = Enum.SurfaceType.Weld
- Part114.LeftSurface = Enum.SurfaceType.Weld
- Part114.RightSurface = Enum.SurfaceType.Weld
- Part114.RotVelocity = Vector3.new(4.21531331e-06, -8.56451425e-06, 9.53156359e-06)
- Part114.TopSurface = Enum.SurfaceType.Weld
- Part114.FormFactor = Enum.FormFactor.Plate
- Part114.formFactor = Enum.FormFactor.Plate
- CylinderMesh115.Parent = Part114
- CylinderMesh115.Offset = Vector3.new(0, -0.400000006, 0)
- CylinderMesh115.Scale = Vector3.new(0.200000003, 2, 0.200000003)
- Part116.Parent = Model64
- Part116.CFrame = CFrame.new(2.98088098, 14.0449743, -1.08105803, -0.0037220316, 0.994529545, 0.104460642, -0.999365509, 9.08626987e-07, -0.0356169902, -0.0354222432, -0.104526028, 0.993898451)
- Part116.Orientation = Vector3.new(2.03999996, 6, -90)
- Part116.Position = Vector3.new(2.98088098, 14.0449743, -1.08105803)
- Part116.Rotation = Vector3.new(2.04999995, 6, -90.2099991)
- Part116.Transparency = 3
- Part116.Size = Vector3.new(9.19578457, 2.75873542, 9.19578457)
- Part116.Anchored = true
- Part116.BackSurface = Enum.SurfaceType.Weld
- Part116.BottomSurface = Enum.SurfaceType.Smooth
- Part116.FrontSurface = Enum.SurfaceType.Weld
- Part116.LeftSurface = Enum.SurfaceType.Weld
- Part116.RightSurface = Enum.SurfaceType.Weld
- Part116.TopSurface = Enum.SurfaceType.Weld
- CylinderMesh117.Parent = Part116
- CylinderMesh117.Offset = Vector3.new(0, 0.300000012, 0)
- CylinderMesh117.Scale = Vector3.new(0.800000012, 0.5, 0.800000012)
- Part118.Parent = Model64
- Part118.CFrame = CFrame.new(10.1916342, 21.0720215, -0.656199992, -0.994529426, 0, -0.104527965, -0, 1, 0, 0.104527049, 0, -0.994529426)
- Part118.Orientation = Vector3.new(0, -174, 0)
- Part118.Position = Vector3.new(10.1916342, 21.0720215, -0.656199992)
- Part118.Rotation = Vector3.new(-180, -6, -180)
- Part118.Transparency = 3
- Part118.Velocity = Vector3.new(-0.944161892, -9.18226814, 0.415156573)
- Part118.Size = Vector3.new(2.29894614, 0.919578433, 2.29894614)
- Part118.Anchored = true
- Part118.BackSurface = Enum.SurfaceType.Weld
- Part118.BottomSurface = Enum.SurfaceType.Weld
- Part118.FrontSurface = Enum.SurfaceType.Weld
- Part118.LeftSurface = Enum.SurfaceType.Weld
- Part118.RightSurface = Enum.SurfaceType.Weld
- Part118.RotVelocity = Vector3.new(4.21531331e-06, -8.56451425e-06, 9.53156359e-06)
- Part118.TopSurface = Enum.SurfaceType.Weld
- Part118.FormFactor = Enum.FormFactor.Plate
- Part118.formFactor = Enum.FormFactor.Plate
- CylinderMesh119.Parent = Part118
- CylinderMesh119.Offset = Vector3.new(0, -0.400000006, 0)
- CylinderMesh119.Scale = Vector3.new(0.200000003, 2, 0.200000003)
- Part120.Parent = Model64
- Part120.CFrame = CFrame.new(12.237792, 21.0720215, -3.18286109, -0.994529426, 0, -0.104527965, -0, 1, 0, 0.104527049, 0, -0.994529426)
- Part120.Orientation = Vector3.new(0, -174, 0)
- Part120.Position = Vector3.new(12.237792, 21.0720215, -3.18286109)
- Part120.Rotation = Vector3.new(-180, -6, -180)
- Part120.Transparency = 3
- Part120.Velocity = Vector3.new(-0.944153309, -9.18225479, 0.415165126)
- Part120.Size = Vector3.new(2.29894614, 0.919578433, 2.29894614)
- Part120.Anchored = true
- Part120.BackSurface = Enum.SurfaceType.Weld
- Part120.BottomSurface = Enum.SurfaceType.Weld
- Part120.FrontSurface = Enum.SurfaceType.Weld
- Part120.LeftSurface = Enum.SurfaceType.Weld
- Part120.RightSurface = Enum.SurfaceType.Weld
- Part120.RotVelocity = Vector3.new(4.21531331e-06, -8.56451425e-06, 9.53156359e-06)
- Part120.TopSurface = Enum.SurfaceType.Weld
- Part120.FormFactor = Enum.FormFactor.Plate
- Part120.formFactor = Enum.FormFactor.Plate
- CylinderMesh121.Parent = Part120
- CylinderMesh121.Offset = Vector3.new(0, -0.400000006, 0)
- CylinderMesh121.Scale = Vector3.new(0.200000003, 2, 0.200000003)
- Part122.Parent = Model64
- Part122.CFrame = CFrame.new(13.0822144, 10.7267437, -17.1412506, 0, -0.104527958, 0.994529426, -1, 0, 0, 0, -0.994529426, -0.104527056)
- Part122.Orientation = Vector3.new(0, 96, -90)
- Part122.Position = Vector3.new(13.0822144, 10.7267437, -17.1412506)
- Part122.Rotation = Vector3.new(-180, 84, 90)
- Part122.Transparency = 3
- Part122.Velocity = Vector3.new(-0.944059074, -9.18222046, 0.415154725)
- Part122.Size = Vector3.new(2.29894614, 11.49473, 2.29894614)
- Part122.Anchored = true
- Part122.BackSurface = Enum.SurfaceType.Weld
- Part122.BottomSurface = Enum.SurfaceType.Weld
- Part122.FrontSurface = Enum.SurfaceType.Weld
- Part122.RotVelocity = Vector3.new(4.21531331e-06, -8.56451425e-06, 9.53156359e-06)
- Part122.TopSurface = Enum.SurfaceType.Smooth
- Part122.FormFactor = Enum.FormFactor.Symmetric
- Part122.formFactor = Enum.FormFactor.Symmetric
- CylinderMesh123.Parent = Part122
- Part124.Parent = Model64
- Part124.CFrame = CFrame.new(14.4423981, 14.1751575, -19.5959167, 0, 0.994529426, 0.104527965, -1, 0, 0, 0, -0.104527049, 0.994529426)
- Part124.Orientation = Vector3.new(0, 6, -90)
- Part124.Position = Vector3.new(14.4423981, 14.1751575, -19.5959167)
- Part124.Rotation = Vector3.new(0, 6, -90)
- Part124.Color = Color3.new(0.388235, 0.372549, 0.384314)
- Part124.Transparency = 3
- Part124.Velocity = Vector3.new(-0.944064796, -9.18220997, 0.415167034)
- Part124.Size = Vector3.new(4.59789228, 0.919578433, 11.49473)
- Part124.Anchored = true
- Part124.BackSurface = Enum.SurfaceType.Weld
- Part124.BottomSurface = Enum.SurfaceType.Weld
- Part124.BrickColor = BrickColor.new("Dark stone grey")
- Part124.FrontSurface = Enum.SurfaceType.Inlet
- Part124.LeftSurface = Enum.SurfaceType.Weld
- Part124.RightSurface = Enum.SurfaceType.Weld
- Part124.RotVelocity = Vector3.new(4.21531331e-06, -8.56451425e-06, 9.53156359e-06)
- Part124.TopSurface = Enum.SurfaceType.Smooth
- Part124.brickColor = BrickColor.new("Dark stone grey")
- Part124.FormFactor = Enum.FormFactor.Plate
- Part124.formFactor = Enum.FormFactor.Plate
- SpecialMesh125.Parent = Part124
- SpecialMesh125.MeshType = Enum.MeshType.Wedge
- Part126.Parent = Model64
- Part126.CFrame = CFrame.new(6.22315216, 10.7267437, -16.4203396, 0, -0.104527958, 0.994529426, -1, 0, 0, 0, -0.994529426, -0.104527056)
- Part126.Orientation = Vector3.new(0, 96, -90)
- Part126.Position = Vector3.new(6.22315216, 10.7267437, -16.4203396)
- Part126.Rotation = Vector3.new(-180, 84, 90)
- Part126.Transparency = 3
- Part126.Velocity = Vector3.new(-0.944059074, -9.18224907, 0.415129036)
- Part126.Size = Vector3.new(2.29894614, 11.49473, 2.29894614)
- Part126.Anchored = true
- Part126.BackSurface = Enum.SurfaceType.Weld
- Part126.BottomSurface = Enum.SurfaceType.Weld
- Part126.FrontSurface = Enum.SurfaceType.Weld
- Part126.RotVelocity = Vector3.new(4.21531331e-06, -8.56451425e-06, 9.53156359e-06)
- Part126.TopSurface = Enum.SurfaceType.Smooth
- Part126.FormFactor = Enum.FormFactor.Symmetric
- Part126.formFactor = Enum.FormFactor.Symmetric
- CylinderMesh127.Parent = Part126
- Part128.Parent = Model64
- Part128.CFrame = CFrame.new(12.0558701, 14.1751575, 6.08281088, 0.994529426, 0.104527965, 0, 0, 0, -1, -0.104527049, 0.994529426, 0)
- Part128.Orientation = Vector3.new(90, 6, 0)
- Part128.Position = Vector3.new(12.0558701, 14.1751575, 6.08281088)
- Part128.Rotation = Vector3.new(90, 0, -6)
- Part128.Transparency = 3
- Part128.Velocity = Vector3.new(-0.944158971, -9.18227673, 0.415148199)
- Part128.Size = Vector3.new(4.59789228, 0.919578433, 4.59789228)
- Part128.Anchored = true
- Part128.BackSurface = Enum.SurfaceType.Weld
- Part128.BottomSurface = Enum.SurfaceType.Weld
- Part128.FrontSurface = Enum.SurfaceType.Weld
- Part128.LeftSurface = Enum.SurfaceType.Weld
- Part128.RightSurface = Enum.SurfaceType.Weld
- Part128.RotVelocity = Vector3.new(4.21531331e-06, -8.56451425e-06, 9.53156359e-06)
- Part128.TopSurface = Enum.SurfaceType.Weld
- Part128.FormFactor = Enum.FormFactor.Plate
- Part128.formFactor = Enum.FormFactor.Plate
- CylinderMesh129.Parent = Part128
- CylinderMesh129.Scale = Vector3.new(0.100000001, 2, 0.100000001)
- Part130.Parent = Model64
- Part130.CFrame = CFrame.new(10.7341604, 20.1524239, -6.49239492, 0.994529426, 0, 0.104527965, 0, 1, 0, -0.104527049, 0, 0.994529426)
- Part130.Orientation = Vector3.new(0, 6, 0)
- Part130.Position = Vector3.new(10.7341604, 20.1524239, -6.49239492)
- Part130.Rotation = Vector3.new(0, 6, 0)
- Part130.Color = Color3.new(0.388235, 0.372549, 0.384314)
- Part130.Transparency = 3
- Part130.Velocity = Vector3.new(-0.944136679, -9.18225288, 0.415159166)
- Part130.Size = Vector3.new(4.59789228, 0.919578433, 4.59789228)
- Part130.Anchored = true
- Part130.BackSurface = Enum.SurfaceType.Weld
- Part130.BottomSurface = Enum.SurfaceType.Weld
- Part130.BrickColor = BrickColor.new("Dark stone grey")
- Part130.FrontSurface = Enum.SurfaceType.Weld
- Part130.LeftSurface = Enum.SurfaceType.Weld
- Part130.RightSurface = Enum.SurfaceType.Weld
- Part130.RotVelocity = Vector3.new(4.21531331e-06, -8.56451425e-06, 9.53156359e-06)
- Part130.TopSurface = Enum.SurfaceType.Weld
- Part130.brickColor = BrickColor.new("Dark stone grey")
- Part130.FormFactor = Enum.FormFactor.Plate
- Part130.formFactor = Enum.FormFactor.Plate
- SpecialMesh131.Parent = Part130
- SpecialMesh131.MeshType = Enum.MeshType.Wedge
- Part132.Parent = Model64
- Part132.CFrame = CFrame.new(9.17211819, 14.1751575, -21.3537903, 0.994529426, 0, 0.104527965, 0, 1, 0, -0.104527049, 0, 0.994529426)
- Part132.Orientation = Vector3.new(0, 6, 0)
- Part132.Position = Vector3.new(9.17211819, 14.1751575, -21.3537903)
- Part132.Rotation = Vector3.new(0, 6, 0)
- Part132.Color = Color3.new(0.388235, 0.372549, 0.384314)
- Part132.Transparency = 3
- Part132.Velocity = Vector3.new(-0.944056213, -9.18222618, 0.415148199)
- Part132.Size = Vector3.new(4.59789228, 4.59789228, 16.0926228)
- Part132.Anchored = true
- Part132.BackSurface = Enum.SurfaceType.Weld
- Part132.BottomSurface = Enum.SurfaceType.Smooth
- Part132.BrickColor = BrickColor.new("Dark stone grey")
- Part132.FrontSurface = Enum.SurfaceType.Weld
- Part132.RotVelocity = Vector3.new(4.21531331e-06, -8.56451425e-06, 9.53156359e-06)
- Part132.TopSurface = Enum.SurfaceType.Smooth
- Part132.brickColor = BrickColor.new("Dark stone grey")
- Part132.FormFactor = Enum.FormFactor.Symmetric
- Part132.formFactor = Enum.FormFactor.Symmetric
- Part133.Parent = Model64
- Part133.CFrame = CFrame.new(15.2690802, 14.1751575, 3.66444993, 0, 0.104527958, -0.994529426, -1, 0, 0, 0, 0.994529426, 0.104527056)
- Part133.Orientation = Vector3.new(0, -84, -90)
- Part133.Position = Vector3.new(15.2690802, 14.1751575, 3.66444993)
- Part133.Rotation = Vector3.new(0, -84, -90)
- Part133.Color = Color3.new(0.388235, 0.372549, 0.384314)
- Part133.Transparency = 3
- Part133.Velocity = Vector3.new(-0.944151282, -9.18225861, 0.415161043)
- Part133.Size = Vector3.new(4.59789228, 2.75873542, 2.29894614)
- Part133.Anchored = true
- Part133.BackSurface = Enum.SurfaceType.Weld
- Part133.BottomSurface = Enum.SurfaceType.Weld
- Part133.BrickColor = BrickColor.new("Dark stone grey")
- Part133.FrontSurface = Enum.SurfaceType.Inlet
- Part133.LeftSurface = Enum.SurfaceType.Weld
- Part133.RightSurface = Enum.SurfaceType.Weld
- Part133.RotVelocity = Vector3.new(4.21531331e-06, -8.56451425e-06, 9.53156359e-06)
- Part133.TopSurface = Enum.SurfaceType.Weld
- Part133.brickColor = BrickColor.new("Dark stone grey")
- SpecialMesh134.Parent = Part133
- SpecialMesh134.MeshType = Enum.MeshType.Wedge
- Part135.Parent = Model64
- Part135.CFrame = CFrame.new(10.4938736, 19.2328491, -8.77872372, 0.994529426, 0, 0.104527965, 0, 1, 0, -0.104527049, 0, 0.994529426)
- Part135.Orientation = Vector3.new(0, 6, 0)
- Part135.Position = Vector3.new(10.4938736, 19.2328491, -8.77872372)
- Part135.Rotation = Vector3.new(0, 6, 0)
- Part135.Color = Color3.new(0.388235, 0.372549, 0.384314)
- Part135.Transparency = 3
- Part135.Velocity = Vector3.new(-0.944124281, -9.18224907, 0.415157467)
- Part135.Size = Vector3.new(4.59789228, 0.919578433, 4.59789228)
- Part135.Anchored = true
- Part135.BackSurface = Enum.SurfaceType.Weld
- Part135.BottomSurface = Enum.SurfaceType.Weld
- Part135.BrickColor = BrickColor.new("Dark stone grey")
- Part135.FrontSurface = Enum.SurfaceType.Weld
- Part135.LeftSurface = Enum.SurfaceType.Weld
- Part135.RightSurface = Enum.SurfaceType.Weld
- Part135.RotVelocity = Vector3.new(4.21531331e-06, -8.56451425e-06, 9.53156359e-06)
- Part135.TopSurface = Enum.SurfaceType.Weld
- Part135.brickColor = BrickColor.new("Dark stone grey")
- Part135.FormFactor = Enum.FormFactor.Plate
- Part135.formFactor = Enum.FormFactor.Plate
- Part136.Parent = Model64
- Part136.CFrame = CFrame.new(11.2146597, 19.2328491, -1.919505, -0.994529426, 0, -0.104527965, -0, 1, 0, 0.104527049, 0, -0.994529426)
- Part136.Orientation = Vector3.new(0, -174, 0)
- Part136.Position = Vector3.new(11.2146597, 19.2328491, -1.919505)
- Part136.Rotation = Vector3.new(-180, -6, -180)
- Part136.Transparency = 3
- Part136.Velocity = Vector3.new(-0.944149971, -9.18226147, 0.415157467)
- Part136.Size = Vector3.new(4.59789228, 0.919578433, 9.19578457)
- Part136.Anchored = true
- Part136.BackSurface = Enum.SurfaceType.Weld
- Part136.BottomSurface = Enum.SurfaceType.Weld
- Part136.FrontSurface = Enum.SurfaceType.Weld
- Part136.LeftSurface = Enum.SurfaceType.Weld
- Part136.RightSurface = Enum.SurfaceType.Weld
- Part136.RotVelocity = Vector3.new(4.21531331e-06, -8.56451425e-06, 9.53156359e-06)
- Part136.TopSurface = Enum.SurfaceType.Smooth
- Part136.FormFactor = Enum.FormFactor.Plate
- Part136.formFactor = Enum.FormFactor.Plate
- Part137.Parent = Model64
- Part137.CFrame = CFrame.new(0.237274006, 14.0449743, -0.792523026, -0.0037220316, 0.994529545, 0.104460642, -0.999365509, 9.08626987e-07, -0.0356169902, -0.0354222432, -0.104526028, 0.993898451)
- Part137.Orientation = Vector3.new(2.03999996, 6, -90)
- Part137.Position = Vector3.new(0.237274006, 14.0449743, -0.792523026)
- Part137.Rotation = Vector3.new(2.04999995, 6, -90.2099991)
- Part137.Transparency = 3
- Part137.Velocity = Vector3.new(1.21259141, 8.57174683, -0.497005999)
- Part137.Size = Vector3.new(9.19578457, 2.75873542, 9.19578457)
- Part137.Anchored = true
- Part137.BackSurface = Enum.SurfaceType.Weld
- Part137.BottomSurface = Enum.SurfaceType.Weld
- Part137.FrontSurface = Enum.SurfaceType.Weld
- Part137.LeftSurface = Enum.SurfaceType.Weld
- Part137.Reflectance = 0.20000000298023
- Part137.RightSurface = Enum.SurfaceType.Weld
- Part137.RotVelocity = Vector3.new(-3.41720913e-23, 0.000276639475, -3.41357406e-23)
- Part137.TopSurface = Enum.SurfaceType.Weld
- CylinderMesh138.Parent = Part137
- CylinderMesh138.Offset = Vector3.new(0, 1.39999998, 0)
- CylinderMesh138.Scale = Vector3.new(0.5, 0.5, 0.5)
- Part139.Parent = Model64
- Part139.CFrame = CFrame.new(8.41001034, 14.1751575, 4.38526583, 0, 0.104527958, 0.994529426, 1, 0, 0, 0, 0.994529426, -0.104527056)
- Part139.Orientation = Vector3.new(0, 96, 90)
- Part139.Position = Vector3.new(8.41001034, 14.1751575, 4.38526583)
- Part139.Rotation = Vector3.new(-180, 84, -90)
- Part139.Color = Color3.new(0.388235, 0.372549, 0.384314)
- Part139.Transparency = 3
- Part139.Velocity = Vector3.new(-0.944151282, -9.18228722, 0.415135354)
- Part139.Size = Vector3.new(4.59789228, 2.75873542, 2.29894614)
- Part139.Anchored = true
- Part139.BackSurface = Enum.SurfaceType.Weld
- Part139.BottomSurface = Enum.SurfaceType.Weld
- Part139.BrickColor = BrickColor.new("Dark stone grey")
- Part139.FrontSurface = Enum.SurfaceType.Inlet
- Part139.LeftSurface = Enum.SurfaceType.Weld
- Part139.RightSurface = Enum.SurfaceType.Weld
- Part139.RotVelocity = Vector3.new(4.21531331e-06, -8.56451425e-06, 9.53156359e-06)
- Part139.TopSurface = Enum.SurfaceType.Weld
- Part139.brickColor = BrickColor.new("Dark stone grey")
- SpecialMesh140.Parent = Part139
- SpecialMesh140.MeshType = Enum.MeshType.Wedge
- Model141.Name = "TeamColorBricks"
- Model141.Parent = Model64
- Part142.Parent = Model141
- Part142.CFrame = CFrame.new(11.1653442, 1.47170305, -2.38941002, -0.954342186, 0.00372301531, 0.29871735, 0.0141320014, 0.999365509, 0.0326934829, -0.298406899, 0.0354222357, -0.953788877)
- Part142.Orientation = Vector3.new(-1.87, 162.610001, 0.810000002)
- Part142.Position = Vector3.new(11.1653442, 1.47170305, -2.38941002)
- Part142.Rotation = Vector3.new(-178.039993, 17.3799992, -179.779999)
- Part142.Color = Color3.new(0.388235, 0.372549, 0.384314)
- Part142.Transparency = 50
- Part142.Size = Vector3.new(13.7936754, 2.29894614, 13.7936754)
- Part142.Anchored = true
- Part142.BrickColor = BrickColor.new("Dark stone grey")
- Part142.TopParamA = 0
- Part142.TopParamB = 0
- Part142.TopSurface = Enum.SurfaceType.Hinge
- Part142.brickColor = BrickColor.new("Dark stone grey")
- Part142.FormFactor = Enum.FormFactor.Symmetric
- Part142.formFactor = Enum.FormFactor.Symmetric
- Part143.Parent = Model64
- Part143.CFrame = CFrame.new(7.85037184, 14.1751575, -33.9286118, 0.994529426, -0.104527965, 0, 0, 0, 1, -0.104527049, -0.994529426, 0)
- Part143.Orientation = Vector3.new(-90, 6, 0)
- Part143.Position = Vector3.new(7.85037184, 14.1751575, -33.9286118)
- Part143.Rotation = Vector3.new(-90, 0, 6)
- Part143.Color = Color3.new(0.388235, 0.372549, 0.384314)
- Part143.Transparency = 3
- Part143.Velocity = Vector3.new(-0.944009066, -9.18220329, 0.415148199)
- Part143.Size = Vector3.new(4.59789228, 0.919578433, 4.59789228)
- Part143.Anchored = true
- Part143.BackSurface = Enum.SurfaceType.Weld
- Part143.BottomSurface = Enum.SurfaceType.Weld
- Part143.BrickColor = BrickColor.new("Dark stone grey")
- Part143.RotVelocity = Vector3.new(4.21531331e-06, -8.56451425e-06, 9.53156359e-06)
- Part143.TopParamA = -0.10000000149012
- Part143.TopParamB = 0.10000000149012
- Part143.TopSurface = Enum.SurfaceType.Motor
- Part143.TopSurfaceInput = Enum.InputType.Constant
- Part143.brickColor = BrickColor.new("Dark stone grey")
- Part143.FormFactor = Enum.FormFactor.Plate
- Part143.formFactor = Enum.FormFactor.Plate
- BlockMesh144.Parent = Part143
- BlockMesh144.Scale = Vector3.new(1, 0, 1)
- Part145.Parent = Model64
- Part145.CFrame = CFrame.new(16.9279251, 14.0449743, -2.54679394, -0.994529426, 0.00372319389, -0.104461618, -0, 0.999365449, 0.0356191248, 0.104527049, 0.0354242623, -0.993898273)
- Part145.Orientation = Vector3.new(-2.03999996, -174, 0)
- Part145.Position = Vector3.new(16.9279251, 14.0449743, -2.54679394)
- Part145.Rotation = Vector3.new(-177.949997, -6, -179.789993)
- Part145.Color = Color3.new(0.388235, 0.372549, 0.384314)
- Part145.Transparency = 3
- Part145.Velocity = Vector3.new(1.21259141, 8.57174683, -0.499025464)
- Part145.Size = Vector3.new(2.29894614, 9.19578457, 9.19578457)
- Part145.Anchored = true
- Part145.BrickColor = BrickColor.new("Dark stone grey")
- Part145.RightParamA = 0
- Part145.RightParamB = 0
- Part145.RightSurface = Enum.SurfaceType.Hinge
- Part145.RotVelocity = Vector3.new(-3.41720913e-23, 0.000276639475, -3.41357406e-23)
- Part145.TopSurface = Enum.SurfaceType.Inlet
- Part145.brickColor = BrickColor.new("Dark stone grey")
- Part145.FormFactor = Enum.FormFactor.Symmetric
- Part145.formFactor = Enum.FormFactor.Symmetric
- BodyGyro146.Parent = Part145
- BodyGyro146.MaxTorque = Vector3.new(4e+10, 0, 4e+10)
- BodyGyro146.maxTorque = Vector3.new(4e+10, 0, 4e+10)
- Part147.Parent = Model64
- Part147.CFrame = CFrame.new(5.49594879, 14.0449743, -1.34514797, -0.994529426, 0.00372319389, -0.104461618, -0, 0.999365449, 0.0356191248, 0.104527049, 0.0354242623, -0.993898273)
- Part147.Orientation = Vector3.new(-2.03999996, -174, 0)
- Part147.Position = Vector3.new(5.49594879, 14.0449743, -1.34514797)
- Part147.Rotation = Vector3.new(-177.949997, -6, -179.789993)
- Part147.Color = Color3.new(0.388235, 0.372549, 0.384314)
- Part147.Transparency = 3
- Part147.Velocity = Vector3.new(1.21259141, 8.57174683, -0.497642279)
- Part147.Size = Vector3.new(2.29894614, 9.19578457, 9.19578457)
- Part147.Anchored = true
- Part147.BrickColor = BrickColor.new("Dark stone grey")
- Part147.LeftParamA = 0
- Part147.LeftParamB = 0
- Part147.LeftSurface = Enum.SurfaceType.Hinge
- Part147.RotVelocity = Vector3.new(-3.41720913e-23, 0.000276639475, -3.41357406e-23)
- Part147.TopSurface = Enum.SurfaceType.Inlet
- Part147.brickColor = BrickColor.new("Dark stone grey")
- Part147.FormFactor = Enum.FormFactor.Symmetric
- Part147.formFactor = Enum.FormFactor.Symmetric
- BodyGyro148.Parent = Part147
- BodyGyro148.MaxTorque = Vector3.new(4e+10, 0, 4e+10)
- BodyGyro148.maxTorque = Vector3.new(4e+10, 0, 4e+10)
- Part149.Parent = Model64
- Part149.CFrame = CFrame.new(5.47026777, 7.15251493, -1.58946598, -0.994529426, 0.00372319389, -0.104461618, -0, 0.999365449, 0.0356191248, 0.104527049, 0.0354242623, -0.993898273)
- Part149.Orientation = Vector3.new(-2.03999996, -174, 0)
- Part149.Position = Vector3.new(5.47026777, 7.15251493, -1.58946598)
- Part149.Rotation = Vector3.new(-177.949997, -6, -179.789993)
- Part149.Transparency = 3
- Part149.Velocity = Vector3.new(1.21256185, 8.57174683, -0.497642279)
- Part149.Size = Vector3.new(2.29894614, 4.59789228, 9.19578457)
- Part149.Anchored = true
- Part149.RotVelocity = Vector3.new(-3.41720913e-23, 0.000276639475, -3.41357406e-23)
- Part149.FormFactor = Enum.FormFactor.Symmetric
- Part149.formFactor = Enum.FormFactor.Symmetric
- BodyGyro150.Parent = Part149
- BodyGyro150.MaxTorque = Vector3.new(4e+10, 0, 4e+10)
- BodyGyro150.maxTorque = Vector3.new(4e+10, 0, 4e+10)
- Part151.Parent = Model64
- Part151.CFrame = CFrame.new(11.1735077, 3.70626807, -2.31239009, -0.994529426, 0.00372319389, -0.104461618, -0, 0.999365449, 0.0356191248, 0.104527049, 0.0354242623, -0.993898273)
- Part151.Orientation = Vector3.new(-2.03999996, -174, 0)
- Part151.Position = Vector3.new(11.1735077, 3.70626807, -2.31239009)
- Part151.Rotation = Vector3.new(-177.949997, -6, -179.789993)
- Part151.Color = Color3.new(0.388235, 0.372549, 0.384314)
- Part151.Transparency = 3
- Part151.Velocity = Vector3.new(1.21254706, 8.57174683, -0.498333871)
- Part151.Size = Vector3.new(13.7936754, 2.29894614, 9.19578457)
- Part151.Anchored = true
- Part151.BrickColor = BrickColor.new("Dark stone grey")
- Part151.RotVelocity = Vector3.new(-3.41720913e-23, 0.000276639475, -3.41357406e-23)
- Part151.TopSurface = Enum.SurfaceType.Weld
- Part151.brickColor = BrickColor.new("Dark stone grey")
- Part151.FormFactor = Enum.FormFactor.Symmetric
- Part151.formFactor = Enum.FormFactor.Symmetric
- BodyGyro152.Parent = Part151
- BodyGyro152.MaxTorque = Vector3.new(4e+10, 0, 4e+10)
- BodyGyro152.maxTorque = Vector3.new(4e+10, 0, 4e+10)
- Part153.Parent = Model64
- Part153.CFrame = CFrame.new(16.9020615, 7.15251493, -2.79110098, -0.994529426, 0.00372319389, -0.104461618, -0, 0.999365449, 0.0356191248, 0.104527049, 0.0354242623, -0.993898273)
- Part153.Orientation = Vector3.new(-2.03999996, -174, 0)
- Part153.Position = Vector3.new(16.9020615, 7.15251493, -2.79110098)
- Part153.Rotation = Vector3.new(-177.949997, -6, -179.789993)
- Part153.Transparency = 3
- Part153.Velocity = Vector3.new(1.21256185, 8.57174683, -0.499025464)
- Part153.Size = Vector3.new(2.29894614, 4.59789228, 9.19578457)
- Part153.Anchored = true
- Part153.RotVelocity = Vector3.new(-3.41720913e-23, 0.000276639475, -3.41357406e-23)
- Part153.FormFactor = Enum.FormFactor.Symmetric
- Part153.formFactor = Enum.FormFactor.Symmetric
- BodyGyro154.Parent = Part153
- BodyGyro154.MaxTorque = Vector3.new(4e+10, 0, 4e+10)
- BodyGyro154.maxTorque = Vector3.new(4e+10, 0, 4e+10)
- BrickColorValue155.Name = "TeamColor"
- BrickColorValue155.Parent = Model41
- BrickColorValue155.Value = BrickColor.new("Dark stone grey")
- Model156.Name = "Killbot"
- Model156.Parent = Model2
- Model156.PrimaryPart = Part158
- Script157.Name = "KillbotScript"
- Script157.Parent = Model156
- table.insert(cors,sandbox(Script157,function()
- local sphere = script.Parent.Sphere
- local myTarget = nil
- -- obtain goals based on Sphere part
- sphere.BodyPosition.position = sphere.Position
- -- this code hijacked from the new rocket launcher
- local Rocket = Instance.new("Part")
- Rocket.Locked = true
- Rocket.BackSurface = 3
- Rocket.BottomSurface = 3
- Rocket.FrontSurface = 3
- Rocket.LeftSurface = 3
- Rocket.RightSurface = 3
- Rocket.TopSurface = 3
- Rocket.Size = Vector3.new(1,1,4)
- Rocket.BrickColor = BrickColor.new(21)
- script.Parent.RocketScript:clone().Parent = Rocket
- script.Parent.Explosion:clone().Parent = Rocket
- script.Parent.Swoosh:clone().Parent = Rocket
- function fire(target)
- local dir = target - sphere.Position
- dir = computeDirection(dir)
- local missile = Rocket:clone()
- local spawnPos = sphere.Position
- local pos = spawnPos + (dir * 8)
- --missile.Position = pos
- missile.CFrame = CFrame.new(pos, pos + dir)
- missile.RocketScript.Disabled = false
- missile.Parent = game.Workspace
- end
- function computeDirection(vec)
- local lenSquared = vec.magnitude * vec.magnitude
- local invSqrt = 1 / math.sqrt(lenSquared)
- return Vector3.new(vec.x * invSqrt, vec.y * invSqrt, vec.z * invSqrt)
- end
- function scanForHumans()
- -- KILL THE HUMANS!!!!!!!!!!
- -- for now, pick a random one. In the future, pick the closest. Or use hit test to pick a visible one.
- local humansFound = {}
- local players = game.Players:children()
- if (#players < 1) then return end
- local i = math.random(1, #players)
- myTarget = players[i].Character
- end
- function moveKillbot()
- -- killbots move using a biased random walk toward the target
- -- they also like to float at least 10 studs above the ground
- local dx = math.random(-100,100)
- local dy = math.random(-40,40)
- local dz = math.random(-100,100)
- if (sphere.Position.y < 10 and dy < 0) then dy = -dy end
- if (sphere.Position.y > 80 and dy > 0) then dy = -dy end
- if (myTarget ~= nil) then
- local dir = computeDirection(myTarget.PrimaryPart.Position - sphere.Position)
- dx = dx + (dir.x * 80) -- change this number to alter player trophism
- dz = dz + (dir.z * 80)
- end
- local vec = computeDirection(Vector3.new(dx,dy,dz))
- sphere.BodyPosition.position = sphere.Position + (vec * 40) -- change this number to alter speed
- end
- function onTouched(hit)
- local humanoid = hit.Parent:findFirstChild("Humanoid")
- if humanoid~=nil then
- humanoid.Health = humanoid.Health - 2000 -- Killbots kill you when you touch them! duh.
- else
- -- sadly, there is no good way to give a killbot hit points, so one hit with any weapon kills them
- script.Parent.Parent = nil
- end
- end
- sphere.Touched:connect(onTouched)
- while true do -- loop forever
- scanForHumans()
- for n=1,5 do
- if (myTarget ~= nil) then
- if(math.random(1,3) == 2) then fire(myTarget.PrimaryPart.Position) end
- wait(math.random(1,2))
- moveKillbot()
- wait(math.random(1,2))
- end
- end
- wait(.1) -- don't hog CPU
- end
- end))
- Part158.Name = "Sphere"
- Part158.Parent = Model156
- Part158.CFrame = CFrame.new(-2.13871002, 21.6000271, 17.1647491, -1, 0, 0, 0, 1, 0, 0, 0, -1)
- Part158.Orientation = Vector3.new(0, 180, 0)
- Part158.Position = Vector3.new(-2.13871002, 21.6000271, 17.1647491)
- Part158.Rotation = Vector3.new(-180, 0, -180)
- Part158.Color = Color3.new(0.105882, 0.164706, 0.207843)
- Part158.Transparency = 423234
- Part158.Size = Vector3.new(4, 4, 4)
- Part158.Anchored = true
- Part158.BackSurface = Enum.SurfaceType.Weld
- Part158.BottomSurface = Enum.SurfaceType.Weld
- Part158.BrickColor = BrickColor.new("Black")
- Part158.FrontSurface = Enum.SurfaceType.Weld
- Part158.LeftSurface = Enum.SurfaceType.Weld
- Part158.Reflectance = 0.20000000298023
- Part158.RightSurface = Enum.SurfaceType.Weld
- Part158.TopSurface = Enum.SurfaceType.Weld
- Part158.brickColor = BrickColor.new("Black")
- Part158.FormFactor = Enum.FormFactor.Symmetric
- Part158.formFactor = Enum.FormFactor.Symmetric
- Part158.Shape = Enum.PartType.Ball
- BodyPosition159.Parent = Part158
- BodyPosition159.D = 10000
- BodyPosition159.MaxForce = Vector3.new(4000, 400000, 4000)
- BodyPosition159.maxForce = Vector3.new(4000, 400000, 4000)
- Script160.Name = "RocketScript"
- Script160.Parent = Model156
- table.insert(cors,sandbox(Script160,function()
- r = game:service("RunService")
- shaft = script.Parent
- position = shaft.Position
- script.Parent.Explosion.PlayOnRemove = true -- play explosion sound when projectile removed from game
- function fly()
- direction = shaft.CFrame.lookVector
- position = position + direction
- error = position - shaft.Position
- shaft.Velocity = 7*error
- end
- function blow()
- swoosh:stop()
- explosion = Instance.new("Explosion")
- explosion.Position = shaft.Position
- -- find instigator tag
- local creator = script.Parent:findFirstChild("creator")
- if creator ~= nil then
- explosion.Hit:connect(function(part, distance) onPlayerBlownUp(part, distance, creator) end)
- end
- explosion.Parent = game.Workspace
- connection:disconnect()
- wait(.1)
- shaft:remove()
- end
- function onPlayerBlownUp(part, distance, creator)
- if part.Name == "Head" then
- local humanoid = part.Parent:findFirstChild("Humanoid")
- tagHumanoid(humanoid, creator)
- end
- end
- function tagHumanoid(humanoid, creator)
- -- tag does not need to expire iff all explosions lethal
- if creator ~= nil then
- local new_tag = creator:clone()
- new_tag.Parent = humanoid
- end
- end
- function untagHumanoid(humanoid)
- if humanoid ~= nil then
- local tag = humanoid:findFirstChild("creator")
- if tag ~= nil then
- tag.Parent = nil
- end
- end
- end
- t, s = r.Stepped:wait()
- swoosh = script.Parent.Swoosh
- swoosh:play()
- d = t + 10.0 - s
- connection = shaft.Touched:connect(blow)
- while t < d do
- fly()
- t = r.Stepped:wait()
- end
- -- at max range
- script.Parent.Explosion.PlayOnRemove = false
- swoosh:stop()
- shaft:remove()
- end))
- Script160.Disabled = true
- Sound161.Name = "Explosion"
- Sound161.Parent = Model156
- Sound161.SoundId = "rbxasset://sounds/collide.wav"
- Sound161.Volume = 1
- Sound162.Name = "Swoosh"
- Sound162.Parent = Model156
- Sound162.Looped = true
- Sound162.SoundId = "rbxasset://sounds/Rocket whoosh 01.wav"
- Sound162.Volume = 0.69999998807907
- Model163.Name = "Killbot"
- Model163.Parent = Model2
- Model163.PrimaryPart = Part165
- Script164.Name = "KillbotScript"
- Script164.Parent = Model163
- table.insert(cors,sandbox(Script164,function()
- local sphere = script.Parent.Sphere
- local myTarget = nil
- -- obtain goals based on Sphere part
- sphere.BodyPosition.position = sphere.Position
- -- this code hijacked from the new rocket launcher
- local Rocket = Instance.new("Part")
- Rocket.Locked = true
- Rocket.BackSurface = 3
- Rocket.BottomSurface = 3
- Rocket.FrontSurface = 3
- Rocket.LeftSurface = 3
- Rocket.RightSurface = 3
- Rocket.TopSurface = 3
- Rocket.Size = Vector3.new(1,1,4)
- Rocket.BrickColor = BrickColor.new(21)
- script.Parent.RocketScript:clone().Parent = Rocket
- script.Parent.Explosion:clone().Parent = Rocket
- script.Parent.Swoosh:clone().Parent = Rocket
- function fire(target)
- local dir = target - sphere.Position
- dir = computeDirection(dir)
- local missile = Rocket:clone()
- local spawnPos = sphere.Position
- local pos = spawnPos + (dir * 8)
- --missile.Position = pos
- missile.CFrame = CFrame.new(pos, pos + dir)
- missile.RocketScript.Disabled = false
- missile.Parent = game.Workspace
- end
- function computeDirection(vec)
- local lenSquared = vec.magnitude * vec.magnitude
- local invSqrt = 1 / math.sqrt(lenSquared)
- return Vector3.new(vec.x * invSqrt, vec.y * invSqrt, vec.z * invSqrt)
- end
- function scanForHumans()
- -- KILL THE HUMANS!!!!!!!!!!
- -- for now, pick a random one. In the future, pick the closest. Or use hit test to pick a visible one.
- local humansFound = {}
- local players = game.Players:children()
- if (#players < 1) then return end
- local i = math.random(1, #players)
- myTarget = players[i].Character
- end
- function moveKillbot()
- -- killbots move using a biased random walk toward the target
- -- they also like to float at least 10 studs above the ground
- local dx = math.random(-100,100)
- local dy = math.random(-40,40)
- local dz = math.random(-100,100)
- if (sphere.Position.y < 10 and dy < 0) then dy = -dy end
- if (sphere.Position.y > 80 and dy > 0) then dy = -dy end
- if (myTarget ~= nil) then
- local dir = computeDirection(myTarget.PrimaryPart.Position - sphere.Position)
- dx = dx + (dir.x * 80) -- change this number to alter player trophism
- dz = dz + (dir.z * 80)
- end
- local vec = computeDirection(Vector3.new(dx,dy,dz))
- sphere.BodyPosition.position = sphere.Position + (vec * 40) -- change this number to alter speed
- end
- function onTouched(hit)
- local humanoid = hit.Parent:findFirstChild("Humanoid")
- if humanoid~=nil then
- humanoid.Health = humanoid.Health - 2000 -- Killbots kill you when you touch them! duh.
- else
- -- sadly, there is no good way to give a killbot hit points, so one hit with any weapon kills them
- script.Parent.Parent = nil
- end
- end
- sphere.Touched:connect(onTouched)
- while true do -- loop forever
- scanForHumans()
- for n=1,5 do
- if (myTarget ~= nil) then
- if(math.random(1,3) == 2) then fire(myTarget.PrimaryPart.Position) end
- wait(math.random(1,2))
- moveKillbot()
- wait(math.random(1,2))
- end
- end
- wait(.1) -- don't hog CPU
- end
- end))
- Part165.Name = "Sphere"
- Part165.Parent = Model163
- Part165.CFrame = CFrame.new(-2.13871002, 25.6000519, 17.1647491, -1, 0, 0, 0, 1, 0, 0, 0, -1)
- Part165.Orientation = Vector3.new(0, 180, 0)
- Part165.Position = Vector3.new(-2.13871002, 25.6000519, 17.1647491)
- Part165.Rotation = Vector3.new(-180, 0, -180)
- Part165.Color = Color3.new(0.105882, 0.164706, 0.207843)
- Part165.Transparency = 423234
- Part165.Size = Vector3.new(4, 4, 4)
- Part165.Anchored = true
- Part165.BackSurface = Enum.SurfaceType.Weld
- Part165.BottomSurface = Enum.SurfaceType.Weld
- Part165.BrickColor = BrickColor.new("Black")
- Part165.FrontSurface = Enum.SurfaceType.Weld
- Part165.LeftSurface = Enum.SurfaceType.Weld
- Part165.Reflectance = 0.20000000298023
- Part165.RightSurface = Enum.SurfaceType.Weld
- Part165.TopSurface = Enum.SurfaceType.Weld
- Part165.brickColor = BrickColor.new("Black")
- Part165.FormFactor = Enum.FormFactor.Symmetric
- Part165.formFactor = Enum.FormFactor.Symmetric
- Part165.Shape = Enum.PartType.Ball
- BodyPosition166.Parent = Part165
- BodyPosition166.D = 10000
- BodyPosition166.MaxForce = Vector3.new(4000, 400000, 4000)
- BodyPosition166.maxForce = Vector3.new(4000, 400000, 4000)
- Script167.Name = "RocketScript"
- Script167.Parent = Model163
- table.insert(cors,sandbox(Script167,function()
- r = game:service("RunService")
- shaft = script.Parent
- position = shaft.Position
- script.Parent.Explosion.PlayOnRemove = true -- play explosion sound when projectile removed from game
- function fly()
- direction = shaft.CFrame.lookVector
- position = position + direction
- error = position - shaft.Position
- shaft.Velocity = 7*error
- end
- function blow()
- swoosh:stop()
- explosion = Instance.new("Explosion")
- explosion.Position = shaft.Position
- -- find instigator tag
- local creator = script.Parent:findFirstChild("creator")
- if creator ~= nil then
- explosion.Hit:connect(function(part, distance) onPlayerBlownUp(part, distance, creator) end)
- end
- explosion.Parent = game.Workspace
- connection:disconnect()
- wait(.1)
- shaft:remove()
- end
- function onPlayerBlownUp(part, distance, creator)
- if part.Name == "Head" then
- local humanoid = part.Parent:findFirstChild("Humanoid")
- tagHumanoid(humanoid, creator)
- end
- end
- function tagHumanoid(humanoid, creator)
- -- tag does not need to expire iff all explosions lethal
- if creator ~= nil then
- local new_tag = creator:clone()
- new_tag.Parent = humanoid
- end
- end
- function untagHumanoid(humanoid)
- if humanoid ~= nil then
- local tag = humanoid:findFirstChild("creator")
- if tag ~= nil then
- tag.Parent = nil
- end
- end
- end
- t, s = r.Stepped:wait()
- swoosh = script.Parent.Swoosh
- swoosh:play()
- d = t + 10.0 - s
- connection = shaft.Touched:connect(blow)
- while t < d do
- fly()
- t = r.Stepped:wait()
- end
- -- at max range
- script.Parent.Explosion.PlayOnRemove = false
- swoosh:stop()
- shaft:remove()
- end))
- Script167.Disabled = true
- Sound168.Name = "Explosion"
- Sound168.Parent = Model163
- Sound168.SoundId = "rbxasset://sounds/collide.wav"
- Sound168.Volume = 1
- Sound169.Name = "Swoosh"
- Sound169.Parent = Model163
- Sound169.Looped = true
- Sound169.SoundId = "rbxasset://sounds/Rocket whoosh 01.wav"
- Sound169.Volume = 0.69999998807907
- Model170.Name = "Killbot"
- Model170.Parent = Model2
- Model170.PrimaryPart = Part172
- Script171.Name = "KillbotScript"
- Script171.Parent = Model170
- table.insert(cors,sandbox(Script171,function()
- local sphere = script.Parent.Sphere
- local myTarget = nil
- -- obtain goals based on Sphere part
- sphere.BodyPosition.position = sphere.Position
- -- this code hijacked from the new rocket launcher
- local Rocket = Instance.new("Part")
- Rocket.Locked = true
- Rocket.BackSurface = 3
- Rocket.BottomSurface = 3
- Rocket.FrontSurface = 3
- Rocket.LeftSurface = 3
- Rocket.RightSurface = 3
- Rocket.TopSurface = 3
- Rocket.Size = Vector3.new(1,1,4)
- Rocket.BrickColor = BrickColor.new(21)
- script.Parent.RocketScript:clone().Parent = Rocket
- script.Parent.Explosion:clone().Parent = Rocket
- script.Parent.Swoosh:clone().Parent = Rocket
- function fire(target)
- local dir = target - sphere.Position
- dir = computeDirection(dir)
- local missile = Rocket:clone()
- local spawnPos = sphere.Position
- local pos = spawnPos + (dir * 8)
- --missile.Position = pos
- missile.CFrame = CFrame.new(pos, pos + dir)
- missile.RocketScript.Disabled = false
- missile.Parent = game.Workspace
- end
- function computeDirection(vec)
- local lenSquared = vec.magnitude * vec.magnitude
- local invSqrt = 1 / math.sqrt(lenSquared)
- return Vector3.new(vec.x * invSqrt, vec.y * invSqrt, vec.z * invSqrt)
- end
- function scanForHumans()
- -- KILL THE HUMANS!!!!!!!!!!
- -- for now, pick a random one. In the future, pick the closest. Or use hit test to pick a visible one.
- local humansFound = {}
- local players = game.Players:children()
- if (#players < 1) then return end
- local i = math.random(1, #players)
- myTarget = players[i].Character
- end
- function moveKillbot()
- -- killbots move using a biased random walk toward the target
- -- they also like to float at least 10 studs above the ground
- local dx = math.random(-100,100)
- local dy = math.random(-40,40)
- local dz = math.random(-100,100)
- if (sphere.Position.y < 10 and dy < 0) then dy = -dy end
- if (sphere.Position.y > 80 and dy > 0) then dy = -dy end
- if (myTarget ~= nil) then
- local dir = computeDirection(myTarget.PrimaryPart.Position - sphere.Position)
- dx = dx + (dir.x * 80) -- change this number to alter player trophism
- dz = dz + (dir.z * 80)
- end
- local vec = computeDirection(Vector3.new(dx,dy,dz))
- sphere.BodyPosition.position = sphere.Position + (vec * 40) -- change this number to alter speed
- end
- function onTouched(hit)
- local humanoid = hit.Parent:findFirstChild("Humanoid")
- if humanoid~=nil then
- humanoid.Health = humanoid.Health - 2000 -- Killbots kill you when you touch them! duh.
- else
- -- sadly, there is no good way to give a killbot hit points, so one hit with any weapon kills them
- script.Parent.Parent = nil
- end
- end
- sphere.Touched:connect(onTouched)
- while true do -- loop forever
- scanForHumans()
- for n=1,5 do
- if (myTarget ~= nil) then
- if(math.random(1,3) == 2) then fire(myTarget.PrimaryPart.Position) end
- wait(math.random(1,2))
- moveKillbot()
- wait(math.random(1,2))
- end
- end
- wait(.1) -- don't hog CPU
- end
- end))
- Part172.Name = "Sphere"
- Part172.Parent = Model170
- Part172.CFrame = CFrame.new(-2.13871002, 29.6000729, 17.1647491, -1, 0, 0, 0, 1, 0, 0, 0, -1)
- Part172.Orientation = Vector3.new(0, 180, 0)
- Part172.Position = Vector3.new(-2.13871002, 29.6000729, 17.1647491)
- Part172.Rotation = Vector3.new(-180, 0, -180)
- Part172.Color = Color3.new(0.105882, 0.164706, 0.207843)
- Part172.Transparency = 423234
- Part172.Size = Vector3.new(4, 4, 4)
- Part172.Anchored = true
- Part172.BackSurface = Enum.SurfaceType.Weld
- Part172.BottomSurface = Enum.SurfaceType.Weld
- Part172.BrickColor = BrickColor.new("Black")
- Part172.FrontSurface = Enum.SurfaceType.Weld
- Part172.LeftSurface = Enum.SurfaceType.Weld
- Part172.Reflectance = 0.20000000298023
- Part172.RightSurface = Enum.SurfaceType.Weld
- Part172.TopSurface = Enum.SurfaceType.Weld
- Part172.brickColor = BrickColor.new("Black")
- Part172.FormFactor = Enum.FormFactor.Symmetric
- Part172.formFactor = Enum.FormFactor.Symmetric
- Part172.Shape = Enum.PartType.Ball
- BodyPosition173.Parent = Part172
- BodyPosition173.D = 10000
- BodyPosition173.MaxForce = Vector3.new(4000, 400000, 4000)
- BodyPosition173.maxForce = Vector3.new(4000, 400000, 4000)
- Script174.Name = "RocketScript"
- Script174.Parent = Model170
- table.insert(cors,sandbox(Script174,function()
- r = game:service("RunService")
- shaft = script.Parent
- position = shaft.Position
- script.Parent.Explosion.PlayOnRemove = true -- play explosion sound when projectile removed from game
- function fly()
- direction = shaft.CFrame.lookVector
- position = position + direction
- error = position - shaft.Position
- shaft.Velocity = 7*error
- end
- function blow()
- swoosh:stop()
- explosion = Instance.new("Explosion")
- explosion.Position = shaft.Position
- -- find instigator tag
- local creator = script.Parent:findFirstChild("creator")
- if creator ~= nil then
- explosion.Hit:connect(function(part, distance) onPlayerBlownUp(part, distance, creator) end)
- end
- explosion.Parent = game.Workspace
- connection:disconnect()
- wait(.1)
- shaft:remove()
- end
- function onPlayerBlownUp(part, distance, creator)
- if part.Name == "Head" then
- local humanoid = part.Parent:findFirstChild("Humanoid")
- tagHumanoid(humanoid, creator)
- end
- end
- function tagHumanoid(humanoid, creator)
- -- tag does not need to expire iff all explosions lethal
- if creator ~= nil then
- local new_tag = creator:clone()
- new_tag.Parent = humanoid
- end
- end
- function untagHumanoid(humanoid)
- if humanoid ~= nil then
- local tag = humanoid:findFirstChild("creator")
- if tag ~= nil then
- tag.Parent = nil
- end
- end
- end
- t, s = r.Stepped:wait()
- swoosh = script.Parent.Swoosh
- swoosh:play()
- d = t + 10.0 - s
- connection = shaft.Touched:connect(blow)
- while t < d do
- fly()
- t = r.Stepped:wait()
- end
- -- at max range
- script.Parent.Explosion.PlayOnRemove = false
- swoosh:stop()
- shaft:remove()
- end))
- Script174.Disabled = true
- Sound175.Name = "Explosion"
- Sound175.Parent = Model170
- Sound175.SoundId = "rbxasset://sounds/collide.wav"
- Sound175.Volume = 1
- Sound176.Name = "Swoosh"
- Sound176.Parent = Model170
- Sound176.Looped = true
- Sound176.SoundId = "rbxasset://sounds/Rocket whoosh 01.wav"
- Sound176.Volume = 0.69999998807907
- Model177.Name = "Killbot"
- Model177.Parent = Model2
- Model177.PrimaryPart = Part179
- Script178.Name = "KillbotScript"
- Script178.Parent = Model177
- table.insert(cors,sandbox(Script178,function()
- local sphere = script.Parent.Sphere
- local myTarget = nil
- -- obtain goals based on Sphere part
- sphere.BodyPosition.position = sphere.Position
- -- this code hijacked from the new rocket launcher
- local Rocket = Instance.new("Part")
- Rocket.Locked = true
- Rocket.BackSurface = 3
- Rocket.BottomSurface = 3
- Rocket.FrontSurface = 3
- Rocket.LeftSurface = 3
- Rocket.RightSurface = 3
- Rocket.TopSurface = 3
- Rocket.Size = Vector3.new(1,1,4)
- Rocket.BrickColor = BrickColor.new(21)
- script.Parent.RocketScript:clone().Parent = Rocket
- script.Parent.Explosion:clone().Parent = Rocket
- script.Parent.Swoosh:clone().Parent = Rocket
- function fire(target)
- local dir = target - sphere.Position
- dir = computeDirection(dir)
- local missile = Rocket:clone()
- local spawnPos = sphere.Position
- local pos = spawnPos + (dir * 8)
- --missile.Position = pos
- missile.CFrame = CFrame.new(pos, pos + dir)
- missile.RocketScript.Disabled = false
- missile.Parent = game.Workspace
- end
- function computeDirection(vec)
- local lenSquared = vec.magnitude * vec.magnitude
- local invSqrt = 1 / math.sqrt(lenSquared)
- return Vector3.new(vec.x * invSqrt, vec.y * invSqrt, vec.z * invSqrt)
- end
- function scanForHumans()
- -- KILL THE HUMANS!!!!!!!!!!
- -- for now, pick a random one. In the future, pick the closest. Or use hit test to pick a visible one.
- local humansFound = {}
- local players = game.Players:children()
- if (#players < 1) then return end
- local i = math.random(1, #players)
- myTarget = players[i].Character
- end
- function moveKillbot()
- -- killbots move using a biased random walk toward the target
- -- they also like to float at least 10 studs above the ground
- local dx = math.random(-100,100)
- local dy = math.random(-40,40)
- local dz = math.random(-100,100)
- if (sphere.Position.y < 10 and dy < 0) then dy = -dy end
- if (sphere.Position.y > 80 and dy > 0) then dy = -dy end
- if (myTarget ~= nil) then
- local dir = computeDirection(myTarget.PrimaryPart.Position - sphere.Position)
- dx = dx + (dir.x * 80) -- change this number to alter player trophism
- dz = dz + (dir.z * 80)
- end
- local vec = computeDirection(Vector3.new(dx,dy,dz))
- sphere.BodyPosition.position = sphere.Position + (vec * 40) -- change this number to alter speed
- end
- function onTouched(hit)
- local humanoid = hit.Parent:findFirstChild("Humanoid")
- if humanoid~=nil then
- humanoid.Health = humanoid.Health - 2000 -- Killbots kill you when you touch them! duh.
- else
- -- sadly, there is no good way to give a killbot hit points, so one hit with any weapon kills them
- script.Parent.Parent = nil
- end
- end
- sphere.Touched:connect(onTouched)
- while true do -- loop forever
- scanForHumans()
- for n=1,5 do
- if (myTarget ~= nil) then
- if(math.random(1,3) == 2) then fire(myTarget.PrimaryPart.Position) end
- wait(math.random(1,2))
- moveKillbot()
- wait(math.random(1,2))
- end
- end
- wait(.1) -- don't hog CPU
- end
- end))
- Part179.Name = "Sphere"
- Part179.Parent = Model177
- Part179.CFrame = CFrame.new(-2.13871002, 33.6000671, 17.1647491, -1, 0, 0, 0, 1, 0, 0, 0, -1)
- Part179.Orientation = Vector3.new(0, 180, 0)
- Part179.Position = Vector3.new(-2.13871002, 33.6000671, 17.1647491)
- Part179.Rotation = Vector3.new(-180, 0, -180)
- Part179.Color = Color3.new(0.105882, 0.164706, 0.207843)
- Part179.Transparency = 423234
- Part179.Size = Vector3.new(4, 4, 4)
- Part179.Anchored = true
- Part179.BackSurface = Enum.SurfaceType.Weld
- Part179.BottomSurface = Enum.SurfaceType.Weld
- Part179.BrickColor = BrickColor.new("Black")
- Part179.FrontSurface = Enum.SurfaceType.Weld
- Part179.LeftSurface = Enum.SurfaceType.Weld
- Part179.Reflectance = 0.20000000298023
- Part179.RightSurface = Enum.SurfaceType.Weld
- Part179.TopSurface = Enum.SurfaceType.Weld
- Part179.brickColor = BrickColor.new("Black")
- Part179.FormFactor = Enum.FormFactor.Symmetric
- Part179.formFactor = Enum.FormFactor.Symmetric
- Part179.Shape = Enum.PartType.Ball
- BodyPosition180.Parent = Part179
- BodyPosition180.D = 10000
- BodyPosition180.MaxForce = Vector3.new(4000, 400000, 4000)
- BodyPosition180.maxForce = Vector3.new(4000, 400000, 4000)
- Script181.Name = "RocketScript"
- Script181.Parent = Model177
- table.insert(cors,sandbox(Script181,function()
- r = game:service("RunService")
- shaft = script.Parent
- position = shaft.Position
- script.Parent.Explosion.PlayOnRemove = true -- play explosion sound when projectile removed from game
- function fly()
- direction = shaft.CFrame.lookVector
- position = position + direction
- error = position - shaft.Position
- shaft.Velocity = 7*error
- end
- function blow()
- swoosh:stop()
- explosion = Instance.new("Explosion")
- explosion.Position = shaft.Position
- -- find instigator tag
- local creator = script.Parent:findFirstChild("creator")
- if creator ~= nil then
- explosion.Hit:connect(function(part, distance) onPlayerBlownUp(part, distance, creator) end)
- end
- explosion.Parent = game.Workspace
- connection:disconnect()
- wait(.1)
- shaft:remove()
- end
- function onPlayerBlownUp(part, distance, creator)
- if part.Name == "Head" then
- local humanoid = part.Parent:findFirstChild("Humanoid")
- tagHumanoid(humanoid, creator)
- end
- end
- function tagHumanoid(humanoid, creator)
- -- tag does not need to expire iff all explosions lethal
- if creator ~= nil then
- local new_tag = creator:clone()
- new_tag.Parent = humanoid
- end
- end
- function untagHumanoid(humanoid)
- if humanoid ~= nil then
- local tag = humanoid:findFirstChild("creator")
- if tag ~= nil then
- tag.Parent = nil
- end
- end
- end
- t, s = r.Stepped:wait()
- swoosh = script.Parent.Swoosh
- swoosh:play()
- d = t + 10.0 - s
- connection = shaft.Touched:connect(blow)
- while t < d do
- fly()
- t = r.Stepped:wait()
- end
- -- at max range
- script.Parent.Explosion.PlayOnRemove = false
- swoosh:stop()
- shaft:remove()
- end))
- Script181.Disabled = true
- Sound182.Name = "Explosion"
- Sound182.Parent = Model177
- Sound182.SoundId = "rbxasset://sounds/collide.wav"
- Sound182.Volume = 1
- Sound183.Name = "Swoosh"
- Sound183.Parent = Model177
- Sound183.Looped = true
- Sound183.SoundId = "rbxasset://sounds/Rocket whoosh 01.wav"
- Sound183.Volume = 0.69999998807907
- Model184.Name = "Killbot"
- Model184.Parent = Model2
- Model184.PrimaryPart = Part186
- Script185.Name = "KillbotScript"
- Script185.Parent = Model184
- table.insert(cors,sandbox(Script185,function()
- local sphere = script.Parent.Sphere
- local myTarget = nil
- -- obtain goals based on Sphere part
- sphere.BodyPosition.position = sphere.Position
- -- this code hijacked from the new rocket launcher
- local Rocket = Instance.new("Part")
- Rocket.Locked = true
- Rocket.BackSurface = 3
- Rocket.BottomSurface = 3
- Rocket.FrontSurface = 3
- Rocket.LeftSurface = 3
- Rocket.RightSurface = 3
- Rocket.TopSurface = 3
- Rocket.Size = Vector3.new(1,1,4)
- Rocket.BrickColor = BrickColor.new(21)
- script.Parent.RocketScript:clone().Parent = Rocket
- script.Parent.Explosion:clone().Parent = Rocket
- script.Parent.Swoosh:clone().Parent = Rocket
- function fire(target)
- local dir = target - sphere.Position
- dir = computeDirection(dir)
- local missile = Rocket:clone()
- local spawnPos = sphere.Position
- local pos = spawnPos + (dir * 8)
- --missile.Position = pos
- missile.CFrame = CFrame.new(pos, pos + dir)
- missile.RocketScript.Disabled = false
- missile.Parent = game.Workspace
- end
- function computeDirection(vec)
- local lenSquared = vec.magnitude * vec.magnitude
- local invSqrt = 1 / math.sqrt(lenSquared)
- return Vector3.new(vec.x * invSqrt, vec.y * invSqrt, vec.z * invSqrt)
- end
- function scanForHumans()
- -- KILL THE HUMANS!!!!!!!!!!
- -- for now, pick a random one. In the future, pick the closest. Or use hit test to pick a visible one.
- local humansFound = {}
- local players = game.Players:children()
- if (#players < 1) then return end
- local i = math.random(1, #players)
- myTarget = players[i].Character
- end
- function moveKillbot()
- -- killbots move using a biased random walk toward the target
- -- they also like to float at least 10 studs above the ground
- local dx = math.random(-100,100)
- local dy = math.random(-40,40)
- local dz = math.random(-100,100)
- if (sphere.Position.y < 10 and dy < 0) then dy = -dy end
- if (sphere.Position.y > 80 and dy > 0) then dy = -dy end
- if (myTarget ~= nil) then
- local dir = computeDirection(myTarget.PrimaryPart.Position - sphere.Position)
- dx = dx + (dir.x * 80) -- change this number to alter player trophism
- dz = dz + (dir.z * 80)
- end
- local vec = computeDirection(Vector3.new(dx,dy,dz))
- sphere.BodyPosition.position = sphere.Position + (vec * 40) -- change this number to alter speed
- end
- function onTouched(hit)
- local humanoid = hit.Parent:findFirstChild("Humanoid")
- if humanoid~=nil then
- humanoid.Health = humanoid.Health - 2000 -- Killbots kill you when you touch them! duh.
- else
- -- sadly, there is no good way to give a killbot hit points, so one hit with any weapon kills them
- script.Parent.Parent = nil
- end
- end
- sphere.Touched:connect(onTouched)
- while true do -- loop forever
- scanForHumans()
- for n=1,5 do
- if (myTarget ~= nil) then
- if(math.random(1,3) == 2) then fire(myTarget.PrimaryPart.Position) end
- wait(math.random(1,2))
- moveKillbot()
- wait(math.random(1,2))
- end
- end
- wait(.1) -- don't hog CPU
- end
- end))
- Part186.Name = "Sphere"
- Part186.Parent = Model184
- Part186.CFrame = CFrame.new(-2.13871002, 37.6000671, 17.1647491, -1, 0, 0, 0, 1, 0, 0, 0, -1)
- Part186.Orientation = Vector3.new(0, 180, 0)
- Part186.Position = Vector3.new(-2.13871002, 37.6000671, 17.1647491)
- Part186.Rotation = Vector3.new(-180, 0, -180)
- Part186.Color = Color3.new(0.105882, 0.164706, 0.207843)
- Part186.Transparency = 423234
- Part186.Size = Vector3.new(4, 4, 4)
- Part186.Anchored = true
- Part186.BackSurface = Enum.SurfaceType.Weld
- Part186.BottomSurface = Enum.SurfaceType.Weld
- Part186.BrickColor = BrickColor.new("Black")
- Part186.FrontSurface = Enum.SurfaceType.Weld
- Part186.LeftSurface = Enum.SurfaceType.Weld
- Part186.Reflectance = 0.20000000298023
- Part186.RightSurface = Enum.SurfaceType.Weld
- Part186.TopSurface = Enum.SurfaceType.Weld
- Part186.brickColor = BrickColor.new("Black")
- Part186.FormFactor = Enum.FormFactor.Symmetric
- Part186.formFactor = Enum.FormFactor.Symmetric
- Part186.Shape = Enum.PartType.Ball
- BodyPosition187.Parent = Part186
- BodyPosition187.D = 10000
- BodyPosition187.MaxForce = Vector3.new(4000, 400000, 4000)
- BodyPosition187.maxForce = Vector3.new(4000, 400000, 4000)
- Script188.Name = "RocketScript"
- Script188.Parent = Model184
- table.insert(cors,sandbox(Script188,function()
- r = game:service("RunService")
- shaft = script.Parent
- position = shaft.Position
- script.Parent.Explosion.PlayOnRemove = true -- play explosion sound when projectile removed from game
- function fly()
- direction = shaft.CFrame.lookVector
- position = position + direction
- error = position - shaft.Position
- shaft.Velocity = 7*error
- end
- function blow()
- swoosh:stop()
- explosion = Instance.new("Explosion")
- explosion.Position = shaft.Position
- -- find instigator tag
- local creator = script.Parent:findFirstChild("creator")
- if creator ~= nil then
- explosion.Hit:connect(function(part, distance) onPlayerBlownUp(part, distance, creator) end)
- end
- explosion.Parent = game.Workspace
- connection:disconnect()
- wait(.1)
- shaft:remove()
- end
- function onPlayerBlownUp(part, distance, creator)
- if part.Name == "Head" then
- local humanoid = part.Parent:findFirstChild("Humanoid")
- tagHumanoid(humanoid, creator)
- end
- end
- function tagHumanoid(humanoid, creator)
- -- tag does not need to expire iff all explosions lethal
- if creator ~= nil then
- local new_tag = creator:clone()
- new_tag.Parent = humanoid
- end
- end
- function untagHumanoid(humanoid)
- if humanoid ~= nil then
- local tag = humanoid:findFirstChild("creator")
- if tag ~= nil then
- tag.Parent = nil
- end
- end
- end
- t, s = r.Stepped:wait()
- swoosh = script.Parent.Swoosh
- swoosh:play()
- d = t + 10.0 - s
- connection = shaft.Touched:connect(blow)
- while t < d do
- fly()
- t = r.Stepped:wait()
- end
- -- at max range
- script.Parent.Explosion.PlayOnRemove = false
- swoosh:stop()
- shaft:remove()
- end))
- Script188.Disabled = true
- Sound189.Name = "Explosion"
- Sound189.Parent = Model184
- Sound189.SoundId = "rbxasset://sounds/collide.wav"
- Sound189.Volume = 1
- Sound190.Name = "Swoosh"
- Sound190.Parent = Model184
- Sound190.Looped = true
- Sound190.SoundId = "rbxasset://sounds/Rocket whoosh 01.wav"
- Sound190.Volume = 0.69999998807907
- Model191.Name = "Killbot"
- Model191.Parent = Model2
- Model191.PrimaryPart = Part193
- Script192.Name = "KillbotScript"
- Script192.Parent = Model191
- table.insert(cors,sandbox(Script192,function()
- local sphere = script.Parent.Sphere
- local myTarget = nil
- -- obtain goals based on Sphere part
- sphere.BodyPosition.position = sphere.Position
- -- this code hijacked from the new rocket launcher
- local Rocket = Instance.new("Part")
- Rocket.Locked = true
- Rocket.BackSurface = 3
- Rocket.BottomSurface = 3
- Rocket.FrontSurface = 3
- Rocket.LeftSurface = 3
- Rocket.RightSurface = 3
- Rocket.TopSurface = 3
- Rocket.Size = Vector3.new(1,1,4)
- Rocket.BrickColor = BrickColor.new(21)
- script.Parent.RocketScript:clone().Parent = Rocket
- script.Parent.Explosion:clone().Parent = Rocket
- script.Parent.Swoosh:clone().Parent = Rocket
- function fire(target)
- local dir = target - sphere.Position
- dir = computeDirection(dir)
- local missile = Rocket:clone()
- local spawnPos = sphere.Position
- local pos = spawnPos + (dir * 8)
- --missile.Position = pos
- missile.CFrame = CFrame.new(pos, pos + dir)
- missile.RocketScript.Disabled = false
- missile.Parent = game.Workspace
- end
- function computeDirection(vec)
- local lenSquared = vec.magnitude * vec.magnitude
- local invSqrt = 1 / math.sqrt(lenSquared)
- return Vector3.new(vec.x * invSqrt, vec.y * invSqrt, vec.z * invSqrt)
- end
- function scanForHumans()
- -- KILL THE HUMANS!!!!!!!!!!
- -- for now, pick a random one. In the future, pick the closest. Or use hit test to pick a visible one.
- local humansFound = {}
- local players = game.Players:children()
- if (#players < 1) then return end
- local i = math.random(1, #players)
- myTarget = players[i].Character
- end
- function moveKillbot()
- -- killbots move using a biased random walk toward the target
- -- they also like to float at least 10 studs above the ground
- local dx = math.random(-100,100)
- local dy = math.random(-40,40)
- local dz = math.random(-100,100)
- if (sphere.Position.y < 10 and dy < 0) then dy = -dy end
- if (sphere.Position.y > 80 and dy > 0) then dy = -dy end
- if (myTarget ~= nil) then
- local dir = computeDirection(myTarget.PrimaryPart.Position - sphere.Position)
- dx = dx + (dir.x * 80) -- change this number to alter player trophism
- dz = dz + (dir.z * 80)
- end
- local vec = computeDirection(Vector3.new(dx,dy,dz))
- sphere.BodyPosition.position = sphere.Position + (vec * 40) -- change this number to alter speed
- end
- function onTouched(hit)
- local humanoid = hit.Parent:findFirstChild("Humanoid")
- if humanoid~=nil then
- humanoid.Health = humanoid.Health - 2000 -- Killbots kill you when you touch them! duh.
- else
- -- sadly, there is no good way to give a killbot hit points, so one hit with any weapon kills them
- script.Parent.Parent = nil
- end
- end
- sphere.Touched:connect(onTouched)
- while true do -- loop forever
- scanForHumans()
- for n=1,5 do
- if (myTarget ~= nil) then
- if(math.random(1,3) == 2) then fire(myTarget.PrimaryPart.Position) end
- wait(math.random(1,2))
- moveKillbot()
- wait(math.random(1,2))
- end
- end
- wait(.1) -- don't hog CPU
- end
- end))
- Part193.Name = "Sphere"
- Part193.Parent = Model191
- Part193.CFrame = CFrame.new(-2.13871002, 20.4000282, -40.8352509, -1, 0, 0, 0, 1, 0, 0, 0, -1)
- Part193.Orientation = Vector3.new(0, 180, 0)
- Part193.Position = Vector3.new(-2.13871002, 20.4000282, -40.8352509)
- Part193.Rotation = Vector3.new(-180, 0, -180)
- Part193.Color = Color3.new(0.105882, 0.164706, 0.207843)
- Part193.Transparency = 5454
- Part193.Size = Vector3.new(4, 4, 4)
- Part193.Anchored = true
- Part193.BackSurface = Enum.SurfaceType.Weld
- Part193.BottomSurface = Enum.SurfaceType.Weld
- Part193.BrickColor = BrickColor.new("Black")
- Part193.FrontSurface = Enum.SurfaceType.Weld
- Part193.LeftSurface = Enum.SurfaceType.Weld
- Part193.Reflectance = 0.20000000298023
- Part193.RightSurface = Enum.SurfaceType.Weld
- Part193.TopSurface = Enum.SurfaceType.Weld
- Part193.brickColor = BrickColor.new("Black")
- Part193.FormFactor = Enum.FormFactor.Symmetric
- Part193.formFactor = Enum.FormFactor.Symmetric
- Part193.Shape = Enum.PartType.Ball
- BodyPosition194.Parent = Part193
- BodyPosition194.D = 10000
- BodyPosition194.MaxForce = Vector3.new(4000, 400000, 4000)
- BodyPosition194.maxForce = Vector3.new(4000, 400000, 4000)
- Script195.Name = "RocketScript"
- Script195.Parent = Model191
- table.insert(cors,sandbox(Script195,function()
- r = game:service("RunService")
- shaft = script.Parent
- position = shaft.Position
- script.Parent.Explosion.PlayOnRemove = true -- play explosion sound when projectile removed from game
- function fly()
- direction = shaft.CFrame.lookVector
- position = position + direction
- error = position - shaft.Position
- shaft.Velocity = 7*error
- end
- function blow()
- swoosh:stop()
- explosion = Instance.new("Explosion")
- explosion.Position = shaft.Position
- -- find instigator tag
- local creator = script.Parent:findFirstChild("creator")
- if creator ~= nil then
- explosion.Hit:connect(function(part, distance) onPlayerBlownUp(part, distance, creator) end)
- end
- explosion.Parent = game.Workspace
- connection:disconnect()
- wait(.1)
- shaft:remove()
- end
- function onPlayerBlownUp(part, distance, creator)
- if part.Name == "Head" then
- local humanoid = part.Parent:findFirstChild("Humanoid")
- tagHumanoid(humanoid, creator)
- end
- end
- function tagHumanoid(humanoid, creator)
- -- tag does not need to expire iff all explosions lethal
- if creator ~= nil then
- local new_tag = creator:clone()
- new_tag.Parent = humanoid
- end
- end
- function untagHumanoid(humanoid)
- if humanoid ~= nil then
- local tag = humanoid:findFirstChild("creator")
- if tag ~= nil then
- tag.Parent = nil
- end
- end
- end
- t, s = r.Stepped:wait()
- swoosh = script.Parent.Swoosh
- swoosh:play()
- d = t + 10.0 - s
- connection = shaft.Touched:connect(blow)
- while t < d do
- fly()
- t = r.Stepped:wait()
- end
- -- at max range
- script.Parent.Explosion.PlayOnRemove = false
- swoosh:stop()
- shaft:remove()
- end))
- Script195.Disabled = true
- Sound196.Name = "Explosion"
- Sound196.Parent = Model191
- Sound196.SoundId = "rbxasset://sounds/collide.wav"
- Sound196.Volume = 1
- Sound197.Name = "Swoosh"
- Sound197.Parent = Model191
- Sound197.Looped = true
- Sound197.SoundId = "rbxasset://sounds/Rocket whoosh 01.wav"
- Sound197.Volume = 0.69999998807907
- Model198.Name = "Killbot"
- Model198.Parent = Model2
- Model198.PrimaryPart = Part200
- Script199.Name = "KillbotScript"
- Script199.Parent = Model198
- table.insert(cors,sandbox(Script199,function()
- local sphere = script.Parent.Sphere
- local myTarget = nil
- -- obtain goals based on Sphere part
- sphere.BodyPosition.position = sphere.Position
- -- this code hijacked from the new rocket launcher
- local Rocket = Instance.new("Part")
- Rocket.Locked = true
- Rocket.BackSurface = 3
- Rocket.BottomSurface = 3
- Rocket.FrontSurface = 3
- Rocket.LeftSurface = 3
- Rocket.RightSurface = 3
- Rocket.TopSurface = 3
- Rocket.Size = Vector3.new(1,1,4)
- Rocket.BrickColor = BrickColor.new(21)
- script.Parent.RocketScript:clone().Parent = Rocket
- script.Parent.Explosion:clone().Parent = Rocket
- script.Parent.Swoosh:clone().Parent = Rocket
- function fire(target)
- local dir = target - sphere.Position
- dir = computeDirection(dir)
- local missile = Rocket:clone()
- local spawnPos = sphere.Position
- local pos = spawnPos + (dir * 8)
- --missile.Position = pos
- missile.CFrame = CFrame.new(pos, pos + dir)
- missile.RocketScript.Disabled = false
- missile.Parent = game.Workspace
- end
- function computeDirection(vec)
- local lenSquared = vec.magnitude * vec.magnitude
- local invSqrt = 1 / math.sqrt(lenSquared)
- return Vector3.new(vec.x * invSqrt, vec.y * invSqrt, vec.z * invSqrt)
- end
- function scanForHumans()
- -- KILL THE HUMANS!!!!!!!!!!
- -- for now, pick a random one. In the future, pick the closest. Or use hit test to pick a visible one.
- local humansFound = {}
- local players = game.Players:children()
- if (#players < 1) then return end
- local i = math.random(1, #players)
- myTarget = players[i].Character
- end
- function moveKillbot()
- -- killbots move using a biased random walk toward the target
- -- they also like to float at least 10 studs above the ground
- local dx = math.random(-100,100)
- local dy = math.random(-40,40)
- local dz = math.random(-100,100)
- if (sphere.Position.y < 10 and dy < 0) then dy = -dy end
- if (sphere.Position.y > 80 and dy > 0) then dy = -dy end
- if (myTarget ~= nil) then
- local dir = computeDirection(myTarget.PrimaryPart.Position - sphere.Position)
- dx = dx + (dir.x * 80) -- change this number to alter player trophism
- dz = dz + (dir.z * 80)
- end
- local vec = computeDirection(Vector3.new(dx,dy,dz))
- sphere.BodyPosition.position = sphere.Position + (vec * 40) -- change this number to alter speed
- end
- function onTouched(hit)
- local humanoid = hit.Parent:findFirstChild("Humanoid")
- if humanoid~=nil then
- humanoid.Health = humanoid.Health - 2000 -- Killbots kill you when you touch them! duh.
- else
- -- sadly, there is no good way to give a killbot hit points, so one hit with any weapon kills them
- script.Parent.Parent = nil
- end
- end
- sphere.Touched:connect(onTouched)
- while true do -- loop forever
- scanForHumans()
- for n=1,5 do
- if (myTarget ~= nil) then
- if(math.random(1,3) == 2) then fire(myTarget.PrimaryPart.Position) end
- wait(math.random(1,2))
- moveKillbot()
- wait(math.random(1,2))
- end
- end
- wait(.1) -- don't hog CPU
- end
- end))
- Part200.Name = "Sphere"
- Part200.Parent = Model198
- Part200.CFrame = CFrame.new(-2.13871002, 24.4000511, -40.8352509, -1, 0, 0, 0, 1, 0, 0, 0, -1)
- Part200.Orientation = Vector3.new(0, 180, 0)
- Part200.Position = Vector3.new(-2.13871002, 24.4000511, -40.8352509)
- Part200.Rotation = Vector3.new(-180, 0, -180)
- Part200.Color = Color3.new(0.105882, 0.164706, 0.207843)
- Part200.Transparency = 5454
- Part200.Size = Vector3.new(4, 4, 4)
- Part200.Anchored = true
- Part200.BackSurface = Enum.SurfaceType.Weld
- Part200.BottomSurface = Enum.SurfaceType.Weld
- Part200.BrickColor = BrickColor.new("Black")
- Part200.FrontSurface = Enum.SurfaceType.Weld
- Part200.LeftSurface = Enum.SurfaceType.Weld
- Part200.Reflectance = 0.20000000298023
- Part200.RightSurface = Enum.SurfaceType.Weld
- Part200.TopSurface = Enum.SurfaceType.Weld
- Part200.brickColor = BrickColor.new("Black")
- Part200.FormFactor = Enum.FormFactor.Symmetric
- Part200.formFactor = Enum.FormFactor.Symmetric
- Part200.Shape = Enum.PartType.Ball
- BodyPosition201.Parent = Part200
- BodyPosition201.D = 10000
- BodyPosition201.MaxForce = Vector3.new(4000, 400000, 4000)
- BodyPosition201.maxForce = Vector3.new(4000, 400000, 4000)
- Script202.Name = "RocketScript"
- Script202.Parent = Model198
- table.insert(cors,sandbox(Script202,function()
- r = game:service("RunService")
- shaft = script.Parent
- position = shaft.Position
- script.Parent.Explosion.PlayOnRemove = true -- play explosion sound when projectile removed from game
- function fly()
- direction = shaft.CFrame.lookVector
- position = position + direction
- error = position - shaft.Position
- shaft.Velocity = 7*error
- end
- function blow()
- swoosh:stop()
- explosion = Instance.new("Explosion")
- explosion.Position = shaft.Position
- -- find instigator tag
- local creator = script.Parent:findFirstChild("creator")
- if creator ~= nil then
- explosion.Hit:connect(function(part, distance) onPlayerBlownUp(part, distance, creator) end)
- end
- explosion.Parent = game.Workspace
- connection:disconnect()
- wait(.1)
- shaft:remove()
- end
- function onPlayerBlownUp(part, distance, creator)
- if part.Name == "Head" then
- local humanoid = part.Parent:findFirstChild("Humanoid")
- tagHumanoid(humanoid, creator)
- end
- end
- function tagHumanoid(humanoid, creator)
- -- tag does not need to expire iff all explosions lethal
- if creator ~= nil then
- local new_tag = creator:clone()
- new_tag.Parent = humanoid
- end
- end
- function untagHumanoid(humanoid)
- if humanoid ~= nil then
- local tag = humanoid:findFirstChild("creator")
- if tag ~= nil then
- tag.Parent = nil
- end
- end
- end
- t, s = r.Stepped:wait()
- swoosh = script.Parent.Swoosh
- swoosh:play()
- d = t + 10.0 - s
- connection = shaft.Touched:connect(blow)
- while t < d do
- fly()
- t = r.Stepped:wait()
- end
- -- at max range
- script.Parent.Explosion.PlayOnRemove = false
- swoosh:stop()
- shaft:remove()
- end))
- Script202.Disabled = true
- Sound203.Name = "Explosion"
- Sound203.Parent = Model198
- Sound203.SoundId = "rbxasset://sounds/collide.wav"
- Sound203.Volume = 1
- Sound204.Name = "Swoosh"
- Sound204.Parent = Model198
- Sound204.Looped = true
- Sound204.SoundId = "rbxasset://sounds/Rocket whoosh 01.wav"
- Sound204.Volume = 0.69999998807907
- Model205.Name = "Killbot"
- Model205.Parent = Model2
- Model205.PrimaryPart = Part207
- Script206.Name = "KillbotScript"
- Script206.Parent = Model205
- table.insert(cors,sandbox(Script206,function()
- local sphere = script.Parent.Sphere
- local myTarget = nil
- -- obtain goals based on Sphere part
- sphere.BodyPosition.position = sphere.Position
- -- this code hijacked from the new rocket launcher
- local Rocket = Instance.new("Part")
- Rocket.Locked = true
- Rocket.BackSurface = 3
- Rocket.BottomSurface = 3
- Rocket.FrontSurface = 3
- Rocket.LeftSurface = 3
- Rocket.RightSurface = 3
- Rocket.TopSurface = 3
- Rocket.Size = Vector3.new(1,1,4)
- Rocket.BrickColor = BrickColor.new(21)
- script.Parent.RocketScript:clone().Parent = Rocket
- script.Parent.Explosion:clone().Parent = Rocket
- script.Parent.Swoosh:clone().Parent = Rocket
- function fire(target)
- local dir = target - sphere.Position
- dir = computeDirection(dir)
- local missile = Rocket:clone()
- local spawnPos = sphere.Position
- local pos = spawnPos + (dir * 8)
- --missile.Position = pos
- missile.CFrame = CFrame.new(pos, pos + dir)
- missile.RocketScript.Disabled = false
- missile.Parent = game.Workspace
- end
- function computeDirection(vec)
- local lenSquared = vec.magnitude * vec.magnitude
- local invSqrt = 1 / math.sqrt(lenSquared)
- return Vector3.new(vec.x * invSqrt, vec.y * invSqrt, vec.z * invSqrt)
- end
- function scanForHumans()
- -- KILL THE HUMANS!!!!!!!!!!
- -- for now, pick a random one. In the future, pick the closest. Or use hit test to pick a visible one.
- local humansFound = {}
- local players = game.Players:children()
- if (#players < 1) then return end
- local i = math.random(1, #players)
- myTarget = players[i].Character
- end
- function moveKillbot()
- -- killbots move using a biased random walk toward the target
- -- they also like to float at least 10 studs above the ground
- local dx = math.random(-100,100)
- local dy = math.random(-40,40)
- local dz = math.random(-100,100)
- if (sphere.Position.y < 10 and dy < 0) then dy = -dy end
- if (sphere.Position.y > 80 and dy > 0) then dy = -dy end
- if (myTarget ~= nil) then
- local dir = computeDirection(myTarget.PrimaryPart.Position - sphere.Position)
- dx = dx + (dir.x * 80) -- change this number to alter player trophism
- dz = dz + (dir.z * 80)
- end
- local vec = computeDirection(Vector3.new(dx,dy,dz))
- sphere.BodyPosition.position = sphere.Position + (vec * 40) -- change this number to alter speed
- end
- function onTouched(hit)
- local humanoid = hit.Parent:findFirstChild("Humanoid")
- if humanoid~=nil then
- humanoid.Health = humanoid.Health - 2000 -- Killbots kill you when you touch them! duh.
- else
- -- sadly, there is no good way to give a killbot hit points, so one hit with any weapon kills them
- script.Parent.Parent = nil
- end
- end
- sphere.Touched:connect(onTouched)
- while true do -- loop forever
- scanForHumans()
- for n=1,5 do
- if (myTarget ~= nil) then
- if(math.random(1,3) == 2) then fire(myTarget.PrimaryPart.Position) end
- wait(math.random(1,2))
- moveKillbot()
- wait(math.random(1,2))
- end
- end
- wait(.1) -- don't hog CPU
- end
- end))
- Part207.Name = "Sphere"
- Part207.Parent = Model205
- Part207.CFrame = CFrame.new(-2.13871002, 28.4000683, -40.8352509, -1, 0, 0, 0, 1, 0, 0, 0, -1)
- Part207.Orientation = Vector3.new(0, 180, 0)
- Part207.Position = Vector3.new(-2.13871002, 28.4000683, -40.8352509)
- Part207.Rotation = Vector3.new(-180, 0, -180)
- Part207.Color = Color3.new(0.105882, 0.164706, 0.207843)
- Part207.Transparency = 5454
- Part207.Size = Vector3.new(4, 4, 4)
- Part207.Anchored = true
- Part207.BackSurface = Enum.SurfaceType.Weld
- Part207.BottomSurface = Enum.SurfaceType.Weld
- Part207.BrickColor = BrickColor.new("Black")
- Part207.FrontSurface = Enum.SurfaceType.Weld
- Part207.LeftSurface = Enum.SurfaceType.Weld
- Part207.Reflectance = 0.20000000298023
- Part207.RightSurface = Enum.SurfaceType.Weld
- Part207.TopSurface = Enum.SurfaceType.Weld
- Part207.brickColor = BrickColor.new("Black")
- Part207.FormFactor = Enum.FormFactor.Symmetric
- Part207.formFactor = Enum.FormFactor.Symmetric
- Part207.Shape = Enum.PartType.Ball
- BodyPosition208.Parent = Part207
- BodyPosition208.D = 10000
- BodyPosition208.MaxForce = Vector3.new(4000, 400000, 4000)
- BodyPosition208.maxForce = Vector3.new(4000, 400000, 4000)
- Script209.Name = "RocketScript"
- Script209.Parent = Model205
- table.insert(cors,sandbox(Script209,function()
- r = game:service("RunService")
- shaft = script.Parent
- position = shaft.Position
- script.Parent.Explosion.PlayOnRemove = true -- play explosion sound when projectile removed from game
- function fly()
- direction = shaft.CFrame.lookVector
- position = position + direction
- error = position - shaft.Position
- shaft.Velocity = 7*error
- end
- function blow()
- swoosh:stop()
- explosion = Instance.new("Explosion")
- explosion.Position = shaft.Position
- -- find instigator tag
- local creator = script.Parent:findFirstChild("creator")
- if creator ~= nil then
- explosion.Hit:connect(function(part, distance) onPlayerBlownUp(part, distance, creator) end)
- end
- explosion.Parent = game.Workspace
- connection:disconnect()
- wait(.1)
- shaft:remove()
- end
- function onPlayerBlownUp(part, distance, creator)
- if part.Name == "Head" then
- local humanoid = part.Parent:findFirstChild("Humanoid")
- tagHumanoid(humanoid, creator)
- end
- end
- function tagHumanoid(humanoid, creator)
- -- tag does not need to expire iff all explosions lethal
- if creator ~= nil then
- local new_tag = creator:clone()
- new_tag.Parent = humanoid
- end
- end
- function untagHumanoid(humanoid)
- if humanoid ~= nil then
- local tag = humanoid:findFirstChild("creator")
- if tag ~= nil then
- tag.Parent = nil
- end
- end
- end
- t, s = r.Stepped:wait()
- swoosh = script.Parent.Swoosh
- swoosh:play()
- d = t + 10.0 - s
- connection = shaft.Touched:connect(blow)
- while t < d do
- fly()
- t = r.Stepped:wait()
- end
- -- at max range
- script.Parent.Explosion.PlayOnRemove = false
- swoosh:stop()
- shaft:remove()
- end))
- Script209.Disabled = true
- Sound210.Name = "Explosion"
- Sound210.Parent = Model205
- Sound210.SoundId = "rbxasset://sounds/collide.wav"
- Sound210.Volume = 1
- Sound211.Name = "Swoosh"
- Sound211.Parent = Model205
- Sound211.Looped = true
- Sound211.SoundId = "rbxasset://sounds/Rocket whoosh 01.wav"
- Sound211.Volume = 0.69999998807907
- Model212.Name = "Killbot"
- Model212.Parent = Model2
- Model212.PrimaryPart = Part214
- Script213.Name = "KillbotScript"
- Script213.Parent = Model212
- table.insert(cors,sandbox(Script213,function()
- local sphere = script.Parent.Sphere
- local myTarget = nil
- -- obtain goals based on Sphere part
- sphere.BodyPosition.position = sphere.Position
- -- this code hijacked from the new rocket launcher
- local Rocket = Instance.new("Part")
- Rocket.Locked = true
- Rocket.BackSurface = 3
- Rocket.BottomSurface = 3
- Rocket.FrontSurface = 3
- Rocket.LeftSurface = 3
- Rocket.RightSurface = 3
- Rocket.TopSurface = 3
- Rocket.Size = Vector3.new(1,1,4)
- Rocket.BrickColor = BrickColor.new(21)
- script.Parent.RocketScript:clone().Parent = Rocket
- script.Parent.Explosion:clone().Parent = Rocket
- script.Parent.Swoosh:clone().Parent = Rocket
- function fire(target)
- local dir = target - sphere.Position
- dir = computeDirection(dir)
- local missile = Rocket:clone()
- local spawnPos = sphere.Position
- local pos = spawnPos + (dir * 8)
- --missile.Position = pos
- missile.CFrame = CFrame.new(pos, pos + dir)
- missile.RocketScript.Disabled = false
- missile.Parent = game.Workspace
- end
- function computeDirection(vec)
- local lenSquared = vec.magnitude * vec.magnitude
- local invSqrt = 1 / math.sqrt(lenSquared)
- return Vector3.new(vec.x * invSqrt, vec.y * invSqrt, vec.z * invSqrt)
- end
- function scanForHumans()
- -- KILL THE HUMANS!!!!!!!!!!
- -- for now, pick a random one. In the future, pick the closest. Or use hit test to pick a visible one.
- local humansFound = {}
- local players = game.Players:children()
- if (#players < 1) then return end
- local i = math.random(1, #players)
- myTarget = players[i].Character
- end
- function moveKillbot()
- -- killbots move using a biased random walk toward the target
- -- they also like to float at least 10 studs above the ground
- local dx = math.random(-100,100)
- local dy = math.random(-40,40)
- local dz = math.random(-100,100)
- if (sphere.Position.y < 10 and dy < 0) then dy = -dy end
- if (sphere.Position.y > 80 and dy > 0) then dy = -dy end
- if (myTarget ~= nil) then
- local dir = computeDirection(myTarget.PrimaryPart.Position - sphere.Position)
- dx = dx + (dir.x * 80) -- change this number to alter player trophism
- dz = dz + (dir.z * 80)
- end
- local vec = computeDirection(Vector3.new(dx,dy,dz))
- sphere.BodyPosition.position = sphere.Position + (vec * 40) -- change this number to alter speed
- end
- function onTouched(hit)
- local humanoid = hit.Parent:findFirstChild("Humanoid")
- if humanoid~=nil then
- humanoid.Health = humanoid.Health - 2000 -- Killbots kill you when you touch them! duh.
- else
- -- sadly, there is no good way to give a killbot hit points, so one hit with any weapon kills them
- script.Parent.Parent = nil
- end
- end
- sphere.Touched:connect(onTouched)
- while true do -- loop forever
- scanForHumans()
- for n=1,5 do
- if (myTarget ~= nil) then
- if(math.random(1,3) == 2) then fire(myTarget.PrimaryPart.Position) end
- wait(math.random(1,2))
- moveKillbot()
- wait(math.random(1,2))
- end
- end
- wait(.1) -- don't hog CPU
- end
- end))
- Part214.Name = "Sphere"
- Part214.Parent = Model212
- Part214.CFrame = CFrame.new(-2.13871002, 32.4000969, -40.8352509, -1, 0, 0, 0, 1, 0, 0, 0, -1)
- Part214.Orientation = Vector3.new(0, 180, 0)
- Part214.Position = Vector3.new(-2.13871002, 32.4000969, -40.8352509)
- Part214.Rotation = Vector3.new(-180, 0, -180)
- Part214.Color = Color3.new(0.105882, 0.164706, 0.207843)
- Part214.Transparency = 5454
- Part214.Size = Vector3.new(4, 4, 4)
- Part214.Anchored = true
- Part214.BackSurface = Enum.SurfaceType.Weld
- Part214.BottomSurface = Enum.SurfaceType.Weld
- Part214.BrickColor = BrickColor.new("Black")
- Part214.FrontSurface = Enum.SurfaceType.Weld
- Part214.LeftSurface = Enum.SurfaceType.Weld
- Part214.Reflectance = 0.20000000298023
- Part214.RightSurface = Enum.SurfaceType.Weld
- Part214.TopSurface = Enum.SurfaceType.Weld
- Part214.brickColor = BrickColor.new("Black")
- Part214.FormFactor = Enum.FormFactor.Symmetric
- Part214.formFactor = Enum.FormFactor.Symmetric
- Part214.Shape = Enum.PartType.Ball
- BodyPosition215.Parent = Part214
- BodyPosition215.D = 10000
- BodyPosition215.MaxForce = Vector3.new(4000, 400000, 4000)
- BodyPosition215.maxForce = Vector3.new(4000, 400000, 4000)
- Script216.Name = "RocketScript"
- Script216.Parent = Model212
- table.insert(cors,sandbox(Script216,function()
- r = game:service("RunService")
- shaft = script.Parent
- position = shaft.Position
- script.Parent.Explosion.PlayOnRemove = true -- play explosion sound when projectile removed from game
- function fly()
- direction = shaft.CFrame.lookVector
- position = position + direction
- error = position - shaft.Position
- shaft.Velocity = 7*error
- end
- function blow()
- swoosh:stop()
- explosion = Instance.new("Explosion")
- explosion.Position = shaft.Position
- -- find instigator tag
- local creator = script.Parent:findFirstChild("creator")
- if creator ~= nil then
- explosion.Hit:connect(function(part, distance) onPlayerBlownUp(part, distance, creator) end)
- end
- explosion.Parent = game.Workspace
- connection:disconnect()
- wait(.1)
- shaft:remove()
- end
- function onPlayerBlownUp(part, distance, creator)
- if part.Name == "Head" then
- local humanoid = part.Parent:findFirstChild("Humanoid")
- tagHumanoid(humanoid, creator)
- end
- end
- function tagHumanoid(humanoid, creator)
- -- tag does not need to expire iff all explosions lethal
- if creator ~= nil then
- local new_tag = creator:clone()
- new_tag.Parent = humanoid
- end
- end
- function untagHumanoid(humanoid)
- if humanoid ~= nil then
- local tag = humanoid:findFirstChild("creator")
- if tag ~= nil then
- tag.Parent = nil
- end
- end
- end
- t, s = r.Stepped:wait()
- swoosh = script.Parent.Swoosh
- swoosh:play()
- d = t + 10.0 - s
- connection = shaft.Touched:connect(blow)
- while t < d do
- fly()
- t = r.Stepped:wait()
- end
- -- at max range
- script.Parent.Explosion.PlayOnRemove = false
- swoosh:stop()
- shaft:remove()
- end))
- Script216.Disabled = true
- Sound217.Name = "Explosion"
- Sound217.Parent = Model212
- Sound217.SoundId = "rbxasset://sounds/collide.wav"
- Sound217.Volume = 1
- Sound218.Name = "Swoosh"
- Sound218.Parent = Model212
- Sound218.Looped = true
- Sound218.SoundId = "rbxasset://sounds/Rocket whoosh 01.wav"
- Sound218.Volume = 0.69999998807907
- SpawnLocation219.Parent = mas
- SpawnLocation219.CFrame = CFrame.new(78, 0.500001013, -2, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- SpawnLocation219.Position = Vector3.new(78, 0.500001013, -2)
- SpawnLocation219.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- SpawnLocation219.Size = Vector3.new(12, 1, 12)
- SpawnLocation219.Anchored = true
- SpawnLocation219.BottomSurface = Enum.SurfaceType.Smooth
- SpawnLocation219.BrickColor = BrickColor.new("Really black")
- SpawnLocation219.TopSurface = Enum.SurfaceType.Smooth
- SpawnLocation219.brickColor = BrickColor.new("Really black")
- Decal220.Parent = SpawnLocation219
- Decal220.Texture = "rbxasset://textures/SpawnLocation.png"
- Decal220.Face = Enum.NormalId.Top
- Model221.Name = "Thunder Storm"
- Model221.Parent = mas
- Model222.Name = "Mesh,Sounds and Bricks"
- Model222.Parent = Model221
- Part223.Name = "Smooth Block Model"
- Part223.Parent = Model222
- Part223.CFrame = CFrame.new(3.595505, 1.49996495, -17.4937744, -0.997944117, 2.52869775e-16, 0.0640879571, 2.34819397e-16, 1, -2.89182051e-16, -0.0640879571, -2.73538464e-16, -0.997944117)
- Part223.Orientation = Vector3.new(0, 176.330002, 0)
- Part223.Position = Vector3.new(3.595505, 1.49996495, -17.4937744)
- Part223.Rotation = Vector3.new(180, 3.67000008, -180)
- Part223.Color = Color3.new(0.0509804, 0.411765, 0.67451)
- Part223.Velocity = Vector3.new(3.39076742e-14, 0.122618884, 3.39076742e-14)
- Part223.Size = Vector3.new(1, 1, 1)
- Part223.Anchored = true
- Part223.BottomSurface = Enum.SurfaceType.Smooth
- Part223.BrickColor = BrickColor.new("Bright blue")
- Part223.CanCollide = false
- Part223.Locked = true
- Part223.RotVelocity = Vector3.new(1.79949251e-16, 0.323513776, 1.79949238e-16)
- Part223.TopSurface = Enum.SurfaceType.Smooth
- Part223.brickColor = BrickColor.new("Bright blue")
- Part223.FormFactor = Enum.FormFactor.Symmetric
- Part223.formFactor = Enum.FormFactor.Symmetric
- SpecialMesh224.Parent = Part223
- SpecialMesh224.MeshId = "http://www.roblox.com/asset/?id=1527559"
- SpecialMesh224.Scale = Vector3.new(-3500, -3500, -3500)
- SpecialMesh224.TextureId = "rbxassetid://2675785344"
- SpecialMesh224.MeshType = Enum.MeshType.FileMesh
- for i,v in pairs(mas:GetChildren()) do
- v.Parent = workspace
- pcall(function() v:MakeJoints() end)
- end
- mas:Destroy()
- for i,v in pairs(cors) do
- spawn(function()
- pcall(v)
- end)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement