Loading model...
by Mimi · 7/16/2026
Lua Script
| 1 | -- Generated with StudForge.org | AI-powered 3D models for Roblox |
| 2 | -- Model: SadidaPalace |
| 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 = "SadidaPalace" |
| 21 | model.Parent = workspace |
| 22 | |
| 23 | local variants = { |
| 24 | ["Brick yellow"] = "2022 Stud", |
| 25 | ["Bright green"] = "2022 Stud", |
| 26 | ["Brown"] = "2022 Stud", |
| 27 | ["Dark green"] = "2022 Stud", |
| 28 | ["Dark stone grey"] = "2022 Stud", |
| 29 | ["Light stone grey"] = "2022 Glue", |
| 30 | ["Medium stone grey"] = "2022 Inlet", |
| 31 | ["Really black"] = "2022 Universal", |
| 32 | ["Reddish brown"] = "2022 Small Stud", |
| 33 | } |
| 34 | do |
| 35 | local p = Instance.new("Part") |
| 36 | p.Name = "Base" |
| 37 | p.Size = Vector3.new(24, 1, 20) |
| 38 | p.CFrame = CFrame.new(0, 0.46, 0) |
| 39 | p.BrickColor = BrickColor.new("Reddish brown") |
| 40 | p.Material = Enum.Material.Glacier |
| 41 | p.MaterialVariant = "2022 Small Stud" |
| 42 | p.Anchored = true |
| 43 | p.Parent = model |
| 44 | end |
| 45 | do |
| 46 | local p = Instance.new("Part") |
| 47 | p.Name = "Step1" |
| 48 | p.Size = Vector3.new(8, 1, 2) |
| 49 | p.CFrame = CFrame.new(-0.04, 0.5, -11.04) |
| 50 | p.BrickColor = BrickColor.new("Brick yellow") |
| 51 | p.Material = Enum.Material.Glacier |
| 52 | p.MaterialVariant = "2022 Stud" |
| 53 | p.Anchored = true |
| 54 | p.Parent = model |
| 55 | end |
| 56 | do |
| 57 | local p = Instance.new("Part") |
| 58 | p.Name = "Step2" |
| 59 | p.Size = Vector3.new(8, 1, 2) |
| 60 | p.CFrame = CFrame.new(-0.04, 1.54, -9.12) |
| 61 | p.BrickColor = BrickColor.new("Brick yellow") |
| 62 | p.Material = Enum.Material.Glacier |
| 63 | p.MaterialVariant = "2022 Stud" |
| 64 | p.Anchored = true |
| 65 | p.Parent = model |
| 66 | end |
| 67 | do |
| 68 | local p = Instance.new("Part") |
| 69 | p.Name = "Step3" |
| 70 | p.Size = Vector3.new(8, 1, 2) |
| 71 | p.CFrame = CFrame.new(-0.04, 2.5, -7.08) |
| 72 | p.BrickColor = BrickColor.new("Brick yellow") |
| 73 | p.Material = Enum.Material.Glacier |
| 74 | p.MaterialVariant = "2022 Stud" |
| 75 | p.Anchored = true |
| 76 | p.Parent = model |
| 77 | end |
| 78 | do |
| 79 | local p = Instance.new("Part") |
| 80 | p.Name = "RailL" |
| 81 | p.Size = Vector3.new(1, 4, 6) |
| 82 | p.CFrame = CFrame.new(-4.5, 2.08, -9) |
| 83 | p.BrickColor = BrickColor.new("Reddish brown") |
| 84 | p.Material = Enum.Material.Glacier |
| 85 | p.MaterialVariant = "2022 Small Stud" |
| 86 | p.Anchored = true |
| 87 | p.Parent = model |
| 88 | end |
| 89 | do |
| 90 | local p = Instance.new("Part") |
| 91 | p.Name = "RailR" |
| 92 | p.Size = Vector3.new(1, 4, 6) |
| 93 | p.CFrame = CFrame.new(4.5, 2.08, -9) |
| 94 | p.BrickColor = BrickColor.new("Reddish brown") |
| 95 | p.Material = Enum.Material.Glacier |
| 96 | p.MaterialVariant = "2022 Small Stud" |
| 97 | p.Anchored = true |
| 98 | p.Parent = model |
| 99 | end |
| 100 | do |
| 101 | local p = Instance.new("Part") |
| 102 | p.Name = "WallCenter" |
| 103 | p.Size = Vector3.new(18, 12, 16) |
| 104 | p.CFrame = CFrame.new(0, 7, 0) |
| 105 | p.BrickColor = BrickColor.new("Reddish brown") |
| 106 | p.Material = Enum.Material.Glacier |
| 107 | p.MaterialVariant = "2022 Small Stud" |
| 108 | p.Anchored = true |
| 109 | p.Parent = model |
| 110 | end |
| 111 | do |
| 112 | local p = Instance.new("Part") |
| 113 | p.Name = "WallFront" |
| 114 | p.Size = Vector3.new(20, 12, 12) |
| 115 | p.CFrame = CFrame.new(0, 7.04, -2.04) |
| 116 | p.BrickColor = BrickColor.new("Reddish brown") |
| 117 | p.Material = Enum.Material.Glacier |
| 118 | p.MaterialVariant = "2022 Small Stud" |
| 119 | p.Anchored = true |
| 120 | p.Parent = model |
| 121 | end |
| 122 | do |
| 123 | local p = Instance.new("Part") |
| 124 | p.Name = "TurretL" |
| 125 | p.Size = Vector3.new(4, 8, 4) |
| 126 | p.CFrame = CFrame.new(-10, 5.08, -2) |
| 127 | p.BrickColor = BrickColor.new("Reddish brown") |
| 128 | p.Material = Enum.Material.Glacier |
| 129 | p.MaterialVariant = "2022 Small Stud" |
| 130 | p.Anchored = true |
| 131 | p.Parent = model |
| 132 | end |
| 133 | do |
| 134 | local p = Instance.new("Part") |
| 135 | p.Name = "TurretR" |
| 136 | p.Size = Vector3.new(4, 8, 4) |
| 137 | p.CFrame = CFrame.new(10, 5.08, -2) |
| 138 | p.BrickColor = BrickColor.new("Reddish brown") |
| 139 | p.Material = Enum.Material.Glacier |
| 140 | p.MaterialVariant = "2022 Small Stud" |
| 141 | p.Anchored = true |
| 142 | p.Parent = model |
| 143 | end |
| 144 | do |
| 145 | local p = Instance.new("Part") |
| 146 | p.Name = "DoorL" |
| 147 | p.Size = Vector3.new(3, 6, 0.5) |
| 148 | p.CFrame = CFrame.new(-1.6, 5.08, -8) |
| 149 | p.BrickColor = BrickColor.new("Brown") |
| 150 | p.Material = Enum.Material.Glacier |
| 151 | p.MaterialVariant = "2022 Stud" |
| 152 | p.Anchored = true |
| 153 | p.Parent = model |
| 154 | end |
| 155 | do |
| 156 | local p = Instance.new("Part") |
| 157 | p.Name = "DoorR" |
| 158 | p.Size = Vector3.new(3, 6, 0.5) |
| 159 | p.CFrame = CFrame.new(1.6, 5.08, -8) |
| 160 | p.BrickColor = BrickColor.new("Brown") |
| 161 | p.Material = Enum.Material.Glacier |
| 162 | p.MaterialVariant = "2022 Stud" |
| 163 | p.Anchored = true |
| 164 | p.Parent = model |
| 165 | end |
| 166 | do |
| 167 | local p = Instance.new("Part") |
| 168 | p.Name = "HandleL" |
| 169 | p.Size = Vector3.new(0.3, 0.6, 0.3) |
| 170 | p.CFrame = CFrame.new(-0.5, 5, -8.48) |
| 171 | p.BrickColor = BrickColor.new("Really black") |
| 172 | p.Material = Enum.Material.Glacier |
| 173 | p.MaterialVariant = "2022 Universal" |
| 174 | p.Anchored = true |
| 175 | p.Parent = model |
| 176 | end |
| 177 | do |
| 178 | local p = Instance.new("Part") |
| 179 | p.Name = "HandleR" |
| 180 | p.Size = Vector3.new(0.3, 0.6, 0.3) |
| 181 | p.CFrame = CFrame.new(0.5, 5, -8.48) |
| 182 | p.BrickColor = BrickColor.new("Really black") |
| 183 | p.Material = Enum.Material.Glacier |
| 184 | p.MaterialVariant = "2022 Universal" |
| 185 | p.Anchored = true |
| 186 | p.Parent = model |
| 187 | end |
| 188 | do |
| 189 | local p = Instance.new("Part") |
| 190 | p.Name = "WinGlowL" |
| 191 | p.Size = Vector3.new(0.1, 2.5, 2.5) |
| 192 | p.CFrame = CFrame.new(-6, 8, -7.1) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)) |
| 193 | p.BrickColor = BrickColor.new("Deep orange") |
| 194 | p.Material = Enum.Material.Neon |
| 195 | p.Anchored = true |
| 196 | p.Parent = model |
| 197 | end |
| 198 | do |
| 199 | local p = Instance.new("Part") |
| 200 | p.Name = "WinGlowR" |
| 201 | p.Size = Vector3.new(0.1, 2.5, 2.5) |
| 202 | p.CFrame = CFrame.new(6, 8, -7.1) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)) |
| 203 | p.BrickColor = BrickColor.new("Deep orange") |
| 204 | p.Material = Enum.Material.Neon |
| 205 | p.Anchored = true |
| 206 | p.Parent = model |
| 207 | end |
| 208 | do |
| 209 | local p = Instance.new("Part") |
| 210 | p.Name = "HornL1" |
| 211 | p.Size = Vector3.new(4.69042, 1.2, 1.2) |
| 212 | p.CFrame = CFrame.new(-5.5, 22.5, 1) * CFrame.Angles(math.rad(-180), math.rad(-33.6901), math.rad(-140.238)) |
| 213 | p.BrickColor = BrickColor.new("Reddish brown") |
| 214 | p.Material = Enum.Material.Glacier |
| 215 | p.MaterialVariant = "2022 Small Stud" |
| 216 | p.Anchored = true |
| 217 | p.Parent = model |
| 218 | end |
| 219 | do |
| 220 | local p = Instance.new("Part") |
| 221 | p.Name = "HornR1" |
| 222 | p.Size = Vector3.new(4.69042, 1.2, 1.2) |
| 223 | p.CFrame = CFrame.new(5.5, 22.5, 1) * CFrame.Angles(math.rad(0), math.rad(-33.6901), math.rad(39.7622)) |
| 224 | p.BrickColor = BrickColor.new("Reddish brown") |
| 225 | p.Material = Enum.Material.Glacier |
| 226 | p.MaterialVariant = "2022 Small Stud" |
| 227 | p.Anchored = true |
| 228 | p.Parent = model |
| 229 | end |
| 230 | do |
| 231 | local p = Instance.new("Part") |
| 232 | p.Name = "TopLeaf1" |
| 233 | p.Size = Vector3.new(4, 0.5, 2) |
| 234 | p.CFrame = CFrame.new(0, 24, 0.04) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(20)) |
| 235 | p.BrickColor = BrickColor.new("Bright green") |
| 236 | p.Material = Enum.Material.Glacier |
| 237 | p.MaterialVariant = "2022 Stud" |
| 238 | p.Anchored = true |
| 239 | p.Parent = model |
| 240 | end |
| 241 | do |
| 242 | local p = Instance.new("Part") |
| 243 | p.Name = "TopLeaf2" |
| 244 | p.Size = Vector3.new(4, 0.5, 2) |
| 245 | p.CFrame = CFrame.new(0, 24, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-20)) |
| 246 | p.BrickColor = BrickColor.new("Bright green") |
| 247 | p.Material = Enum.Material.Glacier |
| 248 | p.MaterialVariant = "2022 Stud" |
| 249 | p.Anchored = true |
| 250 | p.Parent = model |
| 251 | end |
| 252 | do |
| 253 | local p = Instance.new("Part") |
| 254 | p.Name = "LanternL" |
| 255 | p.Size = Vector3.new(0.8, 1.2, 0.8) |
| 256 | p.CFrame = CFrame.new(-4.5, 6, -8.5) |
| 257 | p.BrickColor = BrickColor.new("Reddish brown") |
| 258 | p.Material = Enum.Material.Glacier |
| 259 | p.MaterialVariant = "2022 Small Stud" |
| 260 | p.Anchored = true |
| 261 | p.Parent = model |
| 262 | end |
| 263 | do |
| 264 | local p = Instance.new("Part") |
| 265 | p.Name = "LanternGlowL" |
| 266 | p.Size = Vector3.new(0.5, 0.8, 0.5) |
| 267 | p.CFrame = CFrame.new(-4.5, 6, -8.6) |
| 268 | p.BrickColor = BrickColor.new("Deep orange") |
| 269 | p.Material = Enum.Material.Neon |
| 270 | p.Anchored = true |
| 271 | p.Parent = model |
| 272 | end |
| 273 | do |
| 274 | local p = Instance.new("Part") |
| 275 | p.Name = "LanternR" |
| 276 | p.Size = Vector3.new(0.8, 1.2, 0.8) |
| 277 | p.CFrame = CFrame.new(4.5, 6, -8.5) |
| 278 | p.BrickColor = BrickColor.new("Reddish brown") |
| 279 | p.Material = Enum.Material.Glacier |
| 280 | p.MaterialVariant = "2022 Small Stud" |
| 281 | p.Anchored = true |
| 282 | p.Parent = model |
| 283 | end |
| 284 | do |
| 285 | local p = Instance.new("Part") |
| 286 | p.Name = "LanternGlowR" |
| 287 | p.Size = Vector3.new(0.5, 0.8, 0.5) |
| 288 | p.CFrame = CFrame.new(4.5, 6, -8.6) |
| 289 | p.BrickColor = BrickColor.new("Deep orange") |
| 290 | p.Material = Enum.Material.Neon |
| 291 | p.Anchored = true |
| 292 | p.Parent = model |
| 293 | end |
| 294 | do |
| 295 | local p = Instance.new("Part") |
| 296 | p.Name = "Rock1" |
| 297 | p.Size = Vector3.new(2, 1.5, 2) |
| 298 | p.CFrame = CFrame.new(-10, 1, -10) * CFrame.Angles(math.rad(0), math.rad(45), math.rad(0)) |
| 299 | p.BrickColor = BrickColor.new("Dark stone grey") |
| 300 | p.Material = Enum.Material.Glacier |
| 301 | p.MaterialVariant = "2022 Stud" |
| 302 | p.Anchored = true |
| 303 | p.Parent = model |
| 304 | end |
| 305 | do |
| 306 | local p = Instance.new("Part") |
| 307 | p.Name = "Rock2" |
| 308 | p.Size = Vector3.new(1.5, 1, 1.5) |
| 309 | p.CFrame = CFrame.new(11, 1, -8) * CFrame.Angles(math.rad(0), math.rad(15), math.rad(0)) |
| 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.Name = "Rock3" |
| 319 | p.Size = Vector3.new(3, 2, 3) |
| 320 | p.CFrame = CFrame.new(-8, 1.04, 8) |
| 321 | p.BrickColor = BrickColor.new("Dark stone grey") |
| 322 | p.Material = Enum.Material.Glacier |
| 323 | p.MaterialVariant = "2022 Stud" |
| 324 | p.Anchored = true |
| 325 | p.Parent = model |
| 326 | end |
| 327 | do |
| 328 | local p = Instance.new("Part") |
| 329 | p.Name = "Plant1" |
| 330 | p.Size = Vector3.new(1, 1, 1) |
| 331 | p.CFrame = CFrame.new(8, 1.54, -10) |
| 332 | p.BrickColor = BrickColor.new("Bright green") |
| 333 | p.Material = Enum.Material.Glacier |
| 334 | p.MaterialVariant = "2022 Stud" |
| 335 | p.Anchored = true |
| 336 | p.Parent = model |
| 337 | end |
| 338 | do |
| 339 | local p = Instance.new("Part") |
| 340 | p.Name = "Plant2" |
| 341 | p.Size = Vector3.new(1.2, 0.8, 1.2) |
| 342 | p.CFrame = CFrame.new(-11, 1.5, -5) |
| 343 | p.BrickColor = BrickColor.new("Dark green") |
| 344 | p.Material = Enum.Material.Glacier |
| 345 | p.MaterialVariant = "2022 Stud" |
| 346 | p.Anchored = true |
| 347 | p.Parent = model |
| 348 | end |
| 349 | do |
| 350 | local rightV = Vector3.new(1,0,0).Unit |
| 351 | local upV = (Vector3.new(0,1,0) - Vector3.new(0,1,0):Dot(rightV)*rightV).Unit |
| 352 | local normalV = upV:Cross(rightV) |
| 353 | local pos = Vector3.new(0, 6, -8.1) |
| 354 | local cyl = Instance.new("Part") |
| 355 | cyl.Shape = Enum.PartType.Cylinder |
| 356 | cyl.Size = Vector3.new(1.2, 10, 10) |
| 357 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 358 | cyl.BrickColor = BrickColor.new("Light stone grey") |
| 359 | cyl.Material = Enum.Material.Glacier |
| 360 | cyl.MaterialVariant = "2022 Glue" |
| 361 | cyl.Anchored = true; cyl.Parent = workspace |
| 362 | local cuts = {} |
| 363 | local hole = Instance.new("Part") |
| 364 | hole.Shape = Enum.PartType.Cylinder |
| 365 | hole.Size = Vector3.new(1.4, 7, 7) |
| 366 | hole.CFrame = cyl.CFrame |
| 367 | hole.BrickColor = BrickColor.new("Light stone grey") |
| 368 | hole.Material = Enum.Material.Glacier |
| 369 | hole.MaterialVariant = "2022 Glue" |
| 370 | hole.Anchored = true; hole.Parent = workspace |
| 371 | table.insert(cuts, hole) |
| 372 | local angBoxes = {} |
| 373 | do |
| 374 | local edgeDir = 1*rightV + 0*upV |
| 375 | local edgePerp = 0*rightV + 1*upV |
| 376 | local cut = Instance.new("Part") |
| 377 | cut.Size = Vector3.new(20, 1.4, 20) |
| 378 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 10 * edgePerp, edgeDir, normalV) |
| 379 | cut.BrickColor = BrickColor.new("Light stone grey") |
| 380 | cut.Material = Enum.Material.Glacier |
| 381 | cut.MaterialVariant = "2022 Glue" |
| 382 | cut.Anchored = true; cut.Parent = workspace |
| 383 | table.insert(angBoxes, cut) |
| 384 | end |
| 385 | do |
| 386 | local edgeDir = -1*rightV + 0*upV |
| 387 | local edgePerp = 0*rightV + -1*upV |
| 388 | local cut = Instance.new("Part") |
| 389 | cut.Size = Vector3.new(20, 1.4, 20) |
| 390 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 10 * edgePerp, edgeDir, normalV) |
| 391 | cut.BrickColor = BrickColor.new("Light stone grey") |
| 392 | cut.Material = Enum.Material.Glacier |
| 393 | cut.MaterialVariant = "2022 Glue" |
| 394 | cut.Anchored = true; cut.Parent = workspace |
| 395 | table.insert(angBoxes, cut) |
| 396 | end |
| 397 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 398 | if #cuts > 0 then |
| 399 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 400 | for _, c in ipairs(cuts) do c:Destroy() end |
| 401 | if ok and result then |
| 402 | cyl:Destroy() |
| 403 | result.Name = "Arch"; result.Anchored = true; result.Parent = model |
| 404 | else |
| 405 | cyl.Name = "Arch"; cyl.Parent = model |
| 406 | end |
| 407 | else |
| 408 | cyl.Name = "Arch"; cyl.Parent = model |
| 409 | end |
| 410 | end |
| 411 | do |
| 412 | local rightV = Vector3.new(1,0,0).Unit |
| 413 | local upV = (Vector3.new(0,1,0) - Vector3.new(0,1,0):Dot(rightV)*rightV).Unit |
| 414 | local normalV = upV:Cross(rightV) |
| 415 | local pos = Vector3.new(0, 7.5, -8.2) |
| 416 | local cyl = Instance.new("Part") |
| 417 | cyl.Shape = Enum.PartType.Cylinder |
| 418 | cyl.Size = Vector3.new(1.5, 13, 13) |
| 419 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 420 | cyl.BrickColor = BrickColor.new("Reddish brown") |
| 421 | cyl.Material = Enum.Material.Glacier |
| 422 | cyl.MaterialVariant = "2022 Small Stud" |
| 423 | cyl.Anchored = true; cyl.Parent = workspace |
| 424 | local cuts = {} |
| 425 | local hole = Instance.new("Part") |
| 426 | hole.Shape = Enum.PartType.Cylinder |
| 427 | hole.Size = Vector3.new(1.7, 10, 10) |
| 428 | hole.CFrame = cyl.CFrame |
| 429 | hole.BrickColor = BrickColor.new("Reddish brown") |
| 430 | hole.Material = Enum.Material.Glacier |
| 431 | hole.MaterialVariant = "2022 Small Stud" |
| 432 | hole.Anchored = true; hole.Parent = workspace |
| 433 | table.insert(cuts, hole) |
| 434 | local angBoxes = {} |
| 435 | do |
| 436 | local edgeDir = 1*rightV + 0*upV |
| 437 | local edgePerp = 0*rightV + 1*upV |
| 438 | local cut = Instance.new("Part") |
| 439 | cut.Size = Vector3.new(26, 1.7, 26) |
| 440 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 13 * edgePerp, edgeDir, normalV) |
| 441 | cut.BrickColor = BrickColor.new("Reddish brown") |
| 442 | cut.Material = Enum.Material.Glacier |
| 443 | cut.MaterialVariant = "2022 Small Stud" |
| 444 | cut.Anchored = true; cut.Parent = workspace |
| 445 | table.insert(angBoxes, cut) |
| 446 | end |
| 447 | do |
| 448 | local edgeDir = -1*rightV + 0*upV |
| 449 | local edgePerp = 0*rightV + -1*upV |
| 450 | local cut = Instance.new("Part") |
| 451 | cut.Size = Vector3.new(26, 1.7, 26) |
| 452 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 13 * edgePerp, edgeDir, normalV) |
| 453 | cut.BrickColor = BrickColor.new("Reddish brown") |
| 454 | cut.Material = Enum.Material.Glacier |
| 455 | cut.MaterialVariant = "2022 Small Stud" |
| 456 | cut.Anchored = true; cut.Parent = workspace |
| 457 | table.insert(angBoxes, cut) |
| 458 | end |
| 459 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 460 | if #cuts > 0 then |
| 461 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 462 | for _, c in ipairs(cuts) do c:Destroy() end |
| 463 | if ok and result then |
| 464 | cyl:Destroy() |
| 465 | result.Name = "ArchRoof"; result.Anchored = true; result.Parent = model |
| 466 | else |
| 467 | cyl.Name = "ArchRoof"; cyl.Parent = model |
| 468 | end |
| 469 | else |
| 470 | cyl.Name = "ArchRoof"; cyl.Parent = model |
| 471 | end |
| 472 | end |
| 473 | do |
| 474 | local rightV = Vector3.new(1,0,0).Unit |
| 475 | local upV = (Vector3.new(0,1,0) - Vector3.new(0,1,0):Dot(rightV)*rightV).Unit |
| 476 | local normalV = upV:Cross(rightV) |
| 477 | local pos = Vector3.new(-6, 8, -7.12) |
| 478 | local cyl = Instance.new("Part") |
| 479 | cyl.Shape = Enum.PartType.Cylinder |
| 480 | cyl.Size = Vector3.new(0.5, 3.2, 3.2) |
| 481 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 482 | cyl.BrickColor = BrickColor.new("Reddish brown") |
| 483 | cyl.Material = Enum.Material.Glacier |
| 484 | cyl.MaterialVariant = "2022 Small Stud" |
| 485 | cyl.Anchored = true; cyl.Parent = workspace |
| 486 | local cuts = {} |
| 487 | local hole = Instance.new("Part") |
| 488 | hole.Shape = Enum.PartType.Cylinder |
| 489 | hole.Size = Vector3.new(0.7, 2.4, 2.4) |
| 490 | hole.CFrame = cyl.CFrame |
| 491 | hole.BrickColor = BrickColor.new("Reddish brown") |
| 492 | hole.Material = Enum.Material.Glacier |
| 493 | hole.MaterialVariant = "2022 Small Stud" |
| 494 | hole.Anchored = true; hole.Parent = workspace |
| 495 | table.insert(cuts, hole) |
| 496 | if #cuts > 0 then |
| 497 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 498 | for _, c in ipairs(cuts) do c:Destroy() end |
| 499 | if ok and result then |
| 500 | cyl:Destroy() |
| 501 | result.Name = "WinFrameL"; result.Anchored = true; result.Parent = model |
| 502 | else |
| 503 | cyl.Name = "WinFrameL"; cyl.Parent = model |
| 504 | end |
| 505 | else |
| 506 | cyl.Name = "WinFrameL"; cyl.Parent = model |
| 507 | end |
| 508 | end |
| 509 | do |
| 510 | local rightV = Vector3.new(1,0,0).Unit |
| 511 | local upV = (Vector3.new(0,1,0) - Vector3.new(0,1,0):Dot(rightV)*rightV).Unit |
| 512 | local normalV = upV:Cross(rightV) |
| 513 | local pos = Vector3.new(6, 8, -7.12) |
| 514 | local cyl = Instance.new("Part") |
| 515 | cyl.Shape = Enum.PartType.Cylinder |
| 516 | cyl.Size = Vector3.new(0.5, 3.2, 3.2) |
| 517 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 518 | cyl.BrickColor = BrickColor.new("Reddish brown") |
| 519 | cyl.Material = Enum.Material.Glacier |
| 520 | cyl.MaterialVariant = "2022 Small Stud" |
| 521 | cyl.Anchored = true; cyl.Parent = workspace |
| 522 | local cuts = {} |
| 523 | local hole = Instance.new("Part") |
| 524 | hole.Shape = Enum.PartType.Cylinder |
| 525 | hole.Size = Vector3.new(0.7, 2.4, 2.4) |
| 526 | hole.CFrame = cyl.CFrame |
| 527 | hole.BrickColor = BrickColor.new("Reddish brown") |
| 528 | hole.Material = Enum.Material.Glacier |
| 529 | hole.MaterialVariant = "2022 Small Stud" |
| 530 | hole.Anchored = true; hole.Parent = workspace |
| 531 | table.insert(cuts, hole) |
| 532 | if #cuts > 0 then |
| 533 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 534 | for _, c in ipairs(cuts) do c:Destroy() end |
| 535 | if ok and result then |
| 536 | cyl:Destroy() |
| 537 | result.Name = "WinFrameR"; result.Anchored = true; result.Parent = model |
| 538 | else |
| 539 | cyl.Name = "WinFrameR"; cyl.Parent = model |
| 540 | end |
| 541 | else |
| 542 | cyl.Name = "WinFrameR"; cyl.Parent = model |
| 543 | end |
| 544 | end |
| 545 | do |
| 546 | local upV = Vector3.new(0,1,0).Unit |
| 547 | local rightV = (Vector3.new(1,0,0) - Vector3.new(1,0,0):Dot(upV)*upV).Unit |
| 548 | local forwardV = rightV:Cross(upV) |
| 549 | local pos = Vector3.new(0, 13.08, 0) |
| 550 | local ball = Instance.new("Part") |
| 551 | ball.Shape = Enum.PartType.Ball |
| 552 | ball.Size = Vector3.new(22, 22, 22) |
| 553 | ball.CFrame = CFrame.new(pos) |
| 554 | ball.BrickColor = BrickColor.new("Bright green") |
| 555 | ball.Material = Enum.Material.Glacier |
| 556 | ball.MaterialVariant = "2022 Stud" |
| 557 | ball.Anchored = true; ball.Parent = workspace |
| 558 | local cuts = {} |
| 559 | do |
| 560 | local h = 0 |
| 561 | local cut = Instance.new("Part") |
| 562 | cut.Size = Vector3.new(44, 44, 44) |
| 563 | cut.CFrame = CFrame.fromMatrix(pos + upV*(-22), rightV, upV) |
| 564 | cut.BrickColor = BrickColor.new("Bright green") |
| 565 | cut.Material = Enum.Material.Glacier |
| 566 | cut.MaterialVariant = "2022 Stud" |
| 567 | cut.Anchored = true; cut.Parent = workspace |
| 568 | table.insert(cuts, cut) |
| 569 | end |
| 570 | if #cuts > 0 then |
| 571 | local ok, result = pcall(function() return ball:SubtractAsync(cuts) end) |
| 572 | for _, c in ipairs(cuts) do c:Destroy() end |
| 573 | if ok and result then |
| 574 | ball:Destroy() |
| 575 | result.Name = "MainRoof"; result.Anchored = true; result.Parent = model |
| 576 | else |
| 577 | ball.Name = "MainRoof"; ball.Parent = model |
| 578 | end |
| 579 | else |
| 580 | ball.Name = "MainRoof"; ball.Parent = model |
| 581 | end |
| 582 | end |
| 583 | do |
| 584 | local upV = Vector3.new(0,1,0).Unit |
| 585 | local rightV = (Vector3.new(1,0,0) - Vector3.new(1,0,0):Dot(upV)*upV).Unit |
| 586 | local forwardV = rightV:Cross(upV) |
| 587 | local pos = Vector3.new(-10, 9.16, -2) |
| 588 | local ball = Instance.new("Part") |
| 589 | ball.Shape = Enum.PartType.Ball |
| 590 | ball.Size = Vector3.new(6, 6, 6) |
| 591 | ball.CFrame = CFrame.new(pos) |
| 592 | ball.BrickColor = BrickColor.new("Bright green") |
| 593 | ball.Material = Enum.Material.Glacier |
| 594 | ball.MaterialVariant = "2022 Stud" |
| 595 | ball.Anchored = true; ball.Parent = workspace |
| 596 | local cuts = {} |
| 597 | do |
| 598 | local h = 0 |
| 599 | local cut = Instance.new("Part") |
| 600 | cut.Size = Vector3.new(12, 12, 12) |
| 601 | cut.CFrame = CFrame.fromMatrix(pos + upV*(-6), rightV, upV) |
| 602 | cut.BrickColor = BrickColor.new("Bright green") |
| 603 | cut.Material = Enum.Material.Glacier |
| 604 | cut.MaterialVariant = "2022 Stud" |
| 605 | cut.Anchored = true; cut.Parent = workspace |
| 606 | table.insert(cuts, cut) |
| 607 | end |
| 608 | if #cuts > 0 then |
| 609 | local ok, result = pcall(function() return ball:SubtractAsync(cuts) end) |
| 610 | for _, c in ipairs(cuts) do c:Destroy() end |
| 611 | if ok and result then |
| 612 | ball:Destroy() |
| 613 | result.Name = "TurretRoofL"; result.Anchored = true; result.Parent = model |
| 614 | else |
| 615 | ball.Name = "TurretRoofL"; ball.Parent = model |
| 616 | end |
| 617 | else |
| 618 | ball.Name = "TurretRoofL"; ball.Parent = model |
| 619 | end |
| 620 | end |
| 621 | do |
| 622 | local upV = Vector3.new(0,1,0).Unit |
| 623 | local rightV = (Vector3.new(1,0,0) - Vector3.new(1,0,0):Dot(upV)*upV).Unit |
| 624 | local forwardV = rightV:Cross(upV) |
| 625 | local pos = Vector3.new(10, 9.16, -2) |
| 626 | local ball = Instance.new("Part") |
| 627 | ball.Shape = Enum.PartType.Ball |
| 628 | ball.Size = Vector3.new(6, 6, 6) |
| 629 | ball.CFrame = CFrame.new(pos) |
| 630 | ball.BrickColor = BrickColor.new("Bright green") |
| 631 | ball.Material = Enum.Material.Glacier |
| 632 | ball.MaterialVariant = "2022 Stud" |
| 633 | ball.Anchored = true; ball.Parent = workspace |
| 634 | local cuts = {} |
| 635 | do |
| 636 | local h = 0 |
| 637 | local cut = Instance.new("Part") |
| 638 | cut.Size = Vector3.new(12, 12, 12) |
| 639 | cut.CFrame = CFrame.fromMatrix(pos + upV*(-6), rightV, upV) |
| 640 | cut.BrickColor = BrickColor.new("Bright green") |
| 641 | cut.Material = Enum.Material.Glacier |
| 642 | cut.MaterialVariant = "2022 Stud" |
| 643 | cut.Anchored = true; cut.Parent = workspace |
| 644 | table.insert(cuts, cut) |
| 645 | end |
| 646 | if #cuts > 0 then |
| 647 | local ok, result = pcall(function() return ball:SubtractAsync(cuts) end) |
| 648 | for _, c in ipairs(cuts) do c:Destroy() end |
| 649 | if ok and result then |
| 650 | ball:Destroy() |
| 651 | result.Name = "TurretRoofR"; result.Anchored = true; result.Parent = model |
| 652 | else |
| 653 | ball.Name = "TurretRoofR"; ball.Parent = model |
| 654 | end |
| 655 | else |
| 656 | ball.Name = "TurretRoofR"; ball.Parent = model |
| 657 | end |
| 658 | end |
| 659 | model.PrimaryPart = model:FindFirstChild("Base") |
| 660 | print("SadidaPalace built: " .. #model:GetChildren() .. " parts") |
Loading comments...