Loading model...
by ahmet köksal · 5/24/2026
Lua Script
| 1 | -- Generated with StudForge.org | AI-powered 3D models for Roblox |
| 2 | -- Model: StoneFountain |
| 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 = "StoneFountain" |
| 21 | model.Parent = workspace |
| 22 | |
| 23 | local variants = { |
| 24 | ["Dark stone grey"] = "2022 Inlet", |
| 25 | ["Light stone grey"] = "2022 Inlet", |
| 26 | ["Medium stone grey"] = "2022 Inlet", |
| 27 | ["Pastel Blue"] = "2022 Stud", |
| 28 | } |
| 29 | do |
| 30 | local p = Instance.new("Part") |
| 31 | p.Shape = Enum.PartType.Cylinder |
| 32 | p.Name = "BaseFloor" |
| 33 | p.Size = Vector3.new(1, 24, 24) |
| 34 | p.CFrame = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 35 | p.BrickColor = BrickColor.new("Medium stone grey") |
| 36 | p.Material = Enum.Material.Glacier |
| 37 | p.MaterialVariant = "2022 Inlet" |
| 38 | p.Anchored = true |
| 39 | p.Parent = model |
| 40 | end |
| 41 | do |
| 42 | local p = Instance.new("Part") |
| 43 | p.Shape = Enum.PartType.Cylinder |
| 44 | p.Name = "BaseWater" |
| 45 | p.Size = Vector3.new(0.2, 23.5, 23.5) |
| 46 | p.CFrame = CFrame.new(0, 1.2, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 47 | p.BrickColor = BrickColor.new("Pastel Blue") |
| 48 | p.Material = Enum.Material.Glacier |
| 49 | p.MaterialVariant = "2022 Stud" |
| 50 | p.Anchored = true |
| 51 | p.Parent = model |
| 52 | end |
| 53 | do |
| 54 | local p = Instance.new("Part") |
| 55 | p.Shape = Enum.PartType.Cylinder |
| 56 | p.Name = "Ped1_Base1" |
| 57 | p.Size = Vector3.new(1, 6, 6) |
| 58 | p.CFrame = CFrame.new(0, 1.58, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 59 | p.BrickColor = BrickColor.new("Dark 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.Shape = Enum.PartType.Cylinder |
| 68 | p.Name = "Ped1_Base2" |
| 69 | p.Size = Vector3.new(0.5, 5, 5) |
| 70 | p.CFrame = CFrame.new(0, 2.37, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 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.Shape = Enum.PartType.Cylinder |
| 80 | p.Name = "Ped1_Stem" |
| 81 | p.Size = Vector3.new(4, 3, 3) |
| 82 | p.CFrame = CFrame.new(0, 4.5, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 83 | p.BrickColor = BrickColor.new("Medium stone grey") |
| 84 | p.Material = Enum.Material.Glacier |
| 85 | p.MaterialVariant = "2022 Inlet" |
| 86 | p.Anchored = true |
| 87 | p.Parent = model |
| 88 | end |
| 89 | do |
| 90 | local p = Instance.new("Part") |
| 91 | p.Shape = Enum.PartType.Cylinder |
| 92 | p.Name = "Ped1_Rib1" |
| 93 | p.Size = Vector3.new(0.4, 3.2, 3.2) |
| 94 | p.CFrame = CFrame.new(0, 3.5, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 95 | p.BrickColor = BrickColor.new("Dark stone grey") |
| 96 | p.Material = Enum.Material.Glacier |
| 97 | p.MaterialVariant = "2022 Inlet" |
| 98 | p.Anchored = true |
| 99 | p.Parent = model |
| 100 | end |
| 101 | do |
| 102 | local p = Instance.new("Part") |
| 103 | p.Shape = Enum.PartType.Cylinder |
| 104 | p.Name = "Ped1_Rib2" |
| 105 | p.Size = Vector3.new(0.4, 3.2, 3.2) |
| 106 | p.CFrame = CFrame.new(0, 5.5, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 107 | p.BrickColor = BrickColor.new("Dark stone grey") |
| 108 | p.Material = Enum.Material.Glacier |
| 109 | p.MaterialVariant = "2022 Inlet" |
| 110 | p.Anchored = true |
| 111 | p.Parent = model |
| 112 | end |
| 113 | do |
| 114 | local p = Instance.new("Part") |
| 115 | p.Shape = Enum.PartType.Cylinder |
| 116 | p.Name = "Ped1_Cap" |
| 117 | p.Size = Vector3.new(0.5, 4.5, 4.5) |
| 118 | p.CFrame = CFrame.new(0, 6.79, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 119 | p.BrickColor = BrickColor.new("Dark stone grey") |
| 120 | p.Material = Enum.Material.Glacier |
| 121 | p.MaterialVariant = "2022 Inlet" |
| 122 | p.Anchored = true |
| 123 | p.Parent = model |
| 124 | end |
| 125 | do |
| 126 | local p = Instance.new("Part") |
| 127 | p.Shape = Enum.PartType.Cylinder |
| 128 | p.Name = "MidWater" |
| 129 | p.Size = Vector3.new(0.2, 9.5, 9.5) |
| 130 | p.CFrame = CFrame.new(0, 11.5, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 131 | p.BrickColor = BrickColor.new("Pastel Blue") |
| 132 | p.Material = Enum.Material.Glacier |
| 133 | p.MaterialVariant = "2022 Stud" |
| 134 | p.Anchored = true |
| 135 | p.Parent = model |
| 136 | end |
| 137 | do |
| 138 | local p = Instance.new("Part") |
| 139 | p.Shape = Enum.PartType.Cylinder |
| 140 | p.Name = "Ped2_Base" |
| 141 | p.Size = Vector3.new(1, 3.5, 3.5) |
| 142 | p.CFrame = CFrame.new(0, 12, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 143 | p.BrickColor = BrickColor.new("Dark stone grey") |
| 144 | p.Material = Enum.Material.Glacier |
| 145 | p.MaterialVariant = "2022 Inlet" |
| 146 | p.Anchored = true |
| 147 | p.Parent = model |
| 148 | end |
| 149 | do |
| 150 | local p = Instance.new("Part") |
| 151 | p.Shape = Enum.PartType.Cylinder |
| 152 | p.Name = "Ped2_Stem" |
| 153 | p.Size = Vector3.new(2.5, 2, 2) |
| 154 | p.CFrame = CFrame.new(0, 13.79, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 155 | p.BrickColor = BrickColor.new("Medium stone grey") |
| 156 | p.Material = Enum.Material.Glacier |
| 157 | p.MaterialVariant = "2022 Inlet" |
| 158 | p.Anchored = true |
| 159 | p.Parent = model |
| 160 | end |
| 161 | do |
| 162 | local p = Instance.new("Part") |
| 163 | p.Shape = Enum.PartType.Cylinder |
| 164 | p.Name = "Ped2_Rib1" |
| 165 | p.Size = Vector3.new(0.3, 2.2, 2.2) |
| 166 | p.CFrame = CFrame.new(0, 13.75, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 167 | p.BrickColor = BrickColor.new("Dark stone grey") |
| 168 | p.Material = Enum.Material.Glacier |
| 169 | p.MaterialVariant = "2022 Inlet" |
| 170 | p.Anchored = true |
| 171 | p.Parent = model |
| 172 | end |
| 173 | do |
| 174 | local p = Instance.new("Part") |
| 175 | p.Shape = Enum.PartType.Cylinder |
| 176 | p.Name = "Ped2_Cap" |
| 177 | p.Size = Vector3.new(0.5, 3, 3) |
| 178 | p.CFrame = CFrame.new(0, 15.33, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 179 | p.BrickColor = BrickColor.new("Dark stone grey") |
| 180 | p.Material = Enum.Material.Glacier |
| 181 | p.MaterialVariant = "2022 Inlet" |
| 182 | p.Anchored = true |
| 183 | p.Parent = model |
| 184 | end |
| 185 | do |
| 186 | local p = Instance.new("Part") |
| 187 | p.Shape = Enum.PartType.Cylinder |
| 188 | p.Name = "TopWater" |
| 189 | p.Size = Vector3.new(0.2, 5.5, 5.5) |
| 190 | p.CFrame = CFrame.new(0, 18.2, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 191 | p.BrickColor = BrickColor.new("Pastel Blue") |
| 192 | p.Material = Enum.Material.Glacier |
| 193 | p.MaterialVariant = "2022 Stud" |
| 194 | p.Anchored = true |
| 195 | p.Parent = model |
| 196 | end |
| 197 | do |
| 198 | local p = Instance.new("Part") |
| 199 | p.Shape = Enum.PartType.Cylinder |
| 200 | p.Name = "FinialBase" |
| 201 | p.Size = Vector3.new(0.6, 2, 2) |
| 202 | p.CFrame = CFrame.new(0, 18.5, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 203 | p.BrickColor = BrickColor.new("Dark stone grey") |
| 204 | p.Material = Enum.Material.Glacier |
| 205 | p.MaterialVariant = "2022 Inlet" |
| 206 | p.Anchored = true |
| 207 | p.Parent = model |
| 208 | end |
| 209 | do |
| 210 | local p = Instance.new("Part") |
| 211 | p.Name = "BirdBody" |
| 212 | p.Size = Vector3.new(1.5, 1.2, 1.8) |
| 213 | p.CFrame = CFrame.new(0, 19.5, 0) |
| 214 | p.BrickColor = BrickColor.new("Light 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.Ball |
| 223 | p.Name = "BirdHead" |
| 224 | p.Size = Vector3.new(1, 1, 1) |
| 225 | p.CFrame = CFrame.new(0, 20.5, -0.5) |
| 226 | p.BrickColor = BrickColor.new("Light 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.Name = "BirdBeak" |
| 235 | p.Size = Vector3.new(0.4, 0.4, 0.6) |
| 236 | p.CFrame = CFrame.new(0, 20.5, -1.1) |
| 237 | p.BrickColor = BrickColor.new("Medium stone grey") |
| 238 | p.Material = Enum.Material.Glacier |
| 239 | p.MaterialVariant = "2022 Inlet" |
| 240 | p.Anchored = true |
| 241 | p.Parent = model |
| 242 | end |
| 243 | do |
| 244 | local p = Instance.new("Part") |
| 245 | p.Name = "BirdTail" |
| 246 | p.Size = Vector3.new(0.8, 0.8, 1.5) |
| 247 | p.CFrame = CFrame.new(0, 19.8, 1) * CFrame.Angles(math.rad(30), math.rad(0), math.rad(0)) |
| 248 | p.BrickColor = BrickColor.new("Light stone grey") |
| 249 | p.Material = Enum.Material.Glacier |
| 250 | p.MaterialVariant = "2022 Inlet" |
| 251 | p.Anchored = true |
| 252 | p.Parent = model |
| 253 | end |
| 254 | do |
| 255 | local rightV = Vector3.new(1,0,0).Unit |
| 256 | local upV = (Vector3.new(0,0,-1) - Vector3.new(0,0,-1):Dot(rightV)*rightV).Unit |
| 257 | local normalV = upV:Cross(rightV) |
| 258 | local pos = Vector3.new(0, 1.04, 0) |
| 259 | local cyl = Instance.new("Part") |
| 260 | cyl.Shape = Enum.PartType.Cylinder |
| 261 | cyl.Size = Vector3.new(2, 24, 24) |
| 262 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 263 | cyl.BrickColor = BrickColor.new("Medium stone grey") |
| 264 | cyl.Material = Enum.Material.Glacier |
| 265 | cyl.MaterialVariant = "2022 Inlet" |
| 266 | cyl.Anchored = true; cyl.Parent = workspace |
| 267 | local cuts = {} |
| 268 | local hole = Instance.new("Part") |
| 269 | hole.Shape = Enum.PartType.Cylinder |
| 270 | hole.Size = Vector3.new(2.2, 22, 22) |
| 271 | hole.CFrame = cyl.CFrame |
| 272 | hole.BrickColor = BrickColor.new("Medium stone grey") |
| 273 | hole.Material = Enum.Material.Glacier |
| 274 | hole.MaterialVariant = "2022 Inlet" |
| 275 | hole.Anchored = true; hole.Parent = workspace |
| 276 | table.insert(cuts, hole) |
| 277 | local angBoxes = {} |
| 278 | do |
| 279 | local edgeDir = 1*rightV + 0*upV |
| 280 | local edgePerp = 0*rightV + 1*upV |
| 281 | local cut = Instance.new("Part") |
| 282 | cut.Size = Vector3.new(48, 2.2, 48) |
| 283 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 24 * edgePerp, edgeDir, normalV) |
| 284 | cut.BrickColor = BrickColor.new("Medium stone grey") |
| 285 | cut.Material = Enum.Material.Glacier |
| 286 | cut.MaterialVariant = "2022 Inlet" |
| 287 | cut.Anchored = true; cut.Parent = workspace |
| 288 | table.insert(angBoxes, cut) |
| 289 | end |
| 290 | do |
| 291 | local edgeDir = 0*rightV + 1*upV |
| 292 | local edgePerp = -1*rightV + 0*upV |
| 293 | local cut = Instance.new("Part") |
| 294 | cut.Size = Vector3.new(48, 2.2, 48) |
| 295 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 24 * edgePerp, edgeDir, normalV) |
| 296 | cut.BrickColor = BrickColor.new("Medium stone grey") |
| 297 | cut.Material = Enum.Material.Glacier |
| 298 | cut.MaterialVariant = "2022 Inlet" |
| 299 | cut.Anchored = true; cut.Parent = workspace |
| 300 | table.insert(angBoxes, cut) |
| 301 | end |
| 302 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 303 | if #cuts > 0 then |
| 304 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 305 | for _, c in ipairs(cuts) do c:Destroy() end |
| 306 | if ok and result then |
| 307 | cyl:Destroy() |
| 308 | result.Name = "BaseWall_0"; result.Anchored = true; result.Parent = model |
| 309 | else |
| 310 | cyl.Name = "BaseWall_0"; cyl.Parent = model |
| 311 | end |
| 312 | else |
| 313 | cyl.Name = "BaseWall_0"; cyl.Parent = model |
| 314 | end |
| 315 | end |
| 316 | do |
| 317 | local rightV = Vector3.new(1,0,0).Unit |
| 318 | local upV = (Vector3.new(0,0,-1) - Vector3.new(0,0,-1):Dot(rightV)*rightV).Unit |
| 319 | local normalV = upV:Cross(rightV) |
| 320 | local pos = Vector3.new(0, 1.04, 0) |
| 321 | local cyl = Instance.new("Part") |
| 322 | cyl.Shape = Enum.PartType.Cylinder |
| 323 | cyl.Size = Vector3.new(2, 24, 24) |
| 324 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 325 | cyl.BrickColor = BrickColor.new("Medium stone grey") |
| 326 | cyl.Material = Enum.Material.Glacier |
| 327 | cyl.MaterialVariant = "2022 Inlet" |
| 328 | cyl.Anchored = true; cyl.Parent = workspace |
| 329 | local cuts = {} |
| 330 | local hole = Instance.new("Part") |
| 331 | hole.Shape = Enum.PartType.Cylinder |
| 332 | hole.Size = Vector3.new(2.2, 22, 22) |
| 333 | hole.CFrame = cyl.CFrame |
| 334 | hole.BrickColor = BrickColor.new("Medium stone grey") |
| 335 | hole.Material = Enum.Material.Glacier |
| 336 | hole.MaterialVariant = "2022 Inlet" |
| 337 | hole.Anchored = true; hole.Parent = workspace |
| 338 | table.insert(cuts, hole) |
| 339 | local angBoxes = {} |
| 340 | do |
| 341 | local edgeDir = 0*rightV + 1*upV |
| 342 | local edgePerp = -1*rightV + 0*upV |
| 343 | local cut = Instance.new("Part") |
| 344 | cut.Size = Vector3.new(48, 2.2, 48) |
| 345 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 24 * edgePerp, edgeDir, normalV) |
| 346 | cut.BrickColor = BrickColor.new("Medium stone grey") |
| 347 | cut.Material = Enum.Material.Glacier |
| 348 | cut.MaterialVariant = "2022 Inlet" |
| 349 | cut.Anchored = true; cut.Parent = workspace |
| 350 | table.insert(angBoxes, cut) |
| 351 | end |
| 352 | do |
| 353 | local edgeDir = -1*rightV + 0*upV |
| 354 | local edgePerp = 0*rightV + -1*upV |
| 355 | local cut = Instance.new("Part") |
| 356 | cut.Size = Vector3.new(48, 2.2, 48) |
| 357 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 24 * edgePerp, edgeDir, normalV) |
| 358 | cut.BrickColor = BrickColor.new("Medium stone grey") |
| 359 | cut.Material = Enum.Material.Glacier |
| 360 | cut.MaterialVariant = "2022 Inlet" |
| 361 | cut.Anchored = true; cut.Parent = workspace |
| 362 | table.insert(angBoxes, cut) |
| 363 | end |
| 364 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 365 | if #cuts > 0 then |
| 366 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 367 | for _, c in ipairs(cuts) do c:Destroy() end |
| 368 | if ok and result then |
| 369 | cyl:Destroy() |
| 370 | result.Name = "BaseWall_1"; result.Anchored = true; result.Parent = model |
| 371 | else |
| 372 | cyl.Name = "BaseWall_1"; cyl.Parent = model |
| 373 | end |
| 374 | else |
| 375 | cyl.Name = "BaseWall_1"; cyl.Parent = model |
| 376 | end |
| 377 | end |
| 378 | do |
| 379 | local rightV = Vector3.new(1,0,0).Unit |
| 380 | local upV = (Vector3.new(0,0,-1) - Vector3.new(0,0,-1):Dot(rightV)*rightV).Unit |
| 381 | local normalV = upV:Cross(rightV) |
| 382 | local pos = Vector3.new(0, 1.04, 0) |
| 383 | local cyl = Instance.new("Part") |
| 384 | cyl.Shape = Enum.PartType.Cylinder |
| 385 | cyl.Size = Vector3.new(2, 24, 24) |
| 386 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 387 | cyl.BrickColor = BrickColor.new("Medium stone grey") |
| 388 | cyl.Material = Enum.Material.Glacier |
| 389 | cyl.MaterialVariant = "2022 Inlet" |
| 390 | cyl.Anchored = true; cyl.Parent = workspace |
| 391 | local cuts = {} |
| 392 | local hole = Instance.new("Part") |
| 393 | hole.Shape = Enum.PartType.Cylinder |
| 394 | hole.Size = Vector3.new(2.2, 22, 22) |
| 395 | hole.CFrame = cyl.CFrame |
| 396 | hole.BrickColor = BrickColor.new("Medium stone grey") |
| 397 | hole.Material = Enum.Material.Glacier |
| 398 | hole.MaterialVariant = "2022 Inlet" |
| 399 | hole.Anchored = true; hole.Parent = workspace |
| 400 | table.insert(cuts, hole) |
| 401 | local angBoxes = {} |
| 402 | do |
| 403 | local edgeDir = -1*rightV + 0*upV |
| 404 | local edgePerp = 0*rightV + -1*upV |
| 405 | local cut = Instance.new("Part") |
| 406 | cut.Size = Vector3.new(48, 2.2, 48) |
| 407 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 24 * edgePerp, edgeDir, normalV) |
| 408 | cut.BrickColor = BrickColor.new("Medium stone grey") |
| 409 | cut.Material = Enum.Material.Glacier |
| 410 | cut.MaterialVariant = "2022 Inlet" |
| 411 | cut.Anchored = true; cut.Parent = workspace |
| 412 | table.insert(angBoxes, cut) |
| 413 | end |
| 414 | do |
| 415 | local edgeDir = 0*rightV + -1*upV |
| 416 | local edgePerp = 1*rightV + 0*upV |
| 417 | local cut = Instance.new("Part") |
| 418 | cut.Size = Vector3.new(48, 2.2, 48) |
| 419 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 24 * edgePerp, edgeDir, normalV) |
| 420 | cut.BrickColor = BrickColor.new("Medium stone grey") |
| 421 | cut.Material = Enum.Material.Glacier |
| 422 | cut.MaterialVariant = "2022 Inlet" |
| 423 | cut.Anchored = true; cut.Parent = workspace |
| 424 | table.insert(angBoxes, cut) |
| 425 | end |
| 426 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 427 | if #cuts > 0 then |
| 428 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 429 | for _, c in ipairs(cuts) do c:Destroy() end |
| 430 | if ok and result then |
| 431 | cyl:Destroy() |
| 432 | result.Name = "BaseWall_2"; result.Anchored = true; result.Parent = model |
| 433 | else |
| 434 | cyl.Name = "BaseWall_2"; cyl.Parent = model |
| 435 | end |
| 436 | else |
| 437 | cyl.Name = "BaseWall_2"; cyl.Parent = model |
| 438 | end |
| 439 | end |
| 440 | do |
| 441 | local rightV = Vector3.new(1,0,0).Unit |
| 442 | local upV = (Vector3.new(0,0,-1) - Vector3.new(0,0,-1):Dot(rightV)*rightV).Unit |
| 443 | local normalV = upV:Cross(rightV) |
| 444 | local pos = Vector3.new(0, 1.04, 0) |
| 445 | local cyl = Instance.new("Part") |
| 446 | cyl.Shape = Enum.PartType.Cylinder |
| 447 | cyl.Size = Vector3.new(2, 24, 24) |
| 448 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 449 | cyl.BrickColor = BrickColor.new("Medium stone grey") |
| 450 | cyl.Material = Enum.Material.Glacier |
| 451 | cyl.MaterialVariant = "2022 Inlet" |
| 452 | cyl.Anchored = true; cyl.Parent = workspace |
| 453 | local cuts = {} |
| 454 | local hole = Instance.new("Part") |
| 455 | hole.Shape = Enum.PartType.Cylinder |
| 456 | hole.Size = Vector3.new(2.2, 22, 22) |
| 457 | hole.CFrame = cyl.CFrame |
| 458 | hole.BrickColor = BrickColor.new("Medium stone grey") |
| 459 | hole.Material = Enum.Material.Glacier |
| 460 | hole.MaterialVariant = "2022 Inlet" |
| 461 | hole.Anchored = true; hole.Parent = workspace |
| 462 | table.insert(cuts, hole) |
| 463 | local angBoxes = {} |
| 464 | do |
| 465 | local edgeDir = 0*rightV + -1*upV |
| 466 | local edgePerp = 1*rightV + 0*upV |
| 467 | local cut = Instance.new("Part") |
| 468 | cut.Size = Vector3.new(48, 2.2, 48) |
| 469 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 24 * edgePerp, edgeDir, normalV) |
| 470 | cut.BrickColor = BrickColor.new("Medium stone grey") |
| 471 | cut.Material = Enum.Material.Glacier |
| 472 | cut.MaterialVariant = "2022 Inlet" |
| 473 | cut.Anchored = true; cut.Parent = workspace |
| 474 | table.insert(angBoxes, cut) |
| 475 | end |
| 476 | do |
| 477 | local edgeDir = 1*rightV + 0*upV |
| 478 | local edgePerp = 0*rightV + 1*upV |
| 479 | local cut = Instance.new("Part") |
| 480 | cut.Size = Vector3.new(48, 2.2, 48) |
| 481 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 24 * edgePerp, edgeDir, normalV) |
| 482 | cut.BrickColor = BrickColor.new("Medium stone grey") |
| 483 | cut.Material = Enum.Material.Glacier |
| 484 | cut.MaterialVariant = "2022 Inlet" |
| 485 | cut.Anchored = true; cut.Parent = workspace |
| 486 | table.insert(angBoxes, cut) |
| 487 | end |
| 488 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 489 | if #cuts > 0 then |
| 490 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 491 | for _, c in ipairs(cuts) do c:Destroy() end |
| 492 | if ok and result then |
| 493 | cyl:Destroy() |
| 494 | result.Name = "BaseWall_3"; result.Anchored = true; result.Parent = model |
| 495 | else |
| 496 | cyl.Name = "BaseWall_3"; cyl.Parent = model |
| 497 | end |
| 498 | else |
| 499 | cyl.Name = "BaseWall_3"; cyl.Parent = model |
| 500 | end |
| 501 | end |
| 502 | do |
| 503 | local upV = Vector3.new(0,1,0).Unit |
| 504 | local rightV = (Vector3.new(1,0,0) - Vector3.new(1,0,0):Dot(upV)*upV).Unit |
| 505 | local forwardV = rightV:Cross(upV) |
| 506 | local pos = Vector3.new(0, 12, 0) |
| 507 | local ball = Instance.new("Part") |
| 508 | ball.Shape = Enum.PartType.Ball |
| 509 | ball.Size = Vector3.new(10, 10, 10) |
| 510 | ball.CFrame = CFrame.new(pos) |
| 511 | ball.BrickColor = BrickColor.new("Medium stone grey") |
| 512 | ball.Material = Enum.Material.Glacier |
| 513 | ball.MaterialVariant = "2022 Inlet" |
| 514 | ball.Anchored = true; ball.Parent = workspace |
| 515 | local cuts = {} |
| 516 | local hole = Instance.new("Part") |
| 517 | hole.Shape = Enum.PartType.Ball |
| 518 | hole.Size = Vector3.new(8.4, 8.4, 8.4) |
| 519 | hole.CFrame = CFrame.new(pos) |
| 520 | hole.BrickColor = BrickColor.new("Medium stone grey") |
| 521 | hole.Material = Enum.Material.Glacier |
| 522 | hole.MaterialVariant = "2022 Inlet" |
| 523 | hole.Anchored = true; hole.Parent = workspace |
| 524 | table.insert(cuts, hole) |
| 525 | do |
| 526 | local h = 0 |
| 527 | local cut = Instance.new("Part") |
| 528 | cut.Size = Vector3.new(20, 20, 20) |
| 529 | cut.CFrame = CFrame.fromMatrix(pos + upV*(10), rightV, upV) |
| 530 | cut.BrickColor = BrickColor.new("Medium stone grey") |
| 531 | cut.Material = Enum.Material.Glacier |
| 532 | cut.MaterialVariant = "2022 Inlet" |
| 533 | cut.Anchored = true; cut.Parent = workspace |
| 534 | table.insert(cuts, cut) |
| 535 | end |
| 536 | if #cuts > 0 then |
| 537 | local ok, result = pcall(function() return ball:SubtractAsync(cuts) end) |
| 538 | for _, c in ipairs(cuts) do c:Destroy() end |
| 539 | if ok and result then |
| 540 | ball:Destroy() |
| 541 | result.Name = "MidBowl"; result.Anchored = true; result.Parent = model |
| 542 | else |
| 543 | ball.Name = "MidBowl"; ball.Parent = model |
| 544 | end |
| 545 | else |
| 546 | ball.Name = "MidBowl"; ball.Parent = model |
| 547 | end |
| 548 | end |
| 549 | do |
| 550 | local upV = Vector3.new(0,1,0).Unit |
| 551 | local rightV = (Vector3.new(1,0,0) - Vector3.new(1,0,0):Dot(upV)*upV).Unit |
| 552 | local forwardV = rightV:Cross(upV) |
| 553 | local pos = Vector3.new(0, 18.5, 0) |
| 554 | local ball = Instance.new("Part") |
| 555 | ball.Shape = Enum.PartType.Ball |
| 556 | ball.Size = Vector3.new(6, 6, 6) |
| 557 | ball.CFrame = CFrame.new(pos) |
| 558 | ball.BrickColor = BrickColor.new("Medium stone grey") |
| 559 | ball.Material = Enum.Material.Glacier |
| 560 | ball.MaterialVariant = "2022 Inlet" |
| 561 | ball.Anchored = true; ball.Parent = workspace |
| 562 | local cuts = {} |
| 563 | local hole = Instance.new("Part") |
| 564 | hole.Shape = Enum.PartType.Ball |
| 565 | hole.Size = Vector3.new(4.8, 4.8, 4.8) |
| 566 | hole.CFrame = CFrame.new(pos) |
| 567 | hole.BrickColor = BrickColor.new("Medium stone grey") |
| 568 | hole.Material = Enum.Material.Glacier |
| 569 | hole.MaterialVariant = "2022 Inlet" |
| 570 | hole.Anchored = true; hole.Parent = workspace |
| 571 | table.insert(cuts, hole) |
| 572 | do |
| 573 | local h = 0 |
| 574 | local cut = Instance.new("Part") |
| 575 | cut.Size = Vector3.new(12, 12, 12) |
| 576 | cut.CFrame = CFrame.fromMatrix(pos + upV*(6), rightV, upV) |
| 577 | cut.BrickColor = BrickColor.new("Medium stone grey") |
| 578 | cut.Material = Enum.Material.Glacier |
| 579 | cut.MaterialVariant = "2022 Inlet" |
| 580 | cut.Anchored = true; cut.Parent = workspace |
| 581 | table.insert(cuts, cut) |
| 582 | end |
| 583 | if #cuts > 0 then |
| 584 | local ok, result = pcall(function() return ball:SubtractAsync(cuts) end) |
| 585 | for _, c in ipairs(cuts) do c:Destroy() end |
| 586 | if ok and result then |
| 587 | ball:Destroy() |
| 588 | result.Name = "TopBowl"; result.Anchored = true; result.Parent = model |
| 589 | else |
| 590 | ball.Name = "TopBowl"; ball.Parent = model |
| 591 | end |
| 592 | else |
| 593 | ball.Name = "TopBowl"; ball.Parent = model |
| 594 | end |
| 595 | end |
| 596 | model.PrimaryPart = model:FindFirstChild("BaseFloor") |
| 597 | print("StoneFountain built: " .. #model:GetChildren() .. " parts") |
Loading comments...