Loading model...
by Brody Stuck · 8/10/2026
Lua Script
| 1 | -- Generated with StudForge.org | AI-powered 3D models for Roblox |
| 2 | -- Model: Castle |
| 3 | |
| 4 | local MS = game:GetService("MaterialService") |
| 5 | |
| 6 | local ok, roots = pcall(game.GetObjects, game, "rbxassetid://13386676607") |
| 7 | if not ok then return warn(roots) end |
| 8 | |
| 9 | local tmp = Instance.new("Folder") |
| 10 | for _, r in ipairs(roots) do r.Parent = tmp end |
| 11 | |
| 12 | for _, d in ipairs(tmp:GetDescendants()) do |
| 13 | if d:IsA("MaterialVariant") then |
| 14 | d.Parent = MS |
| 15 | end |
| 16 | end |
| 17 | tmp:Destroy() |
| 18 | |
| 19 | local model = Instance.new("Model") |
| 20 | model.Name = "Castle" |
| 21 | model.Parent = workspace |
| 22 | |
| 23 | local variants = { |
| 24 | ["Brick yellow"] = "2022 Stud", |
| 25 | ["Bright blue"] = "2022 Universal", |
| 26 | ["Dark green"] = "2022 Stud", |
| 27 | ["Earth green"] = "2022 Stud", |
| 28 | ["Electric blue"] = "2022 Stud", |
| 29 | ["Gold"] = "2022 Stud", |
| 30 | ["Medium stone grey"] = "2022 Inlet", |
| 31 | ["Reddish brown"] = "2022 Small Stud", |
| 32 | } |
| 33 | do |
| 34 | local p = Instance.new("Part") |
| 35 | p.Name = "GrassBase" |
| 36 | p.Size = Vector3.new(40, 1, 34) |
| 37 | p.CFrame = CFrame.new(0, -0.54, 0) |
| 38 | p.BrickColor = BrickColor.new("Earth green") |
| 39 | p.Material = Enum.Material.Glacier |
| 40 | p.MaterialVariant = "2022 Stud" |
| 41 | p.Anchored = true |
| 42 | p.Parent = model |
| 43 | end |
| 44 | do |
| 45 | local p = Instance.new("Part") |
| 46 | p.Name = "MoatWater" |
| 47 | p.Size = Vector3.new(40, 1.1, 8) |
| 48 | p.CFrame = CFrame.new(0.04, -0.4, -14) |
| 49 | p.BrickColor = BrickColor.new("Electric blue") |
| 50 | p.Material = Enum.Material.Glacier |
| 51 | p.MaterialVariant = "2022 Stud" |
| 52 | p.Anchored = true |
| 53 | p.Parent = model |
| 54 | end |
| 55 | do |
| 56 | local p = Instance.new("Part") |
| 57 | p.Name = "StoneBridge" |
| 58 | p.Size = Vector3.new(6, 1, 10) |
| 59 | p.CFrame = CFrame.new(0, 0, -14) |
| 60 | p.BrickColor = BrickColor.new("Brick yellow") |
| 61 | p.Material = Enum.Material.Glacier |
| 62 | p.MaterialVariant = "2022 Stud" |
| 63 | p.Anchored = true |
| 64 | p.Parent = model |
| 65 | end |
| 66 | do |
| 67 | local p = Instance.new("Part") |
| 68 | p.Name = "WallLeft" |
| 69 | p.Size = Vector3.new(2, 6, 20) |
| 70 | p.CFrame = CFrame.new(-14.08, 3.08, 2) |
| 71 | p.BrickColor = BrickColor.new("Medium stone grey") |
| 72 | p.Material = Enum.Material.Glacier |
| 73 | p.MaterialVariant = "2022 Inlet" |
| 74 | p.Anchored = true |
| 75 | p.Parent = model |
| 76 | end |
| 77 | do |
| 78 | local p = Instance.new("Part") |
| 79 | p.Name = "WallRight" |
| 80 | p.Size = Vector3.new(2, 6, 20) |
| 81 | p.CFrame = CFrame.new(14.08, 3.08, 2) |
| 82 | p.BrickColor = BrickColor.new("Medium stone grey") |
| 83 | p.Material = Enum.Material.Glacier |
| 84 | p.MaterialVariant = "2022 Inlet" |
| 85 | p.Anchored = true |
| 86 | p.Parent = model |
| 87 | end |
| 88 | do |
| 89 | local p = Instance.new("Part") |
| 90 | p.Name = "WallBack" |
| 91 | p.Size = Vector3.new(30, 6, 2) |
| 92 | p.CFrame = CFrame.new(0, 3.04, 12) |
| 93 | p.BrickColor = BrickColor.new("Medium stone grey") |
| 94 | p.Material = Enum.Material.Glacier |
| 95 | p.MaterialVariant = "2022 Inlet" |
| 96 | p.Anchored = true |
| 97 | p.Parent = model |
| 98 | end |
| 99 | do |
| 100 | local p = Instance.new("Part") |
| 101 | p.Name = "WallFrontL" |
| 102 | p.Size = Vector3.new(8, 6, 2) |
| 103 | p.CFrame = CFrame.new(-8.92, 3, -8) |
| 104 | p.BrickColor = BrickColor.new("Medium stone grey") |
| 105 | p.Material = Enum.Material.Glacier |
| 106 | p.MaterialVariant = "2022 Inlet" |
| 107 | p.Anchored = true |
| 108 | p.Parent = model |
| 109 | end |
| 110 | do |
| 111 | local p = Instance.new("Part") |
| 112 | p.Name = "WallFrontR" |
| 113 | p.Size = Vector3.new(8, 6, 2) |
| 114 | p.CFrame = CFrame.new(8.92, 3, -8) |
| 115 | p.BrickColor = BrickColor.new("Medium stone grey") |
| 116 | p.Material = Enum.Material.Glacier |
| 117 | p.MaterialVariant = "2022 Inlet" |
| 118 | p.Anchored = true |
| 119 | p.Parent = model |
| 120 | end |
| 121 | do |
| 122 | local p = Instance.new("Part") |
| 123 | p.Name = "CrenL_0" |
| 124 | p.Size = Vector3.new(1.5, 1, 2) |
| 125 | p.CFrame = CFrame.new(-12, 6.54, -7.96) |
| 126 | p.BrickColor = BrickColor.new("Medium stone grey") |
| 127 | p.Material = Enum.Material.Glacier |
| 128 | p.MaterialVariant = "2022 Inlet" |
| 129 | p.Anchored = true |
| 130 | p.Parent = model |
| 131 | end |
| 132 | do |
| 133 | local p = Instance.new("Part") |
| 134 | p.Name = "CrenL_1" |
| 135 | p.Size = Vector3.new(1.5, 1, 2) |
| 136 | p.CFrame = CFrame.new(-9, 6.54, -7.96) |
| 137 | p.BrickColor = BrickColor.new("Medium stone grey") |
| 138 | p.Material = Enum.Material.Glacier |
| 139 | p.MaterialVariant = "2022 Inlet" |
| 140 | p.Anchored = true |
| 141 | p.Parent = model |
| 142 | end |
| 143 | do |
| 144 | local p = Instance.new("Part") |
| 145 | p.Name = "CrenL_2" |
| 146 | p.Size = Vector3.new(1.5, 1, 2) |
| 147 | p.CFrame = CFrame.new(-6, 6.54, -7.96) |
| 148 | p.BrickColor = BrickColor.new("Medium stone grey") |
| 149 | p.Material = Enum.Material.Glacier |
| 150 | p.MaterialVariant = "2022 Inlet" |
| 151 | p.Anchored = true |
| 152 | p.Parent = model |
| 153 | end |
| 154 | do |
| 155 | local p = Instance.new("Part") |
| 156 | p.Name = "CrenR_0" |
| 157 | p.Size = Vector3.new(1.5, 1, 2) |
| 158 | p.CFrame = CFrame.new(6, 6.54, -7.96) |
| 159 | p.BrickColor = BrickColor.new("Medium stone grey") |
| 160 | p.Material = Enum.Material.Glacier |
| 161 | p.MaterialVariant = "2022 Inlet" |
| 162 | p.Anchored = true |
| 163 | p.Parent = model |
| 164 | end |
| 165 | do |
| 166 | local p = Instance.new("Part") |
| 167 | p.Name = "CrenR_1" |
| 168 | p.Size = Vector3.new(1.5, 1, 2) |
| 169 | p.CFrame = CFrame.new(9, 6.54, -7.96) |
| 170 | p.BrickColor = BrickColor.new("Medium stone grey") |
| 171 | p.Material = Enum.Material.Glacier |
| 172 | p.MaterialVariant = "2022 Inlet" |
| 173 | p.Anchored = true |
| 174 | p.Parent = model |
| 175 | end |
| 176 | do |
| 177 | local p = Instance.new("Part") |
| 178 | p.Name = "CrenR_2" |
| 179 | p.Size = Vector3.new(1.5, 1, 2) |
| 180 | p.CFrame = CFrame.new(12, 6.54, -7.96) |
| 181 | p.BrickColor = BrickColor.new("Medium stone grey") |
| 182 | p.Material = Enum.Material.Glacier |
| 183 | p.MaterialVariant = "2022 Inlet" |
| 184 | p.Anchored = true |
| 185 | p.Parent = model |
| 186 | end |
| 187 | do |
| 188 | local p = Instance.new("Part") |
| 189 | p.Shape = Enum.PartType.Cylinder |
| 190 | p.Name = "Tower_FL" |
| 191 | p.Size = Vector3.new(8, 4.5, 4.5) |
| 192 | p.CFrame = CFrame.new(-14, 4.24, -8) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 193 | p.BrickColor = BrickColor.new("Medium stone grey") |
| 194 | p.Material = Enum.Material.Glacier |
| 195 | p.MaterialVariant = "2022 Inlet" |
| 196 | p.Anchored = true |
| 197 | p.Parent = model |
| 198 | end |
| 199 | do |
| 200 | local p = Instance.new("Part") |
| 201 | p.Shape = Enum.PartType.Cylinder |
| 202 | p.Name = "Roof_FL_Step0" |
| 203 | p.Size = Vector3.new(1.33333, 5, 5) |
| 204 | p.CFrame = CFrame.new(-14, 8.70667, -8) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 205 | p.BrickColor = BrickColor.new("Bright blue") |
| 206 | p.Material = Enum.Material.Glacier |
| 207 | p.MaterialVariant = "2022 Universal" |
| 208 | p.Anchored = true |
| 209 | p.Parent = model |
| 210 | end |
| 211 | do |
| 212 | local p = Instance.new("Part") |
| 213 | p.Shape = Enum.PartType.Cylinder |
| 214 | p.Name = "Roof_FL_Step1" |
| 215 | p.Size = Vector3.new(1.33333, 3.33333, 3.33333) |
| 216 | p.CFrame = CFrame.new(-14, 10.08, -8) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 217 | p.BrickColor = BrickColor.new("Bright blue") |
| 218 | p.Material = Enum.Material.Glacier |
| 219 | p.MaterialVariant = "2022 Universal" |
| 220 | p.Anchored = true |
| 221 | p.Parent = model |
| 222 | end |
| 223 | do |
| 224 | local p = Instance.new("Part") |
| 225 | p.Shape = Enum.PartType.Cylinder |
| 226 | p.Name = "Roof_FL_Step2" |
| 227 | p.Size = Vector3.new(1.33333, 1.66667, 1.66667) |
| 228 | p.CFrame = CFrame.new(-14, 11.4533, -8) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 229 | p.BrickColor = BrickColor.new("Bright blue") |
| 230 | p.Material = Enum.Material.Glacier |
| 231 | p.MaterialVariant = "2022 Universal" |
| 232 | p.Anchored = true |
| 233 | p.Parent = model |
| 234 | end |
| 235 | do |
| 236 | local p = Instance.new("Part") |
| 237 | p.Shape = Enum.PartType.Cylinder |
| 238 | p.Name = "Tower_FR" |
| 239 | p.Size = Vector3.new(8, 4.5, 4.5) |
| 240 | p.CFrame = CFrame.new(14, 4.24, -8) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 241 | p.BrickColor = BrickColor.new("Medium stone grey") |
| 242 | p.Material = Enum.Material.Glacier |
| 243 | p.MaterialVariant = "2022 Inlet" |
| 244 | p.Anchored = true |
| 245 | p.Parent = model |
| 246 | end |
| 247 | do |
| 248 | local p = Instance.new("Part") |
| 249 | p.Shape = Enum.PartType.Cylinder |
| 250 | p.Name = "Roof_FR_Step0" |
| 251 | p.Size = Vector3.new(1.33333, 5, 5) |
| 252 | p.CFrame = CFrame.new(14, 8.70667, -8) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 253 | p.BrickColor = BrickColor.new("Bright blue") |
| 254 | p.Material = Enum.Material.Glacier |
| 255 | p.MaterialVariant = "2022 Universal" |
| 256 | p.Anchored = true |
| 257 | p.Parent = model |
| 258 | end |
| 259 | do |
| 260 | local p = Instance.new("Part") |
| 261 | p.Shape = Enum.PartType.Cylinder |
| 262 | p.Name = "Roof_FR_Step1" |
| 263 | p.Size = Vector3.new(1.33333, 3.33333, 3.33333) |
| 264 | p.CFrame = CFrame.new(14, 10.08, -8) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 265 | p.BrickColor = BrickColor.new("Bright blue") |
| 266 | p.Material = Enum.Material.Glacier |
| 267 | p.MaterialVariant = "2022 Universal" |
| 268 | p.Anchored = true |
| 269 | p.Parent = model |
| 270 | end |
| 271 | do |
| 272 | local p = Instance.new("Part") |
| 273 | p.Shape = Enum.PartType.Cylinder |
| 274 | p.Name = "Roof_FR_Step2" |
| 275 | p.Size = Vector3.new(1.33333, 1.66667, 1.66667) |
| 276 | p.CFrame = CFrame.new(14, 11.4533, -8) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 277 | p.BrickColor = BrickColor.new("Bright blue") |
| 278 | p.Material = Enum.Material.Glacier |
| 279 | p.MaterialVariant = "2022 Universal" |
| 280 | p.Anchored = true |
| 281 | p.Parent = model |
| 282 | end |
| 283 | do |
| 284 | local p = Instance.new("Part") |
| 285 | p.Shape = Enum.PartType.Cylinder |
| 286 | p.Name = "Tower_BL" |
| 287 | p.Size = Vector3.new(8, 4.5, 4.5) |
| 288 | p.CFrame = CFrame.new(-14, 4.16, 12) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 289 | p.BrickColor = BrickColor.new("Medium stone grey") |
| 290 | p.Material = Enum.Material.Glacier |
| 291 | p.MaterialVariant = "2022 Inlet" |
| 292 | p.Anchored = true |
| 293 | p.Parent = model |
| 294 | end |
| 295 | do |
| 296 | local p = Instance.new("Part") |
| 297 | p.Shape = Enum.PartType.Cylinder |
| 298 | p.Name = "Roof_BL_Step0" |
| 299 | p.Size = Vector3.new(1.33333, 5, 5) |
| 300 | p.CFrame = CFrame.new(-14, 8.70667, 12) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 301 | p.BrickColor = BrickColor.new("Bright blue") |
| 302 | p.Material = Enum.Material.Glacier |
| 303 | p.MaterialVariant = "2022 Universal" |
| 304 | p.Anchored = true |
| 305 | p.Parent = model |
| 306 | end |
| 307 | do |
| 308 | local p = Instance.new("Part") |
| 309 | p.Shape = Enum.PartType.Cylinder |
| 310 | p.Name = "Roof_BL_Step1" |
| 311 | p.Size = Vector3.new(1.33333, 3.33333, 3.33333) |
| 312 | p.CFrame = CFrame.new(-14, 10.08, 12) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 313 | p.BrickColor = BrickColor.new("Bright blue") |
| 314 | p.Material = Enum.Material.Glacier |
| 315 | p.MaterialVariant = "2022 Universal" |
| 316 | p.Anchored = true |
| 317 | p.Parent = model |
| 318 | end |
| 319 | do |
| 320 | local p = Instance.new("Part") |
| 321 | p.Shape = Enum.PartType.Cylinder |
| 322 | p.Name = "Roof_BL_Step2" |
| 323 | p.Size = Vector3.new(1.33333, 1.66667, 1.66667) |
| 324 | p.CFrame = CFrame.new(-14, 11.4533, 12) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 325 | p.BrickColor = BrickColor.new("Bright blue") |
| 326 | p.Material = Enum.Material.Glacier |
| 327 | p.MaterialVariant = "2022 Universal" |
| 328 | p.Anchored = true |
| 329 | p.Parent = model |
| 330 | end |
| 331 | do |
| 332 | local p = Instance.new("Part") |
| 333 | p.Shape = Enum.PartType.Cylinder |
| 334 | p.Name = "Tower_BR" |
| 335 | p.Size = Vector3.new(8, 4.5, 4.5) |
| 336 | p.CFrame = CFrame.new(14, 4.16, 12) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 337 | p.BrickColor = BrickColor.new("Medium stone grey") |
| 338 | p.Material = Enum.Material.Glacier |
| 339 | p.MaterialVariant = "2022 Inlet" |
| 340 | p.Anchored = true |
| 341 | p.Parent = model |
| 342 | end |
| 343 | do |
| 344 | local p = Instance.new("Part") |
| 345 | p.Shape = Enum.PartType.Cylinder |
| 346 | p.Name = "Roof_BR_Step0" |
| 347 | p.Size = Vector3.new(1.33333, 5, 5) |
| 348 | p.CFrame = CFrame.new(14, 8.70667, 12) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 349 | p.BrickColor = BrickColor.new("Bright blue") |
| 350 | p.Material = Enum.Material.Glacier |
| 351 | p.MaterialVariant = "2022 Universal" |
| 352 | p.Anchored = true |
| 353 | p.Parent = model |
| 354 | end |
| 355 | do |
| 356 | local p = Instance.new("Part") |
| 357 | p.Shape = Enum.PartType.Cylinder |
| 358 | p.Name = "Roof_BR_Step1" |
| 359 | p.Size = Vector3.new(1.33333, 3.33333, 3.33333) |
| 360 | p.CFrame = CFrame.new(14, 10.08, 12) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 361 | p.BrickColor = BrickColor.new("Bright blue") |
| 362 | p.Material = Enum.Material.Glacier |
| 363 | p.MaterialVariant = "2022 Universal" |
| 364 | p.Anchored = true |
| 365 | p.Parent = model |
| 366 | end |
| 367 | do |
| 368 | local p = Instance.new("Part") |
| 369 | p.Shape = Enum.PartType.Cylinder |
| 370 | p.Name = "Roof_BR_Step2" |
| 371 | p.Size = Vector3.new(1.33333, 1.66667, 1.66667) |
| 372 | p.CFrame = CFrame.new(14, 11.4533, 12) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 373 | p.BrickColor = BrickColor.new("Bright blue") |
| 374 | p.Material = Enum.Material.Glacier |
| 375 | p.MaterialVariant = "2022 Universal" |
| 376 | p.Anchored = true |
| 377 | p.Parent = model |
| 378 | end |
| 379 | do |
| 380 | local p = Instance.new("Part") |
| 381 | p.Name = "GateMain" |
| 382 | p.Size = Vector3.new(10, 8, 4) |
| 383 | p.CFrame = CFrame.new(0, 4.04, -7.96) |
| 384 | p.BrickColor = BrickColor.new("Medium stone grey") |
| 385 | p.Material = Enum.Material.Glacier |
| 386 | p.MaterialVariant = "2022 Inlet" |
| 387 | p.Anchored = true |
| 388 | p.Parent = model |
| 389 | end |
| 390 | do |
| 391 | local p = Instance.new("Part") |
| 392 | p.Name = "GateDoor" |
| 393 | p.Size = Vector3.new(4, 4, 0.5) |
| 394 | p.CFrame = CFrame.new(0, 2, -10.1) |
| 395 | p.BrickColor = BrickColor.new("Reddish brown") |
| 396 | p.Material = Enum.Material.Glacier |
| 397 | p.MaterialVariant = "2022 Small Stud" |
| 398 | p.Anchored = true |
| 399 | p.Parent = model |
| 400 | end |
| 401 | do |
| 402 | local p = Instance.new("Part") |
| 403 | p.Shape = Enum.PartType.Cylinder |
| 404 | p.Name = "GateTowerL" |
| 405 | p.Size = Vector3.new(10, 2.5, 2.5) |
| 406 | p.CFrame = CFrame.new(-4, 5.24, -10) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 407 | p.BrickColor = BrickColor.new("Medium stone grey") |
| 408 | p.Material = Enum.Material.Glacier |
| 409 | p.MaterialVariant = "2022 Inlet" |
| 410 | p.Anchored = true |
| 411 | p.Parent = model |
| 412 | end |
| 413 | do |
| 414 | local p = Instance.new("Part") |
| 415 | p.Shape = Enum.PartType.Cylinder |
| 416 | p.Name = "GateTowerR" |
| 417 | p.Size = Vector3.new(10, 2.5, 2.5) |
| 418 | p.CFrame = CFrame.new(4, 5.24, -10) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 419 | p.BrickColor = BrickColor.new("Medium stone grey") |
| 420 | p.Material = Enum.Material.Glacier |
| 421 | p.MaterialVariant = "2022 Inlet" |
| 422 | p.Anchored = true |
| 423 | p.Parent = model |
| 424 | end |
| 425 | do |
| 426 | local p = Instance.new("Part") |
| 427 | p.Shape = Enum.PartType.Cylinder |
| 428 | p.Name = "RoofGateL_Step0" |
| 429 | p.Size = Vector3.new(1, 3, 3) |
| 430 | p.CFrame = CFrame.new(-4, 10.54, -10) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 431 | p.BrickColor = BrickColor.new("Bright blue") |
| 432 | p.Material = Enum.Material.Glacier |
| 433 | p.MaterialVariant = "2022 Universal" |
| 434 | p.Anchored = true |
| 435 | p.Parent = model |
| 436 | end |
| 437 | do |
| 438 | local p = Instance.new("Part") |
| 439 | p.Shape = Enum.PartType.Cylinder |
| 440 | p.Name = "RoofGateL_Step1" |
| 441 | p.Size = Vector3.new(1, 2, 2) |
| 442 | p.CFrame = CFrame.new(-4, 11.58, -10) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 443 | p.BrickColor = BrickColor.new("Bright blue") |
| 444 | p.Material = Enum.Material.Glacier |
| 445 | p.MaterialVariant = "2022 Universal" |
| 446 | p.Anchored = true |
| 447 | p.Parent = model |
| 448 | end |
| 449 | do |
| 450 | local p = Instance.new("Part") |
| 451 | p.Shape = Enum.PartType.Cylinder |
| 452 | p.Name = "RoofGateL_Step2" |
| 453 | p.Size = Vector3.new(1, 1, 1) |
| 454 | p.CFrame = CFrame.new(-4, 12.62, -10) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 455 | p.BrickColor = BrickColor.new("Bright blue") |
| 456 | p.Material = Enum.Material.Glacier |
| 457 | p.MaterialVariant = "2022 Universal" |
| 458 | p.Anchored = true |
| 459 | p.Parent = model |
| 460 | end |
| 461 | do |
| 462 | local p = Instance.new("Part") |
| 463 | p.Shape = Enum.PartType.Cylinder |
| 464 | p.Name = "RoofGateR_Step0" |
| 465 | p.Size = Vector3.new(1, 3, 3) |
| 466 | p.CFrame = CFrame.new(4, 10.54, -10) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 467 | p.BrickColor = BrickColor.new("Bright blue") |
| 468 | p.Material = Enum.Material.Glacier |
| 469 | p.MaterialVariant = "2022 Universal" |
| 470 | p.Anchored = true |
| 471 | p.Parent = model |
| 472 | end |
| 473 | do |
| 474 | local p = Instance.new("Part") |
| 475 | p.Shape = Enum.PartType.Cylinder |
| 476 | p.Name = "RoofGateR_Step1" |
| 477 | p.Size = Vector3.new(1, 2, 2) |
| 478 | p.CFrame = CFrame.new(4, 11.58, -10) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 479 | p.BrickColor = BrickColor.new("Bright blue") |
| 480 | p.Material = Enum.Material.Glacier |
| 481 | p.MaterialVariant = "2022 Universal" |
| 482 | p.Anchored = true |
| 483 | p.Parent = model |
| 484 | end |
| 485 | do |
| 486 | local p = Instance.new("Part") |
| 487 | p.Shape = Enum.PartType.Cylinder |
| 488 | p.Name = "RoofGateR_Step2" |
| 489 | p.Size = Vector3.new(1, 1, 1) |
| 490 | p.CFrame = CFrame.new(4, 12.62, -10) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 491 | p.BrickColor = BrickColor.new("Bright blue") |
| 492 | p.Material = Enum.Material.Glacier |
| 493 | p.MaterialVariant = "2022 Universal" |
| 494 | p.Anchored = true |
| 495 | p.Parent = model |
| 496 | end |
| 497 | do |
| 498 | local p = Instance.new("Part") |
| 499 | p.Name = "KeepBase" |
| 500 | p.Size = Vector3.new(16, 12, 12) |
| 501 | p.CFrame = CFrame.new(0, 6, 3) |
| 502 | p.BrickColor = BrickColor.new("Medium stone grey") |
| 503 | p.Material = Enum.Material.Glacier |
| 504 | p.MaterialVariant = "2022 Inlet" |
| 505 | p.Anchored = true |
| 506 | p.Parent = model |
| 507 | end |
| 508 | do |
| 509 | local p = Instance.new("Part") |
| 510 | p.Name = "KeepRoof1" |
| 511 | p.Size = Vector3.new(17, 1, 13) |
| 512 | p.CFrame = CFrame.new(0, 12.54, 3) |
| 513 | p.BrickColor = BrickColor.new("Bright blue") |
| 514 | p.Material = Enum.Material.Glacier |
| 515 | p.MaterialVariant = "2022 Universal" |
| 516 | p.Anchored = true |
| 517 | p.Parent = model |
| 518 | end |
| 519 | do |
| 520 | local p = Instance.new("Part") |
| 521 | p.Name = "KeepRoof2" |
| 522 | p.Size = Vector3.new(15, 1, 11) |
| 523 | p.CFrame = CFrame.new(0, 13.58, 3) |
| 524 | p.BrickColor = BrickColor.new("Bright blue") |
| 525 | p.Material = Enum.Material.Glacier |
| 526 | p.MaterialVariant = "2022 Universal" |
| 527 | p.Anchored = true |
| 528 | p.Parent = model |
| 529 | end |
| 530 | do |
| 531 | local p = Instance.new("Part") |
| 532 | p.Name = "KeepRoof3" |
| 533 | p.Size = Vector3.new(13, 1, 9) |
| 534 | p.CFrame = CFrame.new(0, 14.62, 3) |
| 535 | p.BrickColor = BrickColor.new("Bright blue") |
| 536 | p.Material = Enum.Material.Glacier |
| 537 | p.MaterialVariant = "2022 Universal" |
| 538 | p.Anchored = true |
| 539 | p.Parent = model |
| 540 | end |
| 541 | do |
| 542 | local p = Instance.new("Part") |
| 543 | p.Name = "KeepRoof4" |
| 544 | p.Size = Vector3.new(11, 1, 7) |
| 545 | p.CFrame = CFrame.new(0, 15.66, 3) |
| 546 | p.BrickColor = BrickColor.new("Bright blue") |
| 547 | p.Material = Enum.Material.Glacier |
| 548 | p.MaterialVariant = "2022 Universal" |
| 549 | p.Anchored = true |
| 550 | p.Parent = model |
| 551 | end |
| 552 | do |
| 553 | local p = Instance.new("Part") |
| 554 | p.Name = "KeepRoof5" |
| 555 | p.Size = Vector3.new(9, 1, 5) |
| 556 | p.CFrame = CFrame.new(0, 16.7, 3) |
| 557 | p.BrickColor = BrickColor.new("Bright blue") |
| 558 | p.Material = Enum.Material.Glacier |
| 559 | p.MaterialVariant = "2022 Universal" |
| 560 | p.Anchored = true |
| 561 | p.Parent = model |
| 562 | end |
| 563 | do |
| 564 | local p = Instance.new("Part") |
| 565 | p.Shape = Enum.PartType.Cylinder |
| 566 | p.Name = "KeepMainTower" |
| 567 | p.Size = Vector3.new(24, 6, 6) |
| 568 | p.CFrame = CFrame.new(0, 12.04, 8) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 569 | p.BrickColor = BrickColor.new("Medium stone grey") |
| 570 | p.Material = Enum.Material.Glacier |
| 571 | p.MaterialVariant = "2022 Inlet" |
| 572 | p.Anchored = true |
| 573 | p.Parent = model |
| 574 | end |
| 575 | do |
| 576 | local p = Instance.new("Part") |
| 577 | p.Shape = Enum.PartType.Cylinder |
| 578 | p.Name = "RoofKeepMain_Step0" |
| 579 | p.Size = Vector3.new(1.5, 7, 7) |
| 580 | p.CFrame = CFrame.new(0, 24.83, 8) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 581 | p.BrickColor = BrickColor.new("Bright blue") |
| 582 | p.Material = Enum.Material.Glacier |
| 583 | p.MaterialVariant = "2022 Universal" |
| 584 | p.Anchored = true |
| 585 | p.Parent = model |
| 586 | end |
| 587 | do |
| 588 | local p = Instance.new("Part") |
| 589 | p.Shape = Enum.PartType.Cylinder |
| 590 | p.Name = "RoofKeepMain_Step1" |
| 591 | p.Size = Vector3.new(1.5, 5.25, 5.25) |
| 592 | p.CFrame = CFrame.new(0, 26.37, 8) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 593 | p.BrickColor = BrickColor.new("Bright blue") |
| 594 | p.Material = Enum.Material.Glacier |
| 595 | p.MaterialVariant = "2022 Universal" |
| 596 | p.Anchored = true |
| 597 | p.Parent = model |
| 598 | end |
| 599 | do |
| 600 | local p = Instance.new("Part") |
| 601 | p.Shape = Enum.PartType.Cylinder |
| 602 | p.Name = "RoofKeepMain_Step2" |
| 603 | p.Size = Vector3.new(1.5, 3.5, 3.5) |
| 604 | p.CFrame = CFrame.new(0, 27.91, 8) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 605 | p.BrickColor = BrickColor.new("Bright blue") |
| 606 | p.Material = Enum.Material.Glacier |
| 607 | p.MaterialVariant = "2022 Universal" |
| 608 | p.Anchored = true |
| 609 | p.Parent = model |
| 610 | end |
| 611 | do |
| 612 | local p = Instance.new("Part") |
| 613 | p.Shape = Enum.PartType.Cylinder |
| 614 | p.Name = "RoofKeepMain_Step3" |
| 615 | p.Size = Vector3.new(1.5, 1.75, 1.75) |
| 616 | p.CFrame = CFrame.new(0, 29.45, 8) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 617 | p.BrickColor = BrickColor.new("Bright blue") |
| 618 | p.Material = Enum.Material.Glacier |
| 619 | p.MaterialVariant = "2022 Universal" |
| 620 | p.Anchored = true |
| 621 | p.Parent = model |
| 622 | end |
| 623 | do |
| 624 | local p = Instance.new("Part") |
| 625 | p.Shape = Enum.PartType.Cylinder |
| 626 | p.Name = "KeepSideTowerL" |
| 627 | p.Size = Vector3.new(20, 3.5, 3.5) |
| 628 | p.CFrame = CFrame.new(-7, 10.08, 3) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 629 | p.BrickColor = BrickColor.new("Medium stone grey") |
| 630 | p.Material = Enum.Material.Glacier |
| 631 | p.MaterialVariant = "2022 Inlet" |
| 632 | p.Anchored = true |
| 633 | p.Parent = model |
| 634 | end |
| 635 | do |
| 636 | local p = Instance.new("Part") |
| 637 | p.Shape = Enum.PartType.Cylinder |
| 638 | p.Name = "KeepSideTowerR" |
| 639 | p.Size = Vector3.new(20, 3.5, 3.5) |
| 640 | p.CFrame = CFrame.new(7, 10.08, 3) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 641 | p.BrickColor = BrickColor.new("Medium stone grey") |
| 642 | p.Material = Enum.Material.Glacier |
| 643 | p.MaterialVariant = "2022 Inlet" |
| 644 | p.Anchored = true |
| 645 | p.Parent = model |
| 646 | end |
| 647 | do |
| 648 | local p = Instance.new("Part") |
| 649 | p.Shape = Enum.PartType.Cylinder |
| 650 | p.Name = "RoofKeepSideL_Step0" |
| 651 | p.Size = Vector3.new(1.33333, 4, 4) |
| 652 | p.CFrame = CFrame.new(-7, 20.7067, 3) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 653 | p.BrickColor = BrickColor.new("Bright blue") |
| 654 | p.Material = Enum.Material.Glacier |
| 655 | p.MaterialVariant = "2022 Universal" |
| 656 | p.Anchored = true |
| 657 | p.Parent = model |
| 658 | end |
| 659 | do |
| 660 | local p = Instance.new("Part") |
| 661 | p.Shape = Enum.PartType.Cylinder |
| 662 | p.Name = "RoofKeepSideL_Step1" |
| 663 | p.Size = Vector3.new(1.33333, 2.66667, 2.66667) |
| 664 | p.CFrame = CFrame.new(-7, 22.08, 3) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 665 | p.BrickColor = BrickColor.new("Bright blue") |
| 666 | p.Material = Enum.Material.Glacier |
| 667 | p.MaterialVariant = "2022 Universal" |
| 668 | p.Anchored = true |
| 669 | p.Parent = model |
| 670 | end |
| 671 | do |
| 672 | local p = Instance.new("Part") |
| 673 | p.Shape = Enum.PartType.Cylinder |
| 674 | p.Name = "RoofKeepSideL_Step2" |
| 675 | p.Size = Vector3.new(1.33333, 1.33333, 1.33333) |
| 676 | p.CFrame = CFrame.new(-7, 23.4533, 3) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 677 | p.BrickColor = BrickColor.new("Bright blue") |
| 678 | p.Material = Enum.Material.Glacier |
| 679 | p.MaterialVariant = "2022 Universal" |
| 680 | p.Anchored = true |
| 681 | p.Parent = model |
| 682 | end |
| 683 | do |
| 684 | local p = Instance.new("Part") |
| 685 | p.Shape = Enum.PartType.Cylinder |
| 686 | p.Name = "RoofKeepSideR_Step0" |
| 687 | p.Size = Vector3.new(1.33333, 4, 4) |
| 688 | p.CFrame = CFrame.new(7, 20.7067, 3) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 689 | p.BrickColor = BrickColor.new("Bright blue") |
| 690 | p.Material = Enum.Material.Glacier |
| 691 | p.MaterialVariant = "2022 Universal" |
| 692 | p.Anchored = true |
| 693 | p.Parent = model |
| 694 | end |
| 695 | do |
| 696 | local p = Instance.new("Part") |
| 697 | p.Shape = Enum.PartType.Cylinder |
| 698 | p.Name = "RoofKeepSideR_Step1" |
| 699 | p.Size = Vector3.new(1.33333, 2.66667, 2.66667) |
| 700 | p.CFrame = CFrame.new(7, 22.08, 3) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 701 | p.BrickColor = BrickColor.new("Bright blue") |
| 702 | p.Material = Enum.Material.Glacier |
| 703 | p.MaterialVariant = "2022 Universal" |
| 704 | p.Anchored = true |
| 705 | p.Parent = model |
| 706 | end |
| 707 | do |
| 708 | local p = Instance.new("Part") |
| 709 | p.Shape = Enum.PartType.Cylinder |
| 710 | p.Name = "RoofKeepSideR_Step2" |
| 711 | p.Size = Vector3.new(1.33333, 1.33333, 1.33333) |
| 712 | p.CFrame = CFrame.new(7, 23.4533, 3) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 713 | p.BrickColor = BrickColor.new("Bright blue") |
| 714 | p.Material = Enum.Material.Glacier |
| 715 | p.MaterialVariant = "2022 Universal" |
| 716 | p.Anchored = true |
| 717 | p.Parent = model |
| 718 | end |
| 719 | do |
| 720 | local p = Instance.new("Part") |
| 721 | p.Name = "CourtBldgBase" |
| 722 | p.Size = Vector3.new(6, 4, 6) |
| 723 | p.CFrame = CFrame.new(8, 2.04, 4) |
| 724 | p.BrickColor = BrickColor.new("Brick yellow") |
| 725 | p.Material = Enum.Material.Glacier |
| 726 | p.MaterialVariant = "2022 Stud" |
| 727 | p.Anchored = true |
| 728 | p.Parent = model |
| 729 | end |
| 730 | do |
| 731 | local p = Instance.new("Part") |
| 732 | p.Name = "CourtBldgRoof1" |
| 733 | p.Size = Vector3.new(7, 1, 7) |
| 734 | p.CFrame = CFrame.new(8, 4.58, 4) |
| 735 | p.BrickColor = BrickColor.new("Bright blue") |
| 736 | p.Material = Enum.Material.Glacier |
| 737 | p.MaterialVariant = "2022 Universal" |
| 738 | p.Anchored = true |
| 739 | p.Parent = model |
| 740 | end |
| 741 | do |
| 742 | local p = Instance.new("Part") |
| 743 | p.Name = "CourtBldgRoof2" |
| 744 | p.Size = Vector3.new(5, 1, 7) |
| 745 | p.CFrame = CFrame.new(8, 5.62, 4) |
| 746 | p.BrickColor = BrickColor.new("Bright blue") |
| 747 | p.Material = Enum.Material.Glacier |
| 748 | p.MaterialVariant = "2022 Universal" |
| 749 | p.Anchored = true |
| 750 | p.Parent = model |
| 751 | end |
| 752 | do |
| 753 | local p = Instance.new("Part") |
| 754 | p.Name = "CourtBldgRoof3" |
| 755 | p.Size = Vector3.new(3, 1, 7) |
| 756 | p.CFrame = CFrame.new(8, 6.66, 4) |
| 757 | p.BrickColor = BrickColor.new("Bright blue") |
| 758 | p.Material = Enum.Material.Glacier |
| 759 | p.MaterialVariant = "2022 Universal" |
| 760 | p.Anchored = true |
| 761 | p.Parent = model |
| 762 | end |
| 763 | do |
| 764 | local p = Instance.new("Part") |
| 765 | p.Name = "CourtBldgRoof4" |
| 766 | p.Size = Vector3.new(1, 1, 7) |
| 767 | p.CFrame = CFrame.new(8, 7.7, 4) |
| 768 | p.BrickColor = BrickColor.new("Bright blue") |
| 769 | p.Material = Enum.Material.Glacier |
| 770 | p.MaterialVariant = "2022 Universal" |
| 771 | p.Anchored = true |
| 772 | p.Parent = model |
| 773 | end |
| 774 | do |
| 775 | local p = Instance.new("Part") |
| 776 | p.Shape = Enum.PartType.Cylinder |
| 777 | p.Name = "FlagPole_Main" |
| 778 | p.Size = Vector3.new(2, 0.2, 0.2) |
| 779 | p.CFrame = CFrame.new(0, 31, 8) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 780 | p.BrickColor = BrickColor.new("Gold") |
| 781 | p.Material = Enum.Material.Glacier |
| 782 | p.MaterialVariant = "2022 Stud" |
| 783 | p.Anchored = true |
| 784 | p.Parent = model |
| 785 | end |
| 786 | do |
| 787 | local p = Instance.new("Part") |
| 788 | p.Name = "FlagCloth_Main" |
| 789 | p.Size = Vector3.new(2, 1, 0.1) |
| 790 | p.CFrame = CFrame.new(1, 31.5, 8) |
| 791 | p.BrickColor = BrickColor.new("Bright blue") |
| 792 | p.Material = Enum.Material.Glacier |
| 793 | p.MaterialVariant = "2022 Universal" |
| 794 | p.Anchored = true |
| 795 | p.Parent = model |
| 796 | end |
| 797 | do |
| 798 | local p = Instance.new("Part") |
| 799 | p.Shape = Enum.PartType.Cylinder |
| 800 | p.Name = "FlagPole_FL" |
| 801 | p.Size = Vector3.new(2, 0.2, 0.2) |
| 802 | p.CFrame = CFrame.new(-14, 13, -8) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 803 | p.BrickColor = BrickColor.new("Gold") |
| 804 | p.Material = Enum.Material.Glacier |
| 805 | p.MaterialVariant = "2022 Stud" |
| 806 | p.Anchored = true |
| 807 | p.Parent = model |
| 808 | end |
| 809 | do |
| 810 | local p = Instance.new("Part") |
| 811 | p.Name = "FlagCloth_FL" |
| 812 | p.Size = Vector3.new(2, 1, 0.1) |
| 813 | p.CFrame = CFrame.new(-13, 13.5, -8) |
| 814 | p.BrickColor = BrickColor.new("Bright blue") |
| 815 | p.Material = Enum.Material.Glacier |
| 816 | p.MaterialVariant = "2022 Universal" |
| 817 | p.Anchored = true |
| 818 | p.Parent = model |
| 819 | end |
| 820 | do |
| 821 | local p = Instance.new("Part") |
| 822 | p.Shape = Enum.PartType.Cylinder |
| 823 | p.Name = "FlagPole_FR" |
| 824 | p.Size = Vector3.new(2, 0.2, 0.2) |
| 825 | p.CFrame = CFrame.new(14, 13, -8) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 826 | p.BrickColor = BrickColor.new("Gold") |
| 827 | p.Material = Enum.Material.Glacier |
| 828 | p.MaterialVariant = "2022 Stud" |
| 829 | p.Anchored = true |
| 830 | p.Parent = model |
| 831 | end |
| 832 | do |
| 833 | local p = Instance.new("Part") |
| 834 | p.Name = "FlagCloth_FR" |
| 835 | p.Size = Vector3.new(2, 1, 0.1) |
| 836 | p.CFrame = CFrame.new(15, 13.5, -8) |
| 837 | p.BrickColor = BrickColor.new("Bright blue") |
| 838 | p.Material = Enum.Material.Glacier |
| 839 | p.MaterialVariant = "2022 Universal" |
| 840 | p.Anchored = true |
| 841 | p.Parent = model |
| 842 | end |
| 843 | do |
| 844 | local p = Instance.new("Part") |
| 845 | p.Name = "Banner_TowerFL" |
| 846 | p.Size = Vector3.new(1.5, 3, 0.1) |
| 847 | p.CFrame = CFrame.new(-14, 5, -10.3) |
| 848 | p.BrickColor = BrickColor.new("Bright blue") |
| 849 | p.Material = Enum.Material.Glacier |
| 850 | p.MaterialVariant = "2022 Universal" |
| 851 | p.Anchored = true |
| 852 | p.Parent = model |
| 853 | end |
| 854 | do |
| 855 | local p = Instance.new("Part") |
| 856 | p.Name = "Crest_TowerFL" |
| 857 | p.Size = Vector3.new(0.8, 1, 0.05) |
| 858 | p.CFrame = CFrame.new(-14, 5, -10.35) |
| 859 | p.BrickColor = BrickColor.new("Gold") |
| 860 | p.Material = Enum.Material.Glacier |
| 861 | p.MaterialVariant = "2022 Stud" |
| 862 | p.Anchored = true |
| 863 | p.Parent = model |
| 864 | end |
| 865 | do |
| 866 | local p = Instance.new("Part") |
| 867 | p.Name = "Banner_TowerFR" |
| 868 | p.Size = Vector3.new(1.5, 3, 0.1) |
| 869 | p.CFrame = CFrame.new(14, 5, -10.3) |
| 870 | p.BrickColor = BrickColor.new("Bright blue") |
| 871 | p.Material = Enum.Material.Glacier |
| 872 | p.MaterialVariant = "2022 Universal" |
| 873 | p.Anchored = true |
| 874 | p.Parent = model |
| 875 | end |
| 876 | do |
| 877 | local p = Instance.new("Part") |
| 878 | p.Name = "Crest_TowerFR" |
| 879 | p.Size = Vector3.new(0.8, 1, 0.05) |
| 880 | p.CFrame = CFrame.new(14, 5, -10.35) |
| 881 | p.BrickColor = BrickColor.new("Gold") |
| 882 | p.Material = Enum.Material.Glacier |
| 883 | p.MaterialVariant = "2022 Stud" |
| 884 | p.Anchored = true |
| 885 | p.Parent = model |
| 886 | end |
| 887 | do |
| 888 | local p = Instance.new("Part") |
| 889 | p.Name = "Banner_GateL" |
| 890 | p.Size = Vector3.new(1.5, 3, 0.1) |
| 891 | p.CFrame = CFrame.new(-2.5, 6, -10.1) |
| 892 | p.BrickColor = BrickColor.new("Bright blue") |
| 893 | p.Material = Enum.Material.Glacier |
| 894 | p.MaterialVariant = "2022 Universal" |
| 895 | p.Anchored = true |
| 896 | p.Parent = model |
| 897 | end |
| 898 | do |
| 899 | local p = Instance.new("Part") |
| 900 | p.Name = "Crest_GateL" |
| 901 | p.Size = Vector3.new(0.8, 1, 0.05) |
| 902 | p.CFrame = CFrame.new(-2.5, 6, -10.15) |
| 903 | p.BrickColor = BrickColor.new("Gold") |
| 904 | p.Material = Enum.Material.Glacier |
| 905 | p.MaterialVariant = "2022 Stud" |
| 906 | p.Anchored = true |
| 907 | p.Parent = model |
| 908 | end |
| 909 | do |
| 910 | local p = Instance.new("Part") |
| 911 | p.Name = "Banner_GateR" |
| 912 | p.Size = Vector3.new(1.5, 3, 0.1) |
| 913 | p.CFrame = CFrame.new(2.5, 6, -10.1) |
| 914 | p.BrickColor = BrickColor.new("Bright blue") |
| 915 | p.Material = Enum.Material.Glacier |
| 916 | p.MaterialVariant = "2022 Universal" |
| 917 | p.Anchored = true |
| 918 | p.Parent = model |
| 919 | end |
| 920 | do |
| 921 | local p = Instance.new("Part") |
| 922 | p.Name = "Crest_GateR" |
| 923 | p.Size = Vector3.new(0.8, 1, 0.05) |
| 924 | p.CFrame = CFrame.new(2.5, 6, -10.15) |
| 925 | p.BrickColor = BrickColor.new("Gold") |
| 926 | p.Material = Enum.Material.Glacier |
| 927 | p.MaterialVariant = "2022 Stud" |
| 928 | p.Anchored = true |
| 929 | p.Parent = model |
| 930 | end |
| 931 | do |
| 932 | local p = Instance.new("Part") |
| 933 | p.Name = "WinKeepL" |
| 934 | p.Size = Vector3.new(1.5, 2, 0.2) |
| 935 | p.CFrame = CFrame.new(-4, 8, -3.18) |
| 936 | p.BrickColor = BrickColor.new("Bright yellow") |
| 937 | p.Material = Enum.Material.Neon |
| 938 | p.Anchored = true |
| 939 | p.Parent = model |
| 940 | end |
| 941 | do |
| 942 | local p = Instance.new("Part") |
| 943 | p.Name = "WinKeepR" |
| 944 | p.Size = Vector3.new(1.5, 2, 0.2) |
| 945 | p.CFrame = CFrame.new(4, 8, -3.18) |
| 946 | p.BrickColor = BrickColor.new("Bright yellow") |
| 947 | p.Material = Enum.Material.Neon |
| 948 | p.Anchored = true |
| 949 | p.Parent = model |
| 950 | end |
| 951 | do |
| 952 | local p = Instance.new("Part") |
| 953 | p.Name = "WinMainTower" |
| 954 | p.Size = Vector3.new(1.5, 2, 0.2) |
| 955 | p.CFrame = CFrame.new(0, 18.2, 4.9) |
| 956 | p.BrickColor = BrickColor.new("Bright yellow") |
| 957 | p.Material = Enum.Material.Neon |
| 958 | p.Anchored = true |
| 959 | p.Parent = model |
| 960 | end |
| 961 | do |
| 962 | local p = Instance.new("Part") |
| 963 | p.Shape = Enum.PartType.Cylinder |
| 964 | p.Name = "TreeLF_Step0" |
| 965 | p.Size = Vector3.new(1.33333, 3, 3) |
| 966 | p.CFrame = CFrame.new(-12, 0.706667, -16) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 967 | p.BrickColor = BrickColor.new("Dark green") |
| 968 | p.Material = Enum.Material.Glacier |
| 969 | p.MaterialVariant = "2022 Stud" |
| 970 | p.Anchored = true |
| 971 | p.Parent = model |
| 972 | end |
| 973 | do |
| 974 | local p = Instance.new("Part") |
| 975 | p.Shape = Enum.PartType.Cylinder |
| 976 | p.Name = "TreeLF_Step1" |
| 977 | p.Size = Vector3.new(1.33333, 2, 2) |
| 978 | p.CFrame = CFrame.new(-12, 2.08, -16) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 979 | p.BrickColor = BrickColor.new("Dark green") |
| 980 | p.Material = Enum.Material.Glacier |
| 981 | p.MaterialVariant = "2022 Stud" |
| 982 | p.Anchored = true |
| 983 | p.Parent = model |
| 984 | end |
| 985 | do |
| 986 | local p = Instance.new("Part") |
| 987 | p.Shape = Enum.PartType.Cylinder |
| 988 | p.Name = "TreeLF_Step2" |
| 989 | p.Size = Vector3.new(1.33333, 1, 1) |
| 990 | p.CFrame = CFrame.new(-12, 3.45333, -16) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 991 | p.BrickColor = BrickColor.new("Dark green") |
| 992 | p.Material = Enum.Material.Glacier |
| 993 | p.MaterialVariant = "2022 Stud" |
| 994 | p.Anchored = true |
| 995 | p.Parent = model |
| 996 | end |
| 997 | do |
| 998 | local p = Instance.new("Part") |
| 999 | p.Shape = Enum.PartType.Cylinder |
| 1000 | p.Name = "TreeRF_Step0" |
| 1001 | p.Size = Vector3.new(1.33333, 3, 3) |
| 1002 | p.CFrame = CFrame.new(12, 0.706667, -16) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 1003 | p.BrickColor = BrickColor.new("Dark green") |
| 1004 | p.Material = Enum.Material.Glacier |
| 1005 | p.MaterialVariant = "2022 Stud" |
| 1006 | p.Anchored = true |
| 1007 | p.Parent = model |
| 1008 | end |
| 1009 | do |
| 1010 | local p = Instance.new("Part") |
| 1011 | p.Shape = Enum.PartType.Cylinder |
| 1012 | p.Name = "TreeRF_Step1" |
| 1013 | p.Size = Vector3.new(1.33333, 2, 2) |
| 1014 | p.CFrame = CFrame.new(12, 2.08, -16) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 1015 | p.BrickColor = BrickColor.new("Dark green") |
| 1016 | p.Material = Enum.Material.Glacier |
| 1017 | p.MaterialVariant = "2022 Stud" |
| 1018 | p.Anchored = true |
| 1019 | p.Parent = model |
| 1020 | end |
| 1021 | do |
| 1022 | local p = Instance.new("Part") |
| 1023 | p.Shape = Enum.PartType.Cylinder |
| 1024 | p.Name = "TreeRF_Step2" |
| 1025 | p.Size = Vector3.new(1.33333, 1, 1) |
| 1026 | p.CFrame = CFrame.new(12, 3.45333, -16) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 1027 | p.BrickColor = BrickColor.new("Dark green") |
| 1028 | p.Material = Enum.Material.Glacier |
| 1029 | p.MaterialVariant = "2022 Stud" |
| 1030 | p.Anchored = true |
| 1031 | p.Parent = model |
| 1032 | end |
| 1033 | do |
| 1034 | local p = Instance.new("Part") |
| 1035 | p.Shape = Enum.PartType.Cylinder |
| 1036 | p.Name = "TreeLS_Step0" |
| 1037 | p.Size = Vector3.new(1.66667, 3.5, 3.5) |
| 1038 | p.CFrame = CFrame.new(-18, 0.873333, 2) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 1039 | p.BrickColor = BrickColor.new("Dark green") |
| 1040 | p.Material = Enum.Material.Glacier |
| 1041 | p.MaterialVariant = "2022 Stud" |
| 1042 | p.Anchored = true |
| 1043 | p.Parent = model |
| 1044 | end |
| 1045 | do |
| 1046 | local p = Instance.new("Part") |
| 1047 | p.Shape = Enum.PartType.Cylinder |
| 1048 | p.Name = "TreeLS_Step1" |
| 1049 | p.Size = Vector3.new(1.66667, 2.33333, 2.33333) |
| 1050 | p.CFrame = CFrame.new(-18, 2.58, 2) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 1051 | p.BrickColor = BrickColor.new("Dark green") |
| 1052 | p.Material = Enum.Material.Glacier |
| 1053 | p.MaterialVariant = "2022 Stud" |
| 1054 | p.Anchored = true |
| 1055 | p.Parent = model |
| 1056 | end |
| 1057 | do |
| 1058 | local p = Instance.new("Part") |
| 1059 | p.Shape = Enum.PartType.Cylinder |
| 1060 | p.Name = "TreeLS_Step2" |
| 1061 | p.Size = Vector3.new(1.66667, 1.16667, 1.16667) |
| 1062 | p.CFrame = CFrame.new(-18, 4.28667, 2) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 1063 | p.BrickColor = BrickColor.new("Dark green") |
| 1064 | p.Material = Enum.Material.Glacier |
| 1065 | p.MaterialVariant = "2022 Stud" |
| 1066 | p.Anchored = true |
| 1067 | p.Parent = model |
| 1068 | end |
| 1069 | do |
| 1070 | local p = Instance.new("Part") |
| 1071 | p.Shape = Enum.PartType.Cylinder |
| 1072 | p.Name = "TreeRS_Step0" |
| 1073 | p.Size = Vector3.new(1.66667, 3.5, 3.5) |
| 1074 | p.CFrame = CFrame.new(18, 0.873333, 2) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 1075 | p.BrickColor = BrickColor.new("Dark green") |
| 1076 | p.Material = Enum.Material.Glacier |
| 1077 | p.MaterialVariant = "2022 Stud" |
| 1078 | p.Anchored = true |
| 1079 | p.Parent = model |
| 1080 | end |
| 1081 | do |
| 1082 | local p = Instance.new("Part") |
| 1083 | p.Shape = Enum.PartType.Cylinder |
| 1084 | p.Name = "TreeRS_Step1" |
| 1085 | p.Size = Vector3.new(1.66667, 2.33333, 2.33333) |
| 1086 | p.CFrame = CFrame.new(18, 2.58, 2) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 1087 | p.BrickColor = BrickColor.new("Dark green") |
| 1088 | p.Material = Enum.Material.Glacier |
| 1089 | p.MaterialVariant = "2022 Stud" |
| 1090 | p.Anchored = true |
| 1091 | p.Parent = model |
| 1092 | end |
| 1093 | do |
| 1094 | local p = Instance.new("Part") |
| 1095 | p.Shape = Enum.PartType.Cylinder |
| 1096 | p.Name = "TreeRS_Step2" |
| 1097 | p.Size = Vector3.new(1.66667, 1.16667, 1.16667) |
| 1098 | p.CFrame = CFrame.new(18, 4.28667, 2) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 1099 | p.BrickColor = BrickColor.new("Dark green") |
| 1100 | p.Material = Enum.Material.Glacier |
| 1101 | p.MaterialVariant = "2022 Stud" |
| 1102 | p.Anchored = true |
| 1103 | p.Parent = model |
| 1104 | end |
| 1105 | do |
| 1106 | local p = Instance.new("Part") |
| 1107 | p.Shape = Enum.PartType.Cylinder |
| 1108 | p.Name = "TreeLB_Step0" |
| 1109 | p.Size = Vector3.new(1.33333, 3, 3) |
| 1110 | p.CFrame = CFrame.new(-16, 0.666667, 14) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 1111 | p.BrickColor = BrickColor.new("Dark green") |
| 1112 | p.Material = Enum.Material.Glacier |
| 1113 | p.MaterialVariant = "2022 Stud" |
| 1114 | p.Anchored = true |
| 1115 | p.Parent = model |
| 1116 | end |
| 1117 | do |
| 1118 | local p = Instance.new("Part") |
| 1119 | p.Shape = Enum.PartType.Cylinder |
| 1120 | p.Name = "TreeLB_Step1" |
| 1121 | p.Size = Vector3.new(1.33333, 2, 2) |
| 1122 | p.CFrame = CFrame.new(-16, 2.08, 14) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 1123 | p.BrickColor = BrickColor.new("Dark green") |
| 1124 | p.Material = Enum.Material.Glacier |
| 1125 | p.MaterialVariant = "2022 Stud" |
| 1126 | p.Anchored = true |
| 1127 | p.Parent = model |
| 1128 | end |
| 1129 | do |
| 1130 | local p = Instance.new("Part") |
| 1131 | p.Shape = Enum.PartType.Cylinder |
| 1132 | p.Name = "TreeLB_Step2" |
| 1133 | p.Size = Vector3.new(1.33333, 1, 1) |
| 1134 | p.CFrame = CFrame.new(-16, 3.45333, 14) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 1135 | p.BrickColor = BrickColor.new("Dark green") |
| 1136 | p.Material = Enum.Material.Glacier |
| 1137 | p.MaterialVariant = "2022 Stud" |
| 1138 | p.Anchored = true |
| 1139 | p.Parent = model |
| 1140 | end |
| 1141 | do |
| 1142 | local p = Instance.new("Part") |
| 1143 | p.Shape = Enum.PartType.Cylinder |
| 1144 | p.Name = "TreeRB_Step0" |
| 1145 | p.Size = Vector3.new(1.33333, 3, 3) |
| 1146 | p.CFrame = CFrame.new(16, 0.666667, 14) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 1147 | p.BrickColor = BrickColor.new("Dark green") |
| 1148 | p.Material = Enum.Material.Glacier |
| 1149 | p.MaterialVariant = "2022 Stud" |
| 1150 | p.Anchored = true |
| 1151 | p.Parent = model |
| 1152 | end |
| 1153 | do |
| 1154 | local p = Instance.new("Part") |
| 1155 | p.Shape = Enum.PartType.Cylinder |
| 1156 | p.Name = "TreeRB_Step1" |
| 1157 | p.Size = Vector3.new(1.33333, 2, 2) |
| 1158 | p.CFrame = CFrame.new(16, 2.08, 14) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 1159 | p.BrickColor = BrickColor.new("Dark green") |
| 1160 | p.Material = Enum.Material.Glacier |
| 1161 | p.MaterialVariant = "2022 Stud" |
| 1162 | p.Anchored = true |
| 1163 | p.Parent = model |
| 1164 | end |
| 1165 | do |
| 1166 | local p = Instance.new("Part") |
| 1167 | p.Shape = Enum.PartType.Cylinder |
| 1168 | p.Name = "TreeRB_Step2" |
| 1169 | p.Size = Vector3.new(1.33333, 1, 1) |
| 1170 | p.CFrame = CFrame.new(16, 3.45333, 14) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 1171 | p.BrickColor = BrickColor.new("Dark green") |
| 1172 | p.Material = Enum.Material.Glacier |
| 1173 | p.MaterialVariant = "2022 Stud" |
| 1174 | p.Anchored = true |
| 1175 | p.Parent = model |
| 1176 | end |
| 1177 | do |
| 1178 | local rightV = Vector3.new(1,0,0).Unit |
| 1179 | local upV = (Vector3.new(0,1,0) - Vector3.new(0,1,0):Dot(rightV)*rightV).Unit |
| 1180 | local normalV = upV:Cross(rightV) |
| 1181 | local pos = Vector3.new(0, 4.08, -10.1) |
| 1182 | local cyl = Instance.new("Part") |
| 1183 | cyl.Shape = Enum.PartType.Cylinder |
| 1184 | cyl.Size = Vector3.new(0.5, 4, 4) |
| 1185 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 1186 | cyl.BrickColor = BrickColor.new("Reddish brown") |
| 1187 | cyl.Material = Enum.Material.Glacier |
| 1188 | cyl.MaterialVariant = "2022 Small Stud" |
| 1189 | cyl.Anchored = true; cyl.Parent = workspace |
| 1190 | local cuts = {} |
| 1191 | local angBoxes = {} |
| 1192 | do |
| 1193 | local edgeDir = 1*rightV + 0*upV |
| 1194 | local edgePerp = 0*rightV + 1*upV |
| 1195 | local cut = Instance.new("Part") |
| 1196 | cut.Size = Vector3.new(8, 0.7, 8) |
| 1197 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 4 * edgePerp, edgeDir, normalV) |
| 1198 | cut.BrickColor = BrickColor.new("Reddish brown") |
| 1199 | cut.Material = Enum.Material.Glacier |
| 1200 | cut.MaterialVariant = "2022 Small Stud" |
| 1201 | cut.Anchored = true; cut.Parent = workspace |
| 1202 | table.insert(angBoxes, cut) |
| 1203 | end |
| 1204 | do |
| 1205 | local edgeDir = -1*rightV + 0*upV |
| 1206 | local edgePerp = 0*rightV + -1*upV |
| 1207 | local cut = Instance.new("Part") |
| 1208 | cut.Size = Vector3.new(8, 0.7, 8) |
| 1209 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 4 * edgePerp, edgeDir, normalV) |
| 1210 | cut.BrickColor = BrickColor.new("Reddish brown") |
| 1211 | cut.Material = Enum.Material.Glacier |
| 1212 | cut.MaterialVariant = "2022 Small Stud" |
| 1213 | cut.Anchored = true; cut.Parent = workspace |
| 1214 | table.insert(angBoxes, cut) |
| 1215 | end |
| 1216 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 1217 | if #cuts > 0 then |
| 1218 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 1219 | for _, c in ipairs(cuts) do c:Destroy() end |
| 1220 | if ok and result then |
| 1221 | cyl:Destroy() |
| 1222 | result.Name = "GateArch"; result.Anchored = true; result.Parent = model |
| 1223 | else |
| 1224 | cyl.Name = "GateArch"; cyl.Parent = model |
| 1225 | end |
| 1226 | else |
| 1227 | cyl.Name = "GateArch"; cyl.Parent = model |
| 1228 | end |
| 1229 | end |
| 1230 | model.PrimaryPart = model:FindFirstChild("KeepBase") |
| 1231 | print("Castle built: " .. #model:GetChildren() .. " parts") |
Loading comments...