Loading model...
by Karter Goza · 7/16/2026
Lua Script
| 1 | -- Generated with StudForge.org | AI-powered 3D models for Roblox |
| 2 | -- Model: MedievalFortifiedManor |
| 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 = "MedievalFortifiedManor" |
| 21 | model.Parent = workspace |
| 22 | |
| 23 | local variants = { |
| 24 | ["Bright blue"] = "2022 Universal", |
| 25 | ["Bright red"] = "2022 Stud", |
| 26 | ["Dark stone grey"] = "2022 Stud", |
| 27 | ["Earth blue"] = "2022 Stud", |
| 28 | ["Earth green"] = "2022 Stud", |
| 29 | ["Medium stone grey"] = "2022 Inlet", |
| 30 | ["Reddish brown"] = "2022 Small Stud", |
| 31 | } |
| 32 | do |
| 33 | local p = Instance.new("Part") |
| 34 | p.Name = "Ground" |
| 35 | p.Size = Vector3.new(80, 1, 60) |
| 36 | p.CFrame = CFrame.new(0, -0.5, 0) |
| 37 | p.BrickColor = BrickColor.new("Earth green") |
| 38 | p.Material = Enum.Material.Glacier |
| 39 | p.MaterialVariant = "2022 Stud" |
| 40 | p.Anchored = true |
| 41 | p.Parent = model |
| 42 | end |
| 43 | do |
| 44 | local p = Instance.new("Part") |
| 45 | p.Name = "KeepBase" |
| 46 | p.Size = Vector3.new(16, 10, 16) |
| 47 | p.CFrame = CFrame.new(0, 5.04, 0) |
| 48 | p.BrickColor = BrickColor.new("Medium stone grey") |
| 49 | p.Material = Enum.Material.Glacier |
| 50 | p.MaterialVariant = "2022 Inlet" |
| 51 | p.Anchored = true |
| 52 | p.Parent = model |
| 53 | end |
| 54 | do |
| 55 | local p = Instance.new("Part") |
| 56 | p.Name = "KeepMid" |
| 57 | p.Size = Vector3.new(14, 10, 14) |
| 58 | p.CFrame = CFrame.new(0, 15.08, 0) |
| 59 | p.BrickColor = BrickColor.new("Medium stone grey") |
| 60 | p.Material = Enum.Material.Glacier |
| 61 | p.MaterialVariant = "2022 Inlet" |
| 62 | p.Anchored = true |
| 63 | p.Parent = model |
| 64 | end |
| 65 | do |
| 66 | local p = Instance.new("Part") |
| 67 | p.Name = "KeepTop" |
| 68 | p.Size = Vector3.new(12, 4, 12) |
| 69 | p.CFrame = CFrame.new(0, 22.12, 0) |
| 70 | p.BrickColor = BrickColor.new("Medium stone grey") |
| 71 | p.Material = Enum.Material.Glacier |
| 72 | p.MaterialVariant = "2022 Inlet" |
| 73 | p.Anchored = true |
| 74 | p.Parent = model |
| 75 | end |
| 76 | do |
| 77 | local p = Instance.new("Part") |
| 78 | p.Name = "KeepRoof1" |
| 79 | p.Size = Vector3.new(13, 2, 13) |
| 80 | p.CFrame = CFrame.new(0, 25.16, 0) |
| 81 | p.BrickColor = BrickColor.new("Earth blue") |
| 82 | p.Material = Enum.Material.Glacier |
| 83 | p.MaterialVariant = "2022 Stud" |
| 84 | p.Anchored = true |
| 85 | p.Parent = model |
| 86 | end |
| 87 | do |
| 88 | local p = Instance.new("Part") |
| 89 | p.Name = "KeepRoof2" |
| 90 | p.Size = Vector3.new(11, 2, 11) |
| 91 | p.CFrame = CFrame.new(0, 27.2, 0) |
| 92 | p.BrickColor = BrickColor.new("Earth blue") |
| 93 | p.Material = Enum.Material.Glacier |
| 94 | p.MaterialVariant = "2022 Stud" |
| 95 | p.Anchored = true |
| 96 | p.Parent = model |
| 97 | end |
| 98 | do |
| 99 | local p = Instance.new("Part") |
| 100 | p.Name = "KeepRoof3" |
| 101 | p.Size = Vector3.new(9, 2, 9) |
| 102 | p.CFrame = CFrame.new(0, 29.2, 0) |
| 103 | p.BrickColor = BrickColor.new("Earth blue") |
| 104 | p.Material = Enum.Material.Glacier |
| 105 | p.MaterialVariant = "2022 Stud" |
| 106 | p.Anchored = true |
| 107 | p.Parent = model |
| 108 | end |
| 109 | do |
| 110 | local p = Instance.new("Part") |
| 111 | p.Name = "KeepRoof4" |
| 112 | p.Size = Vector3.new(7, 2, 7) |
| 113 | p.CFrame = CFrame.new(0, 31.2, 0) |
| 114 | p.BrickColor = BrickColor.new("Earth blue") |
| 115 | p.Material = Enum.Material.Glacier |
| 116 | p.MaterialVariant = "2022 Stud" |
| 117 | p.Anchored = true |
| 118 | p.Parent = model |
| 119 | end |
| 120 | do |
| 121 | local p = Instance.new("Part") |
| 122 | p.Name = "KeepRoof5" |
| 123 | p.Size = Vector3.new(5, 2, 5) |
| 124 | p.CFrame = CFrame.new(0, 33.2, 0) |
| 125 | p.BrickColor = BrickColor.new("Earth blue") |
| 126 | p.Material = Enum.Material.Glacier |
| 127 | p.MaterialVariant = "2022 Stud" |
| 128 | p.Anchored = true |
| 129 | p.Parent = model |
| 130 | end |
| 131 | do |
| 132 | local p = Instance.new("Part") |
| 133 | p.Name = "KeepRoof6" |
| 134 | p.Size = Vector3.new(3, 2, 3) |
| 135 | p.CFrame = CFrame.new(0, 35.2, 0) |
| 136 | p.BrickColor = BrickColor.new("Earth blue") |
| 137 | p.Material = Enum.Material.Glacier |
| 138 | p.MaterialVariant = "2022 Stud" |
| 139 | p.Anchored = true |
| 140 | p.Parent = model |
| 141 | end |
| 142 | do |
| 143 | local p = Instance.new("Part") |
| 144 | p.Name = "KeepRoof7" |
| 145 | p.Size = Vector3.new(1, 2, 1) |
| 146 | p.CFrame = CFrame.new(0, 37.2, 0) |
| 147 | p.BrickColor = BrickColor.new("Earth blue") |
| 148 | p.Material = Enum.Material.Glacier |
| 149 | p.MaterialVariant = "2022 Stud" |
| 150 | p.Anchored = true |
| 151 | p.Parent = model |
| 152 | end |
| 153 | do |
| 154 | local p = Instance.new("Part") |
| 155 | p.Name = "GatehouseBase" |
| 156 | p.Size = Vector3.new(12, 8, 8) |
| 157 | p.CFrame = CFrame.new(0, 4.04, -12.04) |
| 158 | p.BrickColor = BrickColor.new("Medium stone grey") |
| 159 | p.Material = Enum.Material.Glacier |
| 160 | p.MaterialVariant = "2022 Inlet" |
| 161 | p.Anchored = true |
| 162 | p.Parent = model |
| 163 | end |
| 164 | do |
| 165 | local p = Instance.new("Part") |
| 166 | p.Name = "GatehouseTop" |
| 167 | p.Size = Vector3.new(14, 4, 10) |
| 168 | p.CFrame = CFrame.new(0, 10.08, -12.04) |
| 169 | p.BrickColor = BrickColor.new("Medium stone grey") |
| 170 | p.Material = Enum.Material.Glacier |
| 171 | p.MaterialVariant = "2022 Inlet" |
| 172 | p.Anchored = true |
| 173 | p.Parent = model |
| 174 | end |
| 175 | do |
| 176 | local p = Instance.new("Part") |
| 177 | p.Name = "GateDoor" |
| 178 | p.Size = Vector3.new(6, 4, 0.5) |
| 179 | p.CFrame = CFrame.new(0, 2.04, -15.5) |
| 180 | p.BrickColor = BrickColor.new("Reddish brown") |
| 181 | p.Material = Enum.Material.Glacier |
| 182 | p.MaterialVariant = "2022 Small Stud" |
| 183 | p.Anchored = true |
| 184 | p.Parent = model |
| 185 | end |
| 186 | do |
| 187 | local p = Instance.new("Part") |
| 188 | p.Name = "FrontWallL" |
| 189 | p.Size = Vector3.new(12, 8, 4) |
| 190 | p.CFrame = CFrame.new(-12.08, 4, -12.08) |
| 191 | p.BrickColor = BrickColor.new("Medium stone grey") |
| 192 | p.Material = Enum.Material.Glacier |
| 193 | p.MaterialVariant = "2022 Inlet" |
| 194 | p.Anchored = true |
| 195 | p.Parent = model |
| 196 | end |
| 197 | do |
| 198 | local p = Instance.new("Part") |
| 199 | p.Name = "FrontWallR" |
| 200 | p.Size = Vector3.new(12, 8, 4) |
| 201 | p.CFrame = CFrame.new(12.08, 4, -12.08) |
| 202 | p.BrickColor = BrickColor.new("Medium stone grey") |
| 203 | p.Material = Enum.Material.Glacier |
| 204 | p.MaterialVariant = "2022 Inlet" |
| 205 | p.Anchored = true |
| 206 | p.Parent = model |
| 207 | end |
| 208 | do |
| 209 | local p = Instance.new("Part") |
| 210 | p.Shape = Enum.PartType.Cylinder |
| 211 | p.Name = "TowerL_Base" |
| 212 | p.Size = Vector3.new(12, 8, 8) |
| 213 | p.CFrame = CFrame.new(-20, 6.04, -12) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 214 | p.BrickColor = BrickColor.new("Medium stone grey") |
| 215 | p.Material = Enum.Material.Glacier |
| 216 | p.MaterialVariant = "2022 Inlet" |
| 217 | p.Anchored = true |
| 218 | p.Parent = model |
| 219 | end |
| 220 | do |
| 221 | local p = Instance.new("Part") |
| 222 | p.Shape = Enum.PartType.Cylinder |
| 223 | p.Name = "TowerL_Mid" |
| 224 | p.Size = Vector3.new(4, 9, 9) |
| 225 | p.CFrame = CFrame.new(-20, 14.08, -12) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 226 | p.BrickColor = BrickColor.new("Medium stone grey") |
| 227 | p.Material = Enum.Material.Glacier |
| 228 | p.MaterialVariant = "2022 Inlet" |
| 229 | p.Anchored = true |
| 230 | p.Parent = model |
| 231 | end |
| 232 | do |
| 233 | local p = Instance.new("Part") |
| 234 | p.Shape = Enum.PartType.Cylinder |
| 235 | p.Name = "TowerL_Roof1" |
| 236 | p.Size = Vector3.new(2, 10, 10) |
| 237 | p.CFrame = CFrame.new(-20, 17.12, -12) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 238 | p.BrickColor = BrickColor.new("Earth blue") |
| 239 | p.Material = Enum.Material.Glacier |
| 240 | p.MaterialVariant = "2022 Stud" |
| 241 | p.Anchored = true |
| 242 | p.Parent = model |
| 243 | end |
| 244 | do |
| 245 | local p = Instance.new("Part") |
| 246 | p.Shape = Enum.PartType.Cylinder |
| 247 | p.Name = "TowerL_Roof2" |
| 248 | p.Size = Vector3.new(2, 8, 8) |
| 249 | p.CFrame = CFrame.new(-20, 19.16, -12) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 250 | p.BrickColor = BrickColor.new("Earth blue") |
| 251 | p.Material = Enum.Material.Glacier |
| 252 | p.MaterialVariant = "2022 Stud" |
| 253 | p.Anchored = true |
| 254 | p.Parent = model |
| 255 | end |
| 256 | do |
| 257 | local p = Instance.new("Part") |
| 258 | p.Shape = Enum.PartType.Cylinder |
| 259 | p.Name = "TowerL_Roof3" |
| 260 | p.Size = Vector3.new(2, 6, 6) |
| 261 | p.CFrame = CFrame.new(-20, 21.2, -12) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 262 | p.BrickColor = BrickColor.new("Earth blue") |
| 263 | p.Material = Enum.Material.Glacier |
| 264 | p.MaterialVariant = "2022 Stud" |
| 265 | p.Anchored = true |
| 266 | p.Parent = model |
| 267 | end |
| 268 | do |
| 269 | local p = Instance.new("Part") |
| 270 | p.Shape = Enum.PartType.Cylinder |
| 271 | p.Name = "TowerL_Roof4" |
| 272 | p.Size = Vector3.new(2, 4, 4) |
| 273 | p.CFrame = CFrame.new(-20, 23.2, -12) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 274 | p.BrickColor = BrickColor.new("Earth blue") |
| 275 | p.Material = Enum.Material.Glacier |
| 276 | p.MaterialVariant = "2022 Stud" |
| 277 | p.Anchored = true |
| 278 | p.Parent = model |
| 279 | end |
| 280 | do |
| 281 | local p = Instance.new("Part") |
| 282 | p.Shape = Enum.PartType.Cylinder |
| 283 | p.Name = "TowerL_Roof5" |
| 284 | p.Size = Vector3.new(2, 2, 2) |
| 285 | p.CFrame = CFrame.new(-20, 25.2, -12) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 286 | p.BrickColor = BrickColor.new("Earth blue") |
| 287 | p.Material = Enum.Material.Glacier |
| 288 | p.MaterialVariant = "2022 Stud" |
| 289 | p.Anchored = true |
| 290 | p.Parent = model |
| 291 | end |
| 292 | do |
| 293 | local p = Instance.new("Part") |
| 294 | p.Shape = Enum.PartType.Cylinder |
| 295 | p.Name = "TowerR_Base" |
| 296 | p.Size = Vector3.new(12, 8, 8) |
| 297 | p.CFrame = CFrame.new(20, 6.04, -12) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 298 | p.BrickColor = BrickColor.new("Medium stone grey") |
| 299 | p.Material = Enum.Material.Glacier |
| 300 | p.MaterialVariant = "2022 Inlet" |
| 301 | p.Anchored = true |
| 302 | p.Parent = model |
| 303 | end |
| 304 | do |
| 305 | local p = Instance.new("Part") |
| 306 | p.Shape = Enum.PartType.Cylinder |
| 307 | p.Name = "TowerR_Mid" |
| 308 | p.Size = Vector3.new(4, 9, 9) |
| 309 | p.CFrame = CFrame.new(20, 14.08, -12) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 310 | p.BrickColor = BrickColor.new("Medium stone grey") |
| 311 | p.Material = Enum.Material.Glacier |
| 312 | p.MaterialVariant = "2022 Inlet" |
| 313 | p.Anchored = true |
| 314 | p.Parent = model |
| 315 | end |
| 316 | do |
| 317 | local p = Instance.new("Part") |
| 318 | p.Shape = Enum.PartType.Cylinder |
| 319 | p.Name = "TowerR_Roof1" |
| 320 | p.Size = Vector3.new(2, 10, 10) |
| 321 | p.CFrame = CFrame.new(20, 17.12, -12) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 322 | p.BrickColor = BrickColor.new("Earth blue") |
| 323 | p.Material = Enum.Material.Glacier |
| 324 | p.MaterialVariant = "2022 Stud" |
| 325 | p.Anchored = true |
| 326 | p.Parent = model |
| 327 | end |
| 328 | do |
| 329 | local p = Instance.new("Part") |
| 330 | p.Shape = Enum.PartType.Cylinder |
| 331 | p.Name = "TowerR_Roof2" |
| 332 | p.Size = Vector3.new(2, 8, 8) |
| 333 | p.CFrame = CFrame.new(20, 19.16, -12) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 334 | p.BrickColor = BrickColor.new("Earth blue") |
| 335 | p.Material = Enum.Material.Glacier |
| 336 | p.MaterialVariant = "2022 Stud" |
| 337 | p.Anchored = true |
| 338 | p.Parent = model |
| 339 | end |
| 340 | do |
| 341 | local p = Instance.new("Part") |
| 342 | p.Shape = Enum.PartType.Cylinder |
| 343 | p.Name = "TowerR_Roof3" |
| 344 | p.Size = Vector3.new(2, 6, 6) |
| 345 | p.CFrame = CFrame.new(20, 21.2, -12) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 346 | p.BrickColor = BrickColor.new("Earth blue") |
| 347 | p.Material = Enum.Material.Glacier |
| 348 | p.MaterialVariant = "2022 Stud" |
| 349 | p.Anchored = true |
| 350 | p.Parent = model |
| 351 | end |
| 352 | do |
| 353 | local p = Instance.new("Part") |
| 354 | p.Shape = Enum.PartType.Cylinder |
| 355 | p.Name = "TowerR_Roof4" |
| 356 | p.Size = Vector3.new(2, 4, 4) |
| 357 | p.CFrame = CFrame.new(20, 23.2, -12) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 358 | p.BrickColor = BrickColor.new("Earth blue") |
| 359 | p.Material = Enum.Material.Glacier |
| 360 | p.MaterialVariant = "2022 Stud" |
| 361 | p.Anchored = true |
| 362 | p.Parent = model |
| 363 | end |
| 364 | do |
| 365 | local p = Instance.new("Part") |
| 366 | p.Shape = Enum.PartType.Cylinder |
| 367 | p.Name = "TowerR_Roof5" |
| 368 | p.Size = Vector3.new(2, 2, 2) |
| 369 | p.CFrame = CFrame.new(20, 25.2, -12) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 370 | p.BrickColor = BrickColor.new("Earth blue") |
| 371 | p.Material = Enum.Material.Glacier |
| 372 | p.MaterialVariant = "2022 Stud" |
| 373 | p.Anchored = true |
| 374 | p.Parent = model |
| 375 | end |
| 376 | do |
| 377 | local p = Instance.new("Part") |
| 378 | p.Name = "SideWallL" |
| 379 | p.Size = Vector3.new(4, 8, 20) |
| 380 | p.CFrame = CFrame.new(-20, 4.08, 0) |
| 381 | p.BrickColor = BrickColor.new("Medium stone grey") |
| 382 | p.Material = Enum.Material.Glacier |
| 383 | p.MaterialVariant = "2022 Inlet" |
| 384 | p.Anchored = true |
| 385 | p.Parent = model |
| 386 | end |
| 387 | do |
| 388 | local p = Instance.new("Part") |
| 389 | p.Name = "SideWallR" |
| 390 | p.Size = Vector3.new(4, 8, 20) |
| 391 | p.CFrame = CFrame.new(20, 4.08, 0) |
| 392 | p.BrickColor = BrickColor.new("Medium stone grey") |
| 393 | p.Material = Enum.Material.Glacier |
| 394 | p.MaterialVariant = "2022 Inlet" |
| 395 | p.Anchored = true |
| 396 | p.Parent = model |
| 397 | end |
| 398 | do |
| 399 | local p = Instance.new("Part") |
| 400 | p.Name = "BackWall" |
| 401 | p.Size = Vector3.new(40, 8, 4) |
| 402 | p.CFrame = CFrame.new(0, 4.04, 10.04) |
| 403 | p.BrickColor = BrickColor.new("Medium stone grey") |
| 404 | p.Material = Enum.Material.Glacier |
| 405 | p.MaterialVariant = "2022 Inlet" |
| 406 | p.Anchored = true |
| 407 | p.Parent = model |
| 408 | end |
| 409 | do |
| 410 | local p = Instance.new("Part") |
| 411 | p.Shape = Enum.PartType.Cylinder |
| 412 | p.Name = "TowerBL_Base" |
| 413 | p.Size = Vector3.new(20, 10, 10) |
| 414 | p.CFrame = CFrame.new(-20, 10.04, 10) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 415 | p.BrickColor = BrickColor.new("Medium stone grey") |
| 416 | p.Material = Enum.Material.Glacier |
| 417 | p.MaterialVariant = "2022 Inlet" |
| 418 | p.Anchored = true |
| 419 | p.Parent = model |
| 420 | end |
| 421 | do |
| 422 | local p = Instance.new("Part") |
| 423 | p.Shape = Enum.PartType.Cylinder |
| 424 | p.Name = "TowerBL_Mid" |
| 425 | p.Size = Vector3.new(10, 11, 11) |
| 426 | p.CFrame = CFrame.new(-20, 25.08, 10) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 427 | p.BrickColor = BrickColor.new("Medium stone grey") |
| 428 | p.Material = Enum.Material.Glacier |
| 429 | p.MaterialVariant = "2022 Inlet" |
| 430 | p.Anchored = true |
| 431 | p.Parent = model |
| 432 | end |
| 433 | do |
| 434 | local p = Instance.new("Part") |
| 435 | p.Shape = Enum.PartType.Cylinder |
| 436 | p.Name = "TowerBL_Roof1" |
| 437 | p.Size = Vector3.new(2, 12, 12) |
| 438 | p.CFrame = CFrame.new(-20, 31.12, 10) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 439 | p.BrickColor = BrickColor.new("Earth blue") |
| 440 | p.Material = Enum.Material.Glacier |
| 441 | p.MaterialVariant = "2022 Stud" |
| 442 | p.Anchored = true |
| 443 | p.Parent = model |
| 444 | end |
| 445 | do |
| 446 | local p = Instance.new("Part") |
| 447 | p.Shape = Enum.PartType.Cylinder |
| 448 | p.Name = "TowerBL_Roof2" |
| 449 | p.Size = Vector3.new(2, 10, 10) |
| 450 | p.CFrame = CFrame.new(-20, 33.16, 10) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 451 | p.BrickColor = BrickColor.new("Earth blue") |
| 452 | p.Material = Enum.Material.Glacier |
| 453 | p.MaterialVariant = "2022 Stud" |
| 454 | p.Anchored = true |
| 455 | p.Parent = model |
| 456 | end |
| 457 | do |
| 458 | local p = Instance.new("Part") |
| 459 | p.Shape = Enum.PartType.Cylinder |
| 460 | p.Name = "TowerBL_Roof3" |
| 461 | p.Size = Vector3.new(2, 8, 8) |
| 462 | p.CFrame = CFrame.new(-20, 35.2, 10) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 463 | p.BrickColor = BrickColor.new("Earth blue") |
| 464 | p.Material = Enum.Material.Glacier |
| 465 | p.MaterialVariant = "2022 Stud" |
| 466 | p.Anchored = true |
| 467 | p.Parent = model |
| 468 | end |
| 469 | do |
| 470 | local p = Instance.new("Part") |
| 471 | p.Shape = Enum.PartType.Cylinder |
| 472 | p.Name = "TowerBL_Roof4" |
| 473 | p.Size = Vector3.new(2, 6, 6) |
| 474 | p.CFrame = CFrame.new(-20, 37.2, 10) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 475 | p.BrickColor = BrickColor.new("Earth blue") |
| 476 | p.Material = Enum.Material.Glacier |
| 477 | p.MaterialVariant = "2022 Stud" |
| 478 | p.Anchored = true |
| 479 | p.Parent = model |
| 480 | end |
| 481 | do |
| 482 | local p = Instance.new("Part") |
| 483 | p.Shape = Enum.PartType.Cylinder |
| 484 | p.Name = "TowerBL_Roof5" |
| 485 | p.Size = Vector3.new(2, 4, 4) |
| 486 | p.CFrame = CFrame.new(-20, 39.2, 10) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 487 | p.BrickColor = BrickColor.new("Earth blue") |
| 488 | p.Material = Enum.Material.Glacier |
| 489 | p.MaterialVariant = "2022 Stud" |
| 490 | p.Anchored = true |
| 491 | p.Parent = model |
| 492 | end |
| 493 | do |
| 494 | local p = Instance.new("Part") |
| 495 | p.Shape = Enum.PartType.Cylinder |
| 496 | p.Name = "TowerBL_Roof6" |
| 497 | p.Size = Vector3.new(2, 2, 2) |
| 498 | p.CFrame = CFrame.new(-20, 41.2, 10) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 499 | p.BrickColor = BrickColor.new("Earth blue") |
| 500 | p.Material = Enum.Material.Glacier |
| 501 | p.MaterialVariant = "2022 Stud" |
| 502 | p.Anchored = true |
| 503 | p.Parent = model |
| 504 | end |
| 505 | do |
| 506 | local p = Instance.new("Part") |
| 507 | p.Shape = Enum.PartType.Cylinder |
| 508 | p.Name = "TowerBR_Base" |
| 509 | p.Size = Vector3.new(16, 8, 8) |
| 510 | p.CFrame = CFrame.new(20, 8.12, 10) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 511 | p.BrickColor = BrickColor.new("Medium stone grey") |
| 512 | p.Material = Enum.Material.Glacier |
| 513 | p.MaterialVariant = "2022 Inlet" |
| 514 | p.Anchored = true |
| 515 | p.Parent = model |
| 516 | end |
| 517 | do |
| 518 | local p = Instance.new("Part") |
| 519 | p.Shape = Enum.PartType.Cylinder |
| 520 | p.Name = "TowerBR_Roof1" |
| 521 | p.Size = Vector3.new(2, 9, 9) |
| 522 | p.CFrame = CFrame.new(20, 17.16, 10) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 523 | p.BrickColor = BrickColor.new("Earth blue") |
| 524 | p.Material = Enum.Material.Glacier |
| 525 | p.MaterialVariant = "2022 Stud" |
| 526 | p.Anchored = true |
| 527 | p.Parent = model |
| 528 | end |
| 529 | do |
| 530 | local p = Instance.new("Part") |
| 531 | p.Shape = Enum.PartType.Cylinder |
| 532 | p.Name = "TowerBR_Roof2" |
| 533 | p.Size = Vector3.new(2, 7, 7) |
| 534 | p.CFrame = CFrame.new(20, 19.2, 10) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 535 | p.BrickColor = BrickColor.new("Earth blue") |
| 536 | p.Material = Enum.Material.Glacier |
| 537 | p.MaterialVariant = "2022 Stud" |
| 538 | p.Anchored = true |
| 539 | p.Parent = model |
| 540 | end |
| 541 | do |
| 542 | local p = Instance.new("Part") |
| 543 | p.Shape = Enum.PartType.Cylinder |
| 544 | p.Name = "TowerBR_Roof3" |
| 545 | p.Size = Vector3.new(2, 5, 5) |
| 546 | p.CFrame = CFrame.new(20, 21.2, 10) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 547 | p.BrickColor = BrickColor.new("Earth blue") |
| 548 | p.Material = Enum.Material.Glacier |
| 549 | p.MaterialVariant = "2022 Stud" |
| 550 | p.Anchored = true |
| 551 | p.Parent = model |
| 552 | end |
| 553 | do |
| 554 | local p = Instance.new("Part") |
| 555 | p.Shape = Enum.PartType.Cylinder |
| 556 | p.Name = "TowerBR_Roof4" |
| 557 | p.Size = Vector3.new(2, 3, 3) |
| 558 | p.CFrame = CFrame.new(20, 23.2, 10) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 559 | p.BrickColor = BrickColor.new("Earth blue") |
| 560 | p.Material = Enum.Material.Glacier |
| 561 | p.MaterialVariant = "2022 Stud" |
| 562 | p.Anchored = true |
| 563 | p.Parent = model |
| 564 | end |
| 565 | do |
| 566 | local p = Instance.new("Part") |
| 567 | p.Name = "BannerL" |
| 568 | p.Size = Vector3.new(2, 4, 0.2) |
| 569 | p.CFrame = CFrame.new(-4, 8, -16.18) |
| 570 | p.BrickColor = BrickColor.new("Bright red") |
| 571 | p.Material = Enum.Material.Glacier |
| 572 | p.MaterialVariant = "2022 Stud" |
| 573 | p.Anchored = true |
| 574 | p.Parent = model |
| 575 | end |
| 576 | do |
| 577 | local p = Instance.new("Part") |
| 578 | p.Name = "BannerR" |
| 579 | p.Size = Vector3.new(2, 4, 0.2) |
| 580 | p.CFrame = CFrame.new(4, 8, -16.18) |
| 581 | p.BrickColor = BrickColor.new("Bright red") |
| 582 | p.Material = Enum.Material.Glacier |
| 583 | p.MaterialVariant = "2022 Stud" |
| 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 = "FountainBase" |
| 591 | p.Size = Vector3.new(1, 4, 4) |
| 592 | p.CFrame = CFrame.new(0, 0.54, -4) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 593 | p.BrickColor = BrickColor.new("Medium stone grey") |
| 594 | p.Material = Enum.Material.Glacier |
| 595 | p.MaterialVariant = "2022 Inlet" |
| 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 = "FountainWater" |
| 603 | p.Size = Vector3.new(0.2, 3.8, 3.8) |
| 604 | p.CFrame = CFrame.new(0, 1, -4) * 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 = "FountainCenter" |
| 615 | p.Size = Vector3.new(3, 1, 1) |
| 616 | p.CFrame = CFrame.new(0, 2, -4) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 617 | p.BrickColor = BrickColor.new("Medium stone grey") |
| 618 | p.Material = Enum.Material.Glacier |
| 619 | p.MaterialVariant = "2022 Inlet" |
| 620 | p.Anchored = true |
| 621 | p.Parent = model |
| 622 | end |
| 623 | do |
| 624 | local p = Instance.new("Part") |
| 625 | p.Name = "OutbuildingBase" |
| 626 | p.Size = Vector3.new(6, 4, 6) |
| 627 | p.CFrame = CFrame.new(-10, 2.04, -4) |
| 628 | p.BrickColor = BrickColor.new("Reddish brown") |
| 629 | p.Material = Enum.Material.Glacier |
| 630 | p.MaterialVariant = "2022 Small Stud" |
| 631 | p.Anchored = true |
| 632 | p.Parent = model |
| 633 | end |
| 634 | do |
| 635 | local p = Instance.new("Part") |
| 636 | p.Name = "OutbuildingRoof" |
| 637 | p.Size = Vector3.new(7, 2, 7) |
| 638 | p.CFrame = CFrame.new(-10, 5.08, -4) |
| 639 | p.BrickColor = BrickColor.new("Earth blue") |
| 640 | p.Material = Enum.Material.Glacier |
| 641 | p.MaterialVariant = "2022 Stud" |
| 642 | p.Anchored = true |
| 643 | p.Parent = model |
| 644 | end |
| 645 | do |
| 646 | local rightV = Vector3.new(1,0,0).Unit |
| 647 | local upV = (Vector3.new(0,1,0) - Vector3.new(0,1,0):Dot(rightV)*rightV).Unit |
| 648 | local normalV = upV:Cross(rightV) |
| 649 | local pos = Vector3.new(0, 4, -16) |
| 650 | local cyl = Instance.new("Part") |
| 651 | cyl.Shape = Enum.PartType.Cylinder |
| 652 | cyl.Size = Vector3.new(1, 6, 6) |
| 653 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 654 | cyl.BrickColor = BrickColor.new("Dark stone grey") |
| 655 | cyl.Material = Enum.Material.Glacier |
| 656 | cyl.MaterialVariant = "2022 Stud" |
| 657 | cyl.Anchored = true; cyl.Parent = workspace |
| 658 | local cuts = {} |
| 659 | local angBoxes = {} |
| 660 | do |
| 661 | local edgeDir = 1*rightV + 0*upV |
| 662 | local edgePerp = 0*rightV + 1*upV |
| 663 | local cut = Instance.new("Part") |
| 664 | cut.Size = Vector3.new(12, 1.2, 12) |
| 665 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 6 * edgePerp, edgeDir, normalV) |
| 666 | cut.BrickColor = BrickColor.new("Dark stone grey") |
| 667 | cut.Material = Enum.Material.Glacier |
| 668 | cut.MaterialVariant = "2022 Stud" |
| 669 | cut.Anchored = true; cut.Parent = workspace |
| 670 | table.insert(angBoxes, cut) |
| 671 | end |
| 672 | do |
| 673 | local edgeDir = -1*rightV + 0*upV |
| 674 | local edgePerp = 0*rightV + -1*upV |
| 675 | local cut = Instance.new("Part") |
| 676 | cut.Size = Vector3.new(12, 1.2, 12) |
| 677 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 6 * edgePerp, edgeDir, normalV) |
| 678 | cut.BrickColor = BrickColor.new("Dark stone grey") |
| 679 | cut.Material = Enum.Material.Glacier |
| 680 | cut.MaterialVariant = "2022 Stud" |
| 681 | cut.Anchored = true; cut.Parent = workspace |
| 682 | table.insert(angBoxes, cut) |
| 683 | end |
| 684 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 685 | if #cuts > 0 then |
| 686 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 687 | for _, c in ipairs(cuts) do c:Destroy() end |
| 688 | if ok and result then |
| 689 | cyl:Destroy() |
| 690 | result.Name = "GateArch"; result.Anchored = true; result.Parent = model |
| 691 | else |
| 692 | cyl.Name = "GateArch"; cyl.Parent = model |
| 693 | end |
| 694 | else |
| 695 | cyl.Name = "GateArch"; cyl.Parent = model |
| 696 | end |
| 697 | end |
| 698 | model.PrimaryPart = model:FindFirstChild("KeepBase") |
| 699 | print("MedievalFortifiedManor built: " .. #model:GetChildren() .. " parts") |
Loading comments...