Loading model...
by Dylan · 6/20/2026
Lua Script
| 1 | -- Generated with StudForge.org | AI-powered 3D models for Roblox |
| 2 | -- Model: RoseFlower |
| 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 = "RoseFlower" |
| 21 | model.Parent = workspace |
| 22 | |
| 23 | local variants = { |
| 24 | ["Crimson"] = "2022 Stud", |
| 25 | ["Dark green"] = "2022 Stud", |
| 26 | ["Earth green"] = "2022 Stud", |
| 27 | ["Really red"] = "2022 Stud", |
| 28 | } |
| 29 | do |
| 30 | local p = Instance.new("Part") |
| 31 | p.Shape = Enum.PartType.Cylinder |
| 32 | p.Name = "Stem" |
| 33 | p.Size = Vector3.new(15, 0.5, 0.5) |
| 34 | p.CFrame = CFrame.new(0, 7.5, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 35 | p.BrickColor = BrickColor.new("Earth green") |
| 36 | p.Material = Enum.Material.Glacier |
| 37 | p.MaterialVariant = "2022 Stud" |
| 38 | p.Anchored = true |
| 39 | p.Parent = model |
| 40 | end |
| 41 | do |
| 42 | local p = Instance.new("WedgePart") |
| 43 | p.Name = "Thorn1" |
| 44 | p.Size = Vector3.new(0.4, 0.4, 0.1) |
| 45 | p.CFrame = CFrame.new(0.25, 3, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-30)) |
| 46 | p.BrickColor = BrickColor.new("Earth green") |
| 47 | p.Material = Enum.Material.Glacier |
| 48 | p.MaterialVariant = "2022 Stud" |
| 49 | p.Anchored = true |
| 50 | p.Parent = model |
| 51 | end |
| 52 | do |
| 53 | local p = Instance.new("WedgePart") |
| 54 | p.Name = "Thorn2" |
| 55 | p.Size = Vector3.new(0.4, 0.4, 0.1) |
| 56 | p.CFrame = CFrame.new(-0.25, 6.5, 0.1) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(150)) |
| 57 | p.BrickColor = BrickColor.new("Earth green") |
| 58 | p.Material = Enum.Material.Glacier |
| 59 | p.MaterialVariant = "2022 Stud" |
| 60 | p.Anchored = true |
| 61 | p.Parent = model |
| 62 | end |
| 63 | do |
| 64 | local p = Instance.new("WedgePart") |
| 65 | p.Name = "Thorn3" |
| 66 | p.Size = Vector3.new(0.4, 0.4, 0.1) |
| 67 | p.CFrame = CFrame.new(0, 10, 0.25) * CFrame.Angles(math.rad(30), math.rad(0), math.rad(0)) |
| 68 | p.BrickColor = BrickColor.new("Earth green") |
| 69 | p.Material = Enum.Material.Glacier |
| 70 | p.MaterialVariant = "2022 Stud" |
| 71 | p.Anchored = true |
| 72 | p.Parent = model |
| 73 | end |
| 74 | do |
| 75 | local p = Instance.new("WedgePart") |
| 76 | p.Name = "Thorn4" |
| 77 | p.Size = Vector3.new(0.3, 0.3, 0.1) |
| 78 | p.CFrame = CFrame.new(0.1, 12.5, -0.25) * CFrame.Angles(math.rad(-30), math.rad(0), math.rad(-20)) |
| 79 | p.BrickColor = BrickColor.new("Earth green") |
| 80 | p.Material = Enum.Material.Glacier |
| 81 | p.MaterialVariant = "2022 Stud" |
| 82 | p.Anchored = true |
| 83 | p.Parent = model |
| 84 | end |
| 85 | do |
| 86 | local p = Instance.new("Part") |
| 87 | p.Shape = Enum.PartType.Cylinder |
| 88 | p.Name = "Leaf1_Stem" |
| 89 | p.Size = Vector3.new(1.65831, 0.15, 0.15) |
| 90 | p.CFrame = CFrame.new(0.75, 4.25, 0.25) * CFrame.Angles(math.rad(0), math.rad(-18.4349), math.rad(17.5484)) |
| 91 | p.BrickColor = BrickColor.new("Earth green") |
| 92 | p.Material = Enum.Material.Glacier |
| 93 | p.MaterialVariant = "2022 Stud" |
| 94 | p.Anchored = true |
| 95 | p.Parent = model |
| 96 | end |
| 97 | do |
| 98 | local p = Instance.new("Part") |
| 99 | p.Name = "Leaf1_Blade" |
| 100 | p.Size = Vector3.new(3.08221, 0.1, 1.4) |
| 101 | p.CFrame = CFrame.new(2.75, 5.25, 1) * CFrame.Angles(math.rad(0), math.rad(-21.8014), math.rad(29.1216)) |
| 102 | p.BrickColor = BrickColor.new("Dark green") |
| 103 | p.Material = Enum.Material.Glacier |
| 104 | p.MaterialVariant = "2022 Stud" |
| 105 | p.Anchored = true |
| 106 | p.Parent = model |
| 107 | end |
| 108 | do |
| 109 | local p = Instance.new("Part") |
| 110 | p.Shape = Enum.PartType.Cylinder |
| 111 | p.Name = "Leaf2_Stem" |
| 112 | p.Size = Vector3.new(1.77201, 0.15, 0.15) |
| 113 | p.CFrame = CFrame.new(-0.75, 8.4, -0.25) * CFrame.Angles(math.rad(-180), math.rad(18.4349), math.rad(-153.162)) |
| 114 | p.BrickColor = BrickColor.new("Earth green") |
| 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 = "Leaf2_Blade" |
| 123 | p.Size = Vector3.new(3.13688, 0.1, 1.2) |
| 124 | p.CFrame = CFrame.new(-2.5, 9.9, -1) * CFrame.Angles(math.rad(-180), math.rad(26.5651), math.rad(-135.466)) |
| 125 | p.BrickColor = BrickColor.new("Dark green") |
| 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.Shape = Enum.PartType.Cylinder |
| 134 | p.Name = "Leaf3_Stem" |
| 135 | p.Size = Vector3.new(1.85472, 0.15, 0.15) |
| 136 | p.CFrame = CFrame.new(0.6, 12, -0.5) * CFrame.Angles(math.rad(0), math.rad(39.8056), math.rad(32.6267)) |
| 137 | p.BrickColor = BrickColor.new("Earth green") |
| 138 | p.Material = Enum.Material.Glacier |
| 139 | p.MaterialVariant = "2022 Stud" |
| 140 | p.Anchored = true |
| 141 | p.Parent = model |
| 142 | end |
| 143 | do |
| 144 | local p = Instance.new("Part") |
| 145 | p.Name = "Leaf3_Blade" |
| 146 | p.Size = Vector3.new(2.87054, 0.1, 1.1) |
| 147 | p.CFrame = CFrame.new(2.1, 13.5, -1.5) * CFrame.Angles(math.rad(0), math.rad(29.0546), math.rad(44.1655)) |
| 148 | p.BrickColor = BrickColor.new("Dark green") |
| 149 | p.Material = Enum.Material.Glacier |
| 150 | p.MaterialVariant = "2022 Stud" |
| 151 | p.Anchored = true |
| 152 | p.Parent = model |
| 153 | end |
| 154 | do |
| 155 | local p = Instance.new("Part") |
| 156 | p.Shape = Enum.PartType.Cylinder |
| 157 | p.Name = "Receptacle" |
| 158 | p.Size = Vector3.new(1, 1.2, 1.2) |
| 159 | p.CFrame = CFrame.new(0, 14.8, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 160 | p.BrickColor = BrickColor.new("Earth green") |
| 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 = "Sepal1" |
| 169 | p.Size = Vector3.new(2.36854, 0.1, 0.5) |
| 170 | p.CFrame = CFrame.new(0.771716, 14.85, 0.828284) * CFrame.Angles(math.rad(0), math.rad(-45), math.rad(-17.1899)) |
| 171 | p.BrickColor = BrickColor.new("Earth green") |
| 172 | p.Material = Enum.Material.Glacier |
| 173 | p.MaterialVariant = "2022 Stud" |
| 174 | p.Anchored = true |
| 175 | p.Parent = model |
| 176 | end |
| 177 | do |
| 178 | local p = Instance.new("Part") |
| 179 | p.Name = "Sepal2" |
| 180 | p.Size = Vector3.new(2.36854, 0.1, 0.5) |
| 181 | p.CFrame = CFrame.new(-0.771716, 14.85, 0.828284) * CFrame.Angles(math.rad(-180), math.rad(-45), math.rad(162.81)) |
| 182 | p.BrickColor = BrickColor.new("Earth green") |
| 183 | p.Material = Enum.Material.Glacier |
| 184 | p.MaterialVariant = "2022 Stud" |
| 185 | p.Anchored = true |
| 186 | p.Parent = model |
| 187 | end |
| 188 | do |
| 189 | local p = Instance.new("Part") |
| 190 | p.Name = "Sepal3" |
| 191 | p.Size = Vector3.new(2.36854, 0.1, 0.5) |
| 192 | p.CFrame = CFrame.new(0.8, 14.85, -0.8) * CFrame.Angles(math.rad(0), math.rad(45), math.rad(-17.1899)) |
| 193 | p.BrickColor = BrickColor.new("Earth green") |
| 194 | p.Material = Enum.Material.Glacier |
| 195 | p.MaterialVariant = "2022 Stud" |
| 196 | p.Anchored = true |
| 197 | p.Parent = model |
| 198 | end |
| 199 | do |
| 200 | local p = Instance.new("Part") |
| 201 | p.Name = "Sepal4" |
| 202 | p.Size = Vector3.new(2.36854, 0.1, 0.5) |
| 203 | p.CFrame = CFrame.new(-0.8, 14.85, -0.8) * CFrame.Angles(math.rad(-180), math.rad(45), math.rad(162.81)) |
| 204 | p.BrickColor = BrickColor.new("Earth green") |
| 205 | p.Material = Enum.Material.Glacier |
| 206 | p.MaterialVariant = "2022 Stud" |
| 207 | p.Anchored = true |
| 208 | p.Parent = model |
| 209 | end |
| 210 | do |
| 211 | local rightV = Vector3.new(1,0,0).Unit |
| 212 | local upV = (Vector3.new(0,0,-1) - Vector3.new(0,0,-1):Dot(rightV)*rightV).Unit |
| 213 | local normalV = upV:Cross(rightV) |
| 214 | local pos = Vector3.new(0, 16.34, 0) |
| 215 | local cyl = Instance.new("Part") |
| 216 | cyl.Shape = Enum.PartType.Cylinder |
| 217 | cyl.Size = Vector3.new(2, 1.2, 1.2) |
| 218 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 219 | cyl.BrickColor = BrickColor.new("Really red") |
| 220 | cyl.Material = Enum.Material.Glacier |
| 221 | cyl.MaterialVariant = "2022 Stud" |
| 222 | cyl.Anchored = true; cyl.Parent = workspace |
| 223 | local cuts = {} |
| 224 | if #cuts > 0 then |
| 225 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 226 | for _, c in ipairs(cuts) do c:Destroy() end |
| 227 | if ok and result then |
| 228 | cyl:Destroy() |
| 229 | result.Name = "PetalCore"; result.Anchored = true; result.Parent = model |
| 230 | else |
| 231 | cyl.Name = "PetalCore"; cyl.Parent = model |
| 232 | end |
| 233 | else |
| 234 | cyl.Name = "PetalCore"; cyl.Parent = model |
| 235 | end |
| 236 | end |
| 237 | do |
| 238 | local rightV = Vector3.new(1,0,0).Unit |
| 239 | local upV = (Vector3.new(0,0,-1) - Vector3.new(0,0,-1):Dot(rightV)*rightV).Unit |
| 240 | local normalV = upV:Cross(rightV) |
| 241 | local pos = Vector3.new(0, 16.58, 0) |
| 242 | local cyl = Instance.new("Part") |
| 243 | cyl.Shape = Enum.PartType.Cylinder |
| 244 | cyl.Size = Vector3.new(2.4, 2, 2) |
| 245 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 246 | cyl.BrickColor = BrickColor.new("Crimson") |
| 247 | cyl.Material = Enum.Material.Glacier |
| 248 | cyl.MaterialVariant = "2022 Stud" |
| 249 | cyl.Anchored = true; cyl.Parent = workspace |
| 250 | local cuts = {} |
| 251 | local hole = Instance.new("Part") |
| 252 | hole.Shape = Enum.PartType.Cylinder |
| 253 | hole.Size = Vector3.new(2.6, 1, 1) |
| 254 | hole.CFrame = cyl.CFrame |
| 255 | hole.BrickColor = BrickColor.new("Crimson") |
| 256 | hole.Material = Enum.Material.Glacier |
| 257 | hole.MaterialVariant = "2022 Stud" |
| 258 | hole.Anchored = true; hole.Parent = workspace |
| 259 | table.insert(cuts, hole) |
| 260 | local angBoxes = {} |
| 261 | do |
| 262 | local edgeDir = 1*rightV + 0*upV |
| 263 | local edgePerp = 0*rightV + 1*upV |
| 264 | local cut = Instance.new("Part") |
| 265 | cut.Size = Vector3.new(4, 2.6, 4) |
| 266 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 2 * edgePerp, edgeDir, normalV) |
| 267 | cut.BrickColor = BrickColor.new("Crimson") |
| 268 | cut.Material = Enum.Material.Glacier |
| 269 | cut.MaterialVariant = "2022 Stud" |
| 270 | cut.Anchored = true; cut.Parent = workspace |
| 271 | table.insert(angBoxes, cut) |
| 272 | end |
| 273 | do |
| 274 | local edgeDir = -0.766044*rightV + -0.642788*upV |
| 275 | local edgePerp = 0.642788*rightV + -0.766044*upV |
| 276 | local cut = Instance.new("Part") |
| 277 | cut.Size = Vector3.new(4, 2.6, 4) |
| 278 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 2 * edgePerp, edgeDir, normalV) |
| 279 | cut.BrickColor = BrickColor.new("Crimson") |
| 280 | cut.Material = Enum.Material.Glacier |
| 281 | cut.MaterialVariant = "2022 Stud" |
| 282 | cut.Anchored = true; cut.Parent = workspace |
| 283 | table.insert(angBoxes, cut) |
| 284 | end |
| 285 | do |
| 286 | local w = angBoxes[1]:IntersectAsync({angBoxes[2]}) |
| 287 | angBoxes[1]:Destroy(); angBoxes[2]:Destroy() |
| 288 | w.Anchored = true; w.Parent = workspace |
| 289 | table.insert(cuts, w) |
| 290 | end |
| 291 | if #cuts > 0 then |
| 292 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 293 | for _, c in ipairs(cuts) do c:Destroy() end |
| 294 | if ok and result then |
| 295 | cyl:Destroy() |
| 296 | result.Name = "PetalLayer1"; result.Anchored = true; result.Parent = model |
| 297 | else |
| 298 | cyl.Name = "PetalLayer1"; cyl.Parent = model |
| 299 | end |
| 300 | else |
| 301 | cyl.Name = "PetalLayer1"; cyl.Parent = model |
| 302 | end |
| 303 | end |
| 304 | do |
| 305 | local rightV = Vector3.new(1,0,0).Unit |
| 306 | local upV = (Vector3.new(0,0,-1) - Vector3.new(0,0,-1):Dot(rightV)*rightV).Unit |
| 307 | local normalV = upV:Cross(rightV) |
| 308 | local pos = Vector3.new(0, 16.82, 0) |
| 309 | local cyl = Instance.new("Part") |
| 310 | cyl.Shape = Enum.PartType.Cylinder |
| 311 | cyl.Size = Vector3.new(2.8, 2.6, 2.6) |
| 312 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 313 | cyl.BrickColor = BrickColor.new("Really red") |
| 314 | cyl.Material = Enum.Material.Glacier |
| 315 | cyl.MaterialVariant = "2022 Stud" |
| 316 | cyl.Anchored = true; cyl.Parent = workspace |
| 317 | local cuts = {} |
| 318 | local hole = Instance.new("Part") |
| 319 | hole.Shape = Enum.PartType.Cylinder |
| 320 | hole.Size = Vector3.new(3, 1.6, 1.6) |
| 321 | hole.CFrame = cyl.CFrame |
| 322 | hole.BrickColor = BrickColor.new("Really red") |
| 323 | hole.Material = Enum.Material.Glacier |
| 324 | hole.MaterialVariant = "2022 Stud" |
| 325 | hole.Anchored = true; hole.Parent = workspace |
| 326 | table.insert(cuts, hole) |
| 327 | local angBoxes = {} |
| 328 | do |
| 329 | local edgeDir = -0.5*rightV + 0.866025*upV |
| 330 | local edgePerp = -0.866025*rightV + -0.5*upV |
| 331 | local cut = Instance.new("Part") |
| 332 | cut.Size = Vector3.new(5.2, 3, 5.2) |
| 333 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 2.6 * edgePerp, edgeDir, normalV) |
| 334 | cut.BrickColor = BrickColor.new("Really red") |
| 335 | cut.Material = Enum.Material.Glacier |
| 336 | cut.MaterialVariant = "2022 Stud" |
| 337 | cut.Anchored = true; cut.Parent = workspace |
| 338 | table.insert(angBoxes, cut) |
| 339 | end |
| 340 | do |
| 341 | local edgeDir = 0.939693*rightV + -0.34202*upV |
| 342 | local edgePerp = 0.34202*rightV + 0.939693*upV |
| 343 | local cut = Instance.new("Part") |
| 344 | cut.Size = Vector3.new(5.2, 3, 5.2) |
| 345 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 2.6 * edgePerp, edgeDir, normalV) |
| 346 | cut.BrickColor = BrickColor.new("Really red") |
| 347 | cut.Material = Enum.Material.Glacier |
| 348 | cut.MaterialVariant = "2022 Stud" |
| 349 | cut.Anchored = true; cut.Parent = workspace |
| 350 | table.insert(angBoxes, cut) |
| 351 | end |
| 352 | do |
| 353 | local w = angBoxes[1]:IntersectAsync({angBoxes[2]}) |
| 354 | angBoxes[1]:Destroy(); angBoxes[2]:Destroy() |
| 355 | w.Anchored = true; w.Parent = workspace |
| 356 | table.insert(cuts, w) |
| 357 | end |
| 358 | if #cuts > 0 then |
| 359 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 360 | for _, c in ipairs(cuts) do c:Destroy() end |
| 361 | if ok and result then |
| 362 | cyl:Destroy() |
| 363 | result.Name = "PetalLayer2"; result.Anchored = true; result.Parent = model |
| 364 | else |
| 365 | cyl.Name = "PetalLayer2"; cyl.Parent = model |
| 366 | end |
| 367 | else |
| 368 | cyl.Name = "PetalLayer2"; cyl.Parent = model |
| 369 | end |
| 370 | end |
| 371 | do |
| 372 | local rightV = Vector3.new(1,0,0).Unit |
| 373 | local upV = (Vector3.new(0,0,-1) - Vector3.new(0,0,-1):Dot(rightV)*rightV).Unit |
| 374 | local normalV = upV:Cross(rightV) |
| 375 | local pos = Vector3.new(0, 17.06, 0) |
| 376 | local cyl = Instance.new("Part") |
| 377 | cyl.Shape = Enum.PartType.Cylinder |
| 378 | cyl.Size = Vector3.new(3.2, 3.2, 3.2) |
| 379 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 380 | cyl.BrickColor = BrickColor.new("Crimson") |
| 381 | cyl.Material = Enum.Material.Glacier |
| 382 | cyl.MaterialVariant = "2022 Stud" |
| 383 | cyl.Anchored = true; cyl.Parent = workspace |
| 384 | local cuts = {} |
| 385 | local hole = Instance.new("Part") |
| 386 | hole.Shape = Enum.PartType.Cylinder |
| 387 | hole.Size = Vector3.new(3.4, 2.2, 2.2) |
| 388 | hole.CFrame = cyl.CFrame |
| 389 | hole.BrickColor = BrickColor.new("Crimson") |
| 390 | hole.Material = Enum.Material.Glacier |
| 391 | hole.MaterialVariant = "2022 Stud" |
| 392 | hole.Anchored = true; hole.Parent = workspace |
| 393 | table.insert(cuts, hole) |
| 394 | local angBoxes = {} |
| 395 | do |
| 396 | local edgeDir = -0.5*rightV + -0.866025*upV |
| 397 | local edgePerp = 0.866025*rightV + -0.5*upV |
| 398 | local cut = Instance.new("Part") |
| 399 | cut.Size = Vector3.new(6.4, 3.4, 6.4) |
| 400 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 3.2 * edgePerp, edgeDir, normalV) |
| 401 | cut.BrickColor = BrickColor.new("Crimson") |
| 402 | cut.Material = Enum.Material.Glacier |
| 403 | cut.MaterialVariant = "2022 Stud" |
| 404 | cut.Anchored = true; cut.Parent = workspace |
| 405 | table.insert(angBoxes, cut) |
| 406 | end |
| 407 | do |
| 408 | local edgeDir = -0.173648*rightV + 0.984808*upV |
| 409 | local edgePerp = -0.984808*rightV + -0.173648*upV |
| 410 | local cut = Instance.new("Part") |
| 411 | cut.Size = Vector3.new(6.4, 3.4, 6.4) |
| 412 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 3.2 * edgePerp, edgeDir, normalV) |
| 413 | cut.BrickColor = BrickColor.new("Crimson") |
| 414 | cut.Material = Enum.Material.Glacier |
| 415 | cut.MaterialVariant = "2022 Stud" |
| 416 | cut.Anchored = true; cut.Parent = workspace |
| 417 | table.insert(angBoxes, cut) |
| 418 | end |
| 419 | do |
| 420 | local w = angBoxes[1]:IntersectAsync({angBoxes[2]}) |
| 421 | angBoxes[1]:Destroy(); angBoxes[2]:Destroy() |
| 422 | w.Anchored = true; w.Parent = workspace |
| 423 | table.insert(cuts, w) |
| 424 | end |
| 425 | if #cuts > 0 then |
| 426 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 427 | for _, c in ipairs(cuts) do c:Destroy() end |
| 428 | if ok and result then |
| 429 | cyl:Destroy() |
| 430 | result.Name = "PetalLayer3"; result.Anchored = true; result.Parent = model |
| 431 | else |
| 432 | cyl.Name = "PetalLayer3"; cyl.Parent = model |
| 433 | end |
| 434 | else |
| 435 | cyl.Name = "PetalLayer3"; cyl.Parent = model |
| 436 | end |
| 437 | end |
| 438 | do |
| 439 | local rightV = Vector3.new(1,0,0).Unit |
| 440 | local upV = (Vector3.new(0,0,-1) - Vector3.new(0,0,-1):Dot(rightV)*rightV).Unit |
| 441 | local normalV = upV:Cross(rightV) |
| 442 | local pos = Vector3.new(0, 17.34, 0) |
| 443 | local cyl = Instance.new("Part") |
| 444 | cyl.Shape = Enum.PartType.Cylinder |
| 445 | cyl.Size = Vector3.new(3.6, 3.8, 3.8) |
| 446 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 447 | cyl.BrickColor = BrickColor.new("Really red") |
| 448 | cyl.Material = Enum.Material.Glacier |
| 449 | cyl.MaterialVariant = "2022 Stud" |
| 450 | cyl.Anchored = true; cyl.Parent = workspace |
| 451 | local cuts = {} |
| 452 | local hole = Instance.new("Part") |
| 453 | hole.Shape = Enum.PartType.Cylinder |
| 454 | hole.Size = Vector3.new(3.8, 2.8, 2.8) |
| 455 | hole.CFrame = cyl.CFrame |
| 456 | hole.BrickColor = BrickColor.new("Really red") |
| 457 | hole.Material = Enum.Material.Glacier |
| 458 | hole.MaterialVariant = "2022 Stud" |
| 459 | hole.Anchored = true; hole.Parent = workspace |
| 460 | table.insert(cuts, hole) |
| 461 | local angBoxes = {} |
| 462 | do |
| 463 | local edgeDir = 0.939693*rightV + 0.34202*upV |
| 464 | local edgePerp = -0.34202*rightV + 0.939693*upV |
| 465 | local cut = Instance.new("Part") |
| 466 | cut.Size = Vector3.new(7.6, 3.8, 7.6) |
| 467 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 3.8 * edgePerp, edgeDir, normalV) |
| 468 | cut.BrickColor = BrickColor.new("Really red") |
| 469 | cut.Material = Enum.Material.Glacier |
| 470 | cut.MaterialVariant = "2022 Stud" |
| 471 | cut.Anchored = true; cut.Parent = workspace |
| 472 | table.insert(angBoxes, cut) |
| 473 | end |
| 474 | do |
| 475 | local edgeDir = -0.939693*rightV + -0.34202*upV |
| 476 | local edgePerp = 0.34202*rightV + -0.939693*upV |
| 477 | local cut = Instance.new("Part") |
| 478 | cut.Size = Vector3.new(7.6, 3.8, 7.6) |
| 479 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 3.8 * edgePerp, edgeDir, normalV) |
| 480 | cut.BrickColor = BrickColor.new("Really red") |
| 481 | cut.Material = Enum.Material.Glacier |
| 482 | cut.MaterialVariant = "2022 Stud" |
| 483 | cut.Anchored = true; cut.Parent = workspace |
| 484 | table.insert(angBoxes, cut) |
| 485 | end |
| 486 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 487 | if #cuts > 0 then |
| 488 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 489 | for _, c in ipairs(cuts) do c:Destroy() end |
| 490 | if ok and result then |
| 491 | cyl:Destroy() |
| 492 | result.Name = "PetalLayer4"; result.Anchored = true; result.Parent = model |
| 493 | else |
| 494 | cyl.Name = "PetalLayer4"; cyl.Parent = model |
| 495 | end |
| 496 | else |
| 497 | cyl.Name = "PetalLayer4"; cyl.Parent = model |
| 498 | end |
| 499 | end |
| 500 | do |
| 501 | local rightV = Vector3.new(1,0,0).Unit |
| 502 | local upV = (Vector3.new(0,0,-1) - Vector3.new(0,0,-1):Dot(rightV)*rightV).Unit |
| 503 | local normalV = upV:Cross(rightV) |
| 504 | local pos = Vector3.new(0, 17.48, 0) |
| 505 | local cyl = Instance.new("Part") |
| 506 | cyl.Shape = Enum.PartType.Cylinder |
| 507 | cyl.Size = Vector3.new(3.8, 4.2, 4.2) |
| 508 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 509 | cyl.BrickColor = BrickColor.new("Crimson") |
| 510 | cyl.Material = Enum.Material.Glacier |
| 511 | cyl.MaterialVariant = "2022 Stud" |
| 512 | cyl.Anchored = true; cyl.Parent = workspace |
| 513 | local cuts = {} |
| 514 | local hole = Instance.new("Part") |
| 515 | hole.Shape = Enum.PartType.Cylinder |
| 516 | hole.Size = Vector3.new(4, 3.4, 3.4) |
| 517 | hole.CFrame = cyl.CFrame |
| 518 | hole.BrickColor = BrickColor.new("Crimson") |
| 519 | hole.Material = Enum.Material.Glacier |
| 520 | hole.MaterialVariant = "2022 Stud" |
| 521 | hole.Anchored = true; hole.Parent = workspace |
| 522 | table.insert(cuts, hole) |
| 523 | local angBoxes = {} |
| 524 | do |
| 525 | local edgeDir = -0.939693*rightV + 0.34202*upV |
| 526 | local edgePerp = -0.34202*rightV + -0.939693*upV |
| 527 | local cut = Instance.new("Part") |
| 528 | cut.Size = Vector3.new(8.4, 4, 8.4) |
| 529 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 4.2 * edgePerp, edgeDir, normalV) |
| 530 | cut.BrickColor = BrickColor.new("Crimson") |
| 531 | cut.Material = Enum.Material.Glacier |
| 532 | cut.MaterialVariant = "2022 Stud" |
| 533 | cut.Anchored = true; cut.Parent = workspace |
| 534 | table.insert(angBoxes, cut) |
| 535 | end |
| 536 | do |
| 537 | local edgeDir = 0.5*rightV + -0.866025*upV |
| 538 | local edgePerp = 0.866025*rightV + 0.5*upV |
| 539 | local cut = Instance.new("Part") |
| 540 | cut.Size = Vector3.new(8.4, 4, 8.4) |
| 541 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 4.2 * edgePerp, edgeDir, normalV) |
| 542 | cut.BrickColor = BrickColor.new("Crimson") |
| 543 | cut.Material = Enum.Material.Glacier |
| 544 | cut.MaterialVariant = "2022 Stud" |
| 545 | cut.Anchored = true; cut.Parent = workspace |
| 546 | table.insert(angBoxes, cut) |
| 547 | end |
| 548 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 549 | if #cuts > 0 then |
| 550 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 551 | for _, c in ipairs(cuts) do c:Destroy() end |
| 552 | if ok and result then |
| 553 | cyl:Destroy() |
| 554 | result.Name = "PetalLayer5"; result.Anchored = true; result.Parent = model |
| 555 | else |
| 556 | cyl.Name = "PetalLayer5"; cyl.Parent = model |
| 557 | end |
| 558 | else |
| 559 | cyl.Name = "PetalLayer5"; cyl.Parent = model |
| 560 | end |
| 561 | end |
| 562 | do |
| 563 | local upV = Vector3.new(0,1,0).Unit |
| 564 | local rightV = (Vector3.new(1,0,0) - Vector3.new(1,0,0):Dot(upV)*upV).Unit |
| 565 | local forwardV = rightV:Cross(upV) |
| 566 | local pos = Vector3.new(0, 15.5, 0) |
| 567 | local ball = Instance.new("Part") |
| 568 | ball.Shape = Enum.PartType.Ball |
| 569 | ball.Size = Vector3.new(3.6, 3.6, 3.6) |
| 570 | ball.CFrame = CFrame.new(pos) |
| 571 | ball.BrickColor = BrickColor.new("Crimson") |
| 572 | ball.Material = Enum.Material.Glacier |
| 573 | ball.MaterialVariant = "2022 Stud" |
| 574 | ball.Anchored = true; ball.Parent = workspace |
| 575 | local cuts = {} |
| 576 | do |
| 577 | local h = 0 |
| 578 | local cut = Instance.new("Part") |
| 579 | cut.Size = Vector3.new(7.2, 7.2, 7.2) |
| 580 | cut.CFrame = CFrame.fromMatrix(pos + upV*(3.6), rightV, upV) |
| 581 | cut.BrickColor = BrickColor.new("Crimson") |
| 582 | cut.Material = Enum.Material.Glacier |
| 583 | cut.MaterialVariant = "2022 Stud" |
| 584 | cut.Anchored = true; cut.Parent = workspace |
| 585 | table.insert(cuts, cut) |
| 586 | end |
| 587 | if #cuts > 0 then |
| 588 | local ok, result = pcall(function() return ball:SubtractAsync(cuts) end) |
| 589 | for _, c in ipairs(cuts) do c:Destroy() end |
| 590 | if ok and result then |
| 591 | ball:Destroy() |
| 592 | result.Name = "RoseBase"; result.Anchored = true; result.Parent = model |
| 593 | else |
| 594 | ball.Name = "RoseBase"; ball.Parent = model |
| 595 | end |
| 596 | else |
| 597 | ball.Name = "RoseBase"; ball.Parent = model |
| 598 | end |
| 599 | end |
| 600 | model.PrimaryPart = model:FindFirstChild("Stem") |
| 601 | print("RoseFlower built: " .. #model:GetChildren() .. " parts") |
Loading comments...