Loading model...
by Privd123 Chicken · 10/7/2026
Lua Script
| 1 | -- Generated with StudForge.org | AI-powered 3D models for Roblox |
| 2 | -- Model: HalloweenLollipop |
| 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 = "HalloweenLollipop" |
| 21 | model.Parent = workspace |
| 22 | |
| 23 | local variants = { |
| 24 | ["Bright violet"] = "2022 Stud", |
| 25 | ["Institutional white"] = "2022 Stud", |
| 26 | ["Magenta"] = "2022 Stud", |
| 27 | } |
| 28 | do |
| 29 | local p = Instance.new("Part") |
| 30 | p.Shape = Enum.PartType.Cylinder |
| 31 | p.Name = "Stick" |
| 32 | p.Size = Vector3.new(8, 0.4, 0.4) |
| 33 | p.CFrame = CFrame.new(0, 4, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 34 | p.BrickColor = BrickColor.new("Institutional white") |
| 35 | p.Material = Enum.Material.Glacier |
| 36 | p.MaterialVariant = "2022 Stud" |
| 37 | p.Anchored = true |
| 38 | p.Parent = model |
| 39 | end |
| 40 | do |
| 41 | local p = Instance.new("Part") |
| 42 | p.Shape = Enum.PartType.Cylinder |
| 43 | p.Name = "CandyBase" |
| 44 | p.Size = Vector3.new(1.2, 6, 6) |
| 45 | p.CFrame = CFrame.new(0, 8.5, 0) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)) |
| 46 | p.BrickColor = BrickColor.new("Magenta") |
| 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("Part") |
| 54 | p.Shape = Enum.PartType.Cylinder |
| 55 | p.Name = "CandyBackCenter" |
| 56 | p.Size = Vector3.new(0.2, 4, 4) |
| 57 | p.CFrame = CFrame.new(0, 8.5, 0.65) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)) |
| 58 | p.BrickColor = BrickColor.new("Bright violet") |
| 59 | p.Material = Enum.Material.Glacier |
| 60 | p.MaterialVariant = "2022 Stud" |
| 61 | p.Anchored = true |
| 62 | p.Parent = model |
| 63 | end |
| 64 | do |
| 65 | local p = Instance.new("Part") |
| 66 | p.Shape = Enum.PartType.Cylinder |
| 67 | p.Name = "StickJoint" |
| 68 | p.Size = Vector3.new(0.8, 0.6, 0.6) |
| 69 | p.CFrame = CFrame.new(0, 7.8, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 70 | p.BrickColor = BrickColor.new("Institutional white") |
| 71 | p.Material = Enum.Material.Glacier |
| 72 | p.MaterialVariant = "2022 Stud" |
| 73 | p.Anchored = true |
| 74 | p.Parent = model |
| 75 | end |
| 76 | do |
| 77 | local rightV = Vector3.new(1,0,0).Unit |
| 78 | local upV = (Vector3.new(0,1,0) - Vector3.new(0,1,0):Dot(rightV)*rightV).Unit |
| 79 | local normalV = upV:Cross(rightV) |
| 80 | local pos = Vector3.new(0, 8.58, -0.61) |
| 81 | local cyl = Instance.new("Part") |
| 82 | cyl.Shape = Enum.PartType.Cylinder |
| 83 | cyl.Size = Vector3.new(0.4, 2, 2) |
| 84 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 85 | cyl.BrickColor = BrickColor.new("Bright violet") |
| 86 | cyl.Material = Enum.Material.Glacier |
| 87 | cyl.MaterialVariant = "2022 Stud" |
| 88 | cyl.Anchored = true; cyl.Parent = workspace |
| 89 | local cuts = {} |
| 90 | local angBoxes = {} |
| 91 | do |
| 92 | local edgeDir = 1*rightV + 0*upV |
| 93 | local edgePerp = 0*rightV + 1*upV |
| 94 | local cut = Instance.new("Part") |
| 95 | cut.Size = Vector3.new(4, 0.6, 4) |
| 96 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 2 * edgePerp, edgeDir, normalV) |
| 97 | cut.BrickColor = BrickColor.new("Bright violet") |
| 98 | cut.Material = Enum.Material.Glacier |
| 99 | cut.MaterialVariant = "2022 Stud" |
| 100 | cut.Anchored = true; cut.Parent = workspace |
| 101 | table.insert(angBoxes, cut) |
| 102 | end |
| 103 | do |
| 104 | local edgeDir = -1*rightV + 0*upV |
| 105 | local edgePerp = 0*rightV + -1*upV |
| 106 | local cut = Instance.new("Part") |
| 107 | cut.Size = Vector3.new(4, 0.6, 4) |
| 108 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 2 * edgePerp, edgeDir, normalV) |
| 109 | cut.BrickColor = BrickColor.new("Bright violet") |
| 110 | cut.Material = Enum.Material.Glacier |
| 111 | cut.MaterialVariant = "2022 Stud" |
| 112 | cut.Anchored = true; cut.Parent = workspace |
| 113 | table.insert(angBoxes, cut) |
| 114 | end |
| 115 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 116 | if #cuts > 0 then |
| 117 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 118 | for _, c in ipairs(cuts) do c:Destroy() end |
| 119 | if ok and result then |
| 120 | cyl:Destroy() |
| 121 | result.Name = "Swirl1"; result.Anchored = true; result.Parent = model |
| 122 | else |
| 123 | cyl.Name = "Swirl1"; cyl.Parent = model |
| 124 | end |
| 125 | else |
| 126 | cyl.Name = "Swirl1"; cyl.Parent = model |
| 127 | end |
| 128 | end |
| 129 | do |
| 130 | local rightV = Vector3.new(1,0,0).Unit |
| 131 | local upV = (Vector3.new(0,1,0) - Vector3.new(0,1,0):Dot(rightV)*rightV).Unit |
| 132 | local normalV = upV:Cross(rightV) |
| 133 | local pos = Vector3.new(0, 8.54, -0.57) |
| 134 | local cyl = Instance.new("Part") |
| 135 | cyl.Shape = Enum.PartType.Cylinder |
| 136 | cyl.Size = Vector3.new(0.4, 3.6, 3.6) |
| 137 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 138 | cyl.BrickColor = BrickColor.new("Bright violet") |
| 139 | cyl.Material = Enum.Material.Glacier |
| 140 | cyl.MaterialVariant = "2022 Stud" |
| 141 | cyl.Anchored = true; cyl.Parent = workspace |
| 142 | local cuts = {} |
| 143 | local hole = Instance.new("Part") |
| 144 | hole.Shape = Enum.PartType.Cylinder |
| 145 | hole.Size = Vector3.new(0.6, 1.6, 1.6) |
| 146 | hole.CFrame = cyl.CFrame |
| 147 | hole.BrickColor = BrickColor.new("Bright violet") |
| 148 | hole.Material = Enum.Material.Glacier |
| 149 | hole.MaterialVariant = "2022 Stud" |
| 150 | hole.Anchored = true; hole.Parent = workspace |
| 151 | table.insert(cuts, hole) |
| 152 | local angBoxes = {} |
| 153 | do |
| 154 | local edgeDir = -1*rightV + 0*upV |
| 155 | local edgePerp = 0*rightV + -1*upV |
| 156 | local cut = Instance.new("Part") |
| 157 | cut.Size = Vector3.new(7.2, 0.6, 7.2) |
| 158 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 3.6 * edgePerp, edgeDir, normalV) |
| 159 | cut.BrickColor = BrickColor.new("Bright violet") |
| 160 | cut.Material = Enum.Material.Glacier |
| 161 | cut.MaterialVariant = "2022 Stud" |
| 162 | cut.Anchored = true; cut.Parent = workspace |
| 163 | table.insert(angBoxes, cut) |
| 164 | end |
| 165 | do |
| 166 | local edgeDir = 1*rightV + 0*upV |
| 167 | local edgePerp = 0*rightV + 1*upV |
| 168 | local cut = Instance.new("Part") |
| 169 | cut.Size = Vector3.new(7.2, 0.6, 7.2) |
| 170 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 3.6 * edgePerp, edgeDir, normalV) |
| 171 | cut.BrickColor = BrickColor.new("Bright violet") |
| 172 | cut.Material = Enum.Material.Glacier |
| 173 | cut.MaterialVariant = "2022 Stud" |
| 174 | cut.Anchored = true; cut.Parent = workspace |
| 175 | table.insert(angBoxes, cut) |
| 176 | end |
| 177 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 178 | if #cuts > 0 then |
| 179 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 180 | for _, c in ipairs(cuts) do c:Destroy() end |
| 181 | if ok and result then |
| 182 | cyl:Destroy() |
| 183 | result.Name = "Swirl2"; result.Anchored = true; result.Parent = model |
| 184 | else |
| 185 | cyl.Name = "Swirl2"; cyl.Parent = model |
| 186 | end |
| 187 | else |
| 188 | cyl.Name = "Swirl2"; cyl.Parent = model |
| 189 | end |
| 190 | end |
| 191 | do |
| 192 | local rightV = Vector3.new(1,0,0).Unit |
| 193 | local upV = (Vector3.new(0,1,0) - Vector3.new(0,1,0):Dot(rightV)*rightV).Unit |
| 194 | local normalV = upV:Cross(rightV) |
| 195 | local pos = Vector3.new(0, 8.5, -0.65) |
| 196 | local cyl = Instance.new("Part") |
| 197 | cyl.Shape = Enum.PartType.Cylinder |
| 198 | cyl.Size = Vector3.new(0.4, 5.2, 5.2) |
| 199 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 200 | cyl.BrickColor = BrickColor.new("Bright violet") |
| 201 | cyl.Material = Enum.Material.Glacier |
| 202 | cyl.MaterialVariant = "2022 Stud" |
| 203 | cyl.Anchored = true; cyl.Parent = workspace |
| 204 | local cuts = {} |
| 205 | local hole = Instance.new("Part") |
| 206 | hole.Shape = Enum.PartType.Cylinder |
| 207 | hole.Size = Vector3.new(0.6, 3.2, 3.2) |
| 208 | hole.CFrame = cyl.CFrame |
| 209 | hole.BrickColor = BrickColor.new("Bright violet") |
| 210 | hole.Material = Enum.Material.Glacier |
| 211 | hole.MaterialVariant = "2022 Stud" |
| 212 | hole.Anchored = true; hole.Parent = workspace |
| 213 | table.insert(cuts, hole) |
| 214 | local angBoxes = {} |
| 215 | do |
| 216 | local edgeDir = 1*rightV + 0*upV |
| 217 | local edgePerp = 0*rightV + 1*upV |
| 218 | local cut = Instance.new("Part") |
| 219 | cut.Size = Vector3.new(10.4, 0.6, 10.4) |
| 220 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 5.2 * edgePerp, edgeDir, normalV) |
| 221 | cut.BrickColor = BrickColor.new("Bright violet") |
| 222 | cut.Material = Enum.Material.Glacier |
| 223 | cut.MaterialVariant = "2022 Stud" |
| 224 | cut.Anchored = true; cut.Parent = workspace |
| 225 | table.insert(angBoxes, cut) |
| 226 | end |
| 227 | do |
| 228 | local edgeDir = -1*rightV + 0*upV |
| 229 | local edgePerp = 0*rightV + -1*upV |
| 230 | local cut = Instance.new("Part") |
| 231 | cut.Size = Vector3.new(10.4, 0.6, 10.4) |
| 232 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 5.2 * edgePerp, edgeDir, normalV) |
| 233 | cut.BrickColor = BrickColor.new("Bright violet") |
| 234 | cut.Material = Enum.Material.Glacier |
| 235 | cut.MaterialVariant = "2022 Stud" |
| 236 | cut.Anchored = true; cut.Parent = workspace |
| 237 | table.insert(angBoxes, cut) |
| 238 | end |
| 239 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 240 | if #cuts > 0 then |
| 241 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 242 | for _, c in ipairs(cuts) do c:Destroy() end |
| 243 | if ok and result then |
| 244 | cyl:Destroy() |
| 245 | result.Name = "Swirl3"; result.Anchored = true; result.Parent = model |
| 246 | else |
| 247 | cyl.Name = "Swirl3"; cyl.Parent = model |
| 248 | end |
| 249 | else |
| 250 | cyl.Name = "Swirl3"; cyl.Parent = model |
| 251 | end |
| 252 | end |
| 253 | do |
| 254 | local rightV = Vector3.new(1,0,0).Unit |
| 255 | local upV = (Vector3.new(0,1,0) - Vector3.new(0,1,0):Dot(rightV)*rightV).Unit |
| 256 | local normalV = upV:Cross(rightV) |
| 257 | local pos = Vector3.new(0, 8.54, -0.61) |
| 258 | local cyl = Instance.new("Part") |
| 259 | cyl.Shape = Enum.PartType.Cylinder |
| 260 | cyl.Size = Vector3.new(0.4, 6, 6) |
| 261 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 262 | cyl.BrickColor = BrickColor.new("Bright violet") |
| 263 | cyl.Material = Enum.Material.Glacier |
| 264 | cyl.MaterialVariant = "2022 Stud" |
| 265 | cyl.Anchored = true; cyl.Parent = workspace |
| 266 | local cuts = {} |
| 267 | local hole = Instance.new("Part") |
| 268 | hole.Shape = Enum.PartType.Cylinder |
| 269 | hole.Size = Vector3.new(0.6, 4.8, 4.8) |
| 270 | hole.CFrame = cyl.CFrame |
| 271 | hole.BrickColor = BrickColor.new("Bright violet") |
| 272 | hole.Material = Enum.Material.Glacier |
| 273 | hole.MaterialVariant = "2022 Stud" |
| 274 | hole.Anchored = true; hole.Parent = workspace |
| 275 | table.insert(cuts, hole) |
| 276 | local angBoxes = {} |
| 277 | do |
| 278 | local edgeDir = -1*rightV + 0*upV |
| 279 | local edgePerp = 0*rightV + -1*upV |
| 280 | local cut = Instance.new("Part") |
| 281 | cut.Size = Vector3.new(12, 0.6, 12) |
| 282 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 6 * edgePerp, edgeDir, normalV) |
| 283 | cut.BrickColor = BrickColor.new("Bright violet") |
| 284 | cut.Material = Enum.Material.Glacier |
| 285 | cut.MaterialVariant = "2022 Stud" |
| 286 | cut.Anchored = true; cut.Parent = workspace |
| 287 | table.insert(angBoxes, cut) |
| 288 | end |
| 289 | do |
| 290 | local edgeDir = 1*rightV + 0*upV |
| 291 | local edgePerp = 0*rightV + 1*upV |
| 292 | local cut = Instance.new("Part") |
| 293 | cut.Size = Vector3.new(12, 0.6, 12) |
| 294 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 6 * edgePerp, edgeDir, normalV) |
| 295 | cut.BrickColor = BrickColor.new("Bright violet") |
| 296 | cut.Material = Enum.Material.Glacier |
| 297 | cut.MaterialVariant = "2022 Stud" |
| 298 | cut.Anchored = true; cut.Parent = workspace |
| 299 | table.insert(angBoxes, cut) |
| 300 | end |
| 301 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 302 | if #cuts > 0 then |
| 303 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 304 | for _, c in ipairs(cuts) do c:Destroy() end |
| 305 | if ok and result then |
| 306 | cyl:Destroy() |
| 307 | result.Name = "Swirl4"; result.Anchored = true; result.Parent = model |
| 308 | else |
| 309 | cyl.Name = "Swirl4"; cyl.Parent = model |
| 310 | end |
| 311 | else |
| 312 | cyl.Name = "Swirl4"; cyl.Parent = model |
| 313 | end |
| 314 | end |
| 315 | model.PrimaryPart = model:FindFirstChild("CandyBase") |
| 316 | print("HalloweenLollipop built: " .. #model:GetChildren() .. " parts") |
Loading comments...