Loading model...
by Emilio Cano Schnell · 10/24/2026
Lua Script
| 1 | -- Generated with StudForge.org | AI-powered 3D models for Roblox |
| 2 | -- Model: RetroAlarmClock |
| 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 = "RetroAlarmClock" |
| 21 | model.Parent = workspace |
| 22 | |
| 23 | local variants = { |
| 24 | ["Brick yellow"] = "2022 Stud", |
| 25 | ["Bright red"] = "2022 Stud", |
| 26 | ["Dark stone grey"] = "2022 Stud", |
| 27 | ["Light stone grey"] = "2022 Glue", |
| 28 | ["Really black"] = "2022 Universal", |
| 29 | ["Really red"] = "2022 Stud", |
| 30 | } |
| 31 | do |
| 32 | local p = Instance.new("Part") |
| 33 | p.Shape = Enum.PartType.Cylinder |
| 34 | p.Name = "CasingMain" |
| 35 | p.Size = Vector3.new(3, 12, 12) |
| 36 | p.CFrame = CFrame.new(0, 7, 0) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)) |
| 37 | p.BrickColor = BrickColor.new("Bright red") |
| 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.Shape = Enum.PartType.Cylinder |
| 46 | p.Name = "CasingBezel" |
| 47 | p.Size = Vector3.new(0.4, 12.4, 12.4) |
| 48 | p.CFrame = CFrame.new(0, 7, -1.5) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)) |
| 49 | p.BrickColor = BrickColor.new("Bright red") |
| 50 | p.Material = Enum.Material.Glacier |
| 51 | p.MaterialVariant = "2022 Stud" |
| 52 | p.Anchored = true |
| 53 | p.Parent = model |
| 54 | end |
| 55 | do |
| 56 | local p = Instance.new("Part") |
| 57 | p.Shape = Enum.PartType.Cylinder |
| 58 | p.Name = "ClockFace" |
| 59 | p.Size = Vector3.new(0.1, 9.6, 9.6) |
| 60 | p.CFrame = CFrame.new(0, 7, -1.6) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)) |
| 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 = "Tick_0" |
| 70 | p.Size = Vector3.new(0.1, 0.8, 0.3) |
| 71 | p.CFrame = CFrame.new(0, 11.2, -1.74) |
| 72 | p.BrickColor = BrickColor.new("Really black") |
| 73 | p.Material = Enum.Material.Glacier |
| 74 | p.MaterialVariant = "2022 Universal" |
| 75 | p.Anchored = true |
| 76 | p.Parent = model |
| 77 | end |
| 78 | do |
| 79 | local p = Instance.new("Part") |
| 80 | p.Name = "Tick_1" |
| 81 | p.Size = Vector3.new(0.1, 0.8, 0.3) |
| 82 | p.CFrame = CFrame.new(2.1, 10.637307, -1.74) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-30)) |
| 83 | p.BrickColor = BrickColor.new("Really black") |
| 84 | p.Material = Enum.Material.Glacier |
| 85 | p.MaterialVariant = "2022 Universal" |
| 86 | p.Anchored = true |
| 87 | p.Parent = model |
| 88 | end |
| 89 | do |
| 90 | local p = Instance.new("Part") |
| 91 | p.Name = "Tick_2" |
| 92 | p.Size = Vector3.new(0.1, 0.8, 0.3) |
| 93 | p.CFrame = CFrame.new(3.637307, 9.1, -1.74) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-60)) |
| 94 | p.BrickColor = BrickColor.new("Really black") |
| 95 | p.Material = Enum.Material.Glacier |
| 96 | p.MaterialVariant = "2022 Universal" |
| 97 | p.Anchored = true |
| 98 | p.Parent = model |
| 99 | end |
| 100 | do |
| 101 | local p = Instance.new("Part") |
| 102 | p.Name = "Tick_3" |
| 103 | p.Size = Vector3.new(0.1, 0.8, 0.3) |
| 104 | p.CFrame = CFrame.new(4.2, 7, -1.74) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90)) |
| 105 | p.BrickColor = BrickColor.new("Really black") |
| 106 | p.Material = Enum.Material.Glacier |
| 107 | p.MaterialVariant = "2022 Universal" |
| 108 | p.Anchored = true |
| 109 | p.Parent = model |
| 110 | end |
| 111 | do |
| 112 | local p = Instance.new("Part") |
| 113 | p.Name = "Tick_4" |
| 114 | p.Size = Vector3.new(0.1, 0.8, 0.3) |
| 115 | p.CFrame = CFrame.new(3.637307, 4.9, -1.74) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-120)) |
| 116 | p.BrickColor = BrickColor.new("Really black") |
| 117 | p.Material = Enum.Material.Glacier |
| 118 | p.MaterialVariant = "2022 Universal" |
| 119 | p.Anchored = true |
| 120 | p.Parent = model |
| 121 | end |
| 122 | do |
| 123 | local p = Instance.new("Part") |
| 124 | p.Name = "Tick_5" |
| 125 | p.Size = Vector3.new(0.1, 0.8, 0.3) |
| 126 | p.CFrame = CFrame.new(2.1, 3.362693, -1.74) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-150)) |
| 127 | p.BrickColor = BrickColor.new("Really black") |
| 128 | p.Material = Enum.Material.Glacier |
| 129 | p.MaterialVariant = "2022 Universal" |
| 130 | p.Anchored = true |
| 131 | p.Parent = model |
| 132 | end |
| 133 | do |
| 134 | local p = Instance.new("Part") |
| 135 | p.Name = "Tick_6" |
| 136 | p.Size = Vector3.new(0.1, 0.8, 0.3) |
| 137 | p.CFrame = CFrame.new(0, 2.8, -1.74) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-180)) |
| 138 | p.BrickColor = BrickColor.new("Really black") |
| 139 | p.Material = Enum.Material.Glacier |
| 140 | p.MaterialVariant = "2022 Universal" |
| 141 | p.Anchored = true |
| 142 | p.Parent = model |
| 143 | end |
| 144 | do |
| 145 | local p = Instance.new("Part") |
| 146 | p.Name = "Tick_7" |
| 147 | p.Size = Vector3.new(0.1, 0.8, 0.3) |
| 148 | p.CFrame = CFrame.new(-2.1, 3.362693, -1.74) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-210)) |
| 149 | p.BrickColor = BrickColor.new("Really black") |
| 150 | p.Material = Enum.Material.Glacier |
| 151 | p.MaterialVariant = "2022 Universal" |
| 152 | p.Anchored = true |
| 153 | p.Parent = model |
| 154 | end |
| 155 | do |
| 156 | local p = Instance.new("Part") |
| 157 | p.Name = "Tick_8" |
| 158 | p.Size = Vector3.new(0.1, 0.8, 0.3) |
| 159 | p.CFrame = CFrame.new(-3.637307, 4.9, -1.74) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-240)) |
| 160 | p.BrickColor = BrickColor.new("Really black") |
| 161 | p.Material = Enum.Material.Glacier |
| 162 | p.MaterialVariant = "2022 Universal" |
| 163 | p.Anchored = true |
| 164 | p.Parent = model |
| 165 | end |
| 166 | do |
| 167 | local p = Instance.new("Part") |
| 168 | p.Name = "Tick_9" |
| 169 | p.Size = Vector3.new(0.1, 0.8, 0.3) |
| 170 | p.CFrame = CFrame.new(-4.2, 7, -1.74) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-270)) |
| 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 = "Tick_10" |
| 180 | p.Size = Vector3.new(0.1, 0.8, 0.3) |
| 181 | p.CFrame = CFrame.new(-3.637307, 9.1, -1.74) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-300)) |
| 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 = "Tick_11" |
| 191 | p.Size = Vector3.new(0.1, 0.8, 0.3) |
| 192 | p.CFrame = CFrame.new(-2.1, 10.637307, -1.74) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-330)) |
| 193 | p.BrickColor = BrickColor.new("Really black") |
| 194 | p.Material = Enum.Material.Glacier |
| 195 | p.MaterialVariant = "2022 Universal" |
| 196 | p.Anchored = true |
| 197 | p.Parent = model |
| 198 | end |
| 199 | do |
| 200 | local p = Instance.new("Part") |
| 201 | p.Shape = Enum.PartType.Cylinder |
| 202 | p.Name = "CenterPin" |
| 203 | p.Size = Vector3.new(0.4, 0.5, 0.5) |
| 204 | p.CFrame = CFrame.new(0, 7, -1.8) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)) |
| 205 | p.BrickColor = BrickColor.new("Really black") |
| 206 | p.Material = Enum.Material.Glacier |
| 207 | p.MaterialVariant = "2022 Universal" |
| 208 | p.Anchored = true |
| 209 | p.Parent = model |
| 210 | end |
| 211 | do |
| 212 | local p = Instance.new("Part") |
| 213 | p.Name = "HourHand" |
| 214 | p.Size = Vector3.new(2.12132, 0.4, 0.1) |
| 215 | p.CFrame = CFrame.new(-0.75, 6.25, -1.75) * CFrame.Angles(math.rad(-180), math.rad(0), math.rad(135)) |
| 216 | p.BrickColor = BrickColor.new("Really black") |
| 217 | p.Material = Enum.Material.Glacier |
| 218 | p.MaterialVariant = "2022 Universal" |
| 219 | p.Anchored = true |
| 220 | p.Parent = model |
| 221 | end |
| 222 | do |
| 223 | local p = Instance.new("Part") |
| 224 | p.Name = "MinuteHand" |
| 225 | p.Size = Vector3.new(3.535534, 0.3, 0.1) |
| 226 | p.CFrame = CFrame.new(1.25, 8.25, -1.8) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(45)) |
| 227 | p.BrickColor = BrickColor.new("Light stone grey") |
| 228 | p.Material = Enum.Material.Glacier |
| 229 | p.MaterialVariant = "2022 Glue" |
| 230 | p.Anchored = true |
| 231 | p.Parent = model |
| 232 | end |
| 233 | do |
| 234 | local p = Instance.new("Part") |
| 235 | p.Name = "SecondHand" |
| 236 | p.Size = Vector3.new(3.5, 0.1, 0.1) |
| 237 | p.CFrame = CFrame.new(0, 8.75, -1.85) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 238 | p.BrickColor = BrickColor.new("Really red") |
| 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 = "BellStalkL" |
| 248 | p.Size = Vector3.new(1.414214, 0.6, 0.6) |
| 249 | p.CFrame = CFrame.new(-3.5, 11, 0) * CFrame.Angles(math.rad(-180), math.rad(0), math.rad(-135)) |
| 250 | p.BrickColor = BrickColor.new("Dark stone grey") |
| 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 = "BellStalkR" |
| 260 | p.Size = Vector3.new(1.414214, 0.6, 0.6) |
| 261 | p.CFrame = CFrame.new(3.5, 11, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(45)) |
| 262 | p.BrickColor = BrickColor.new("Dark stone grey") |
| 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.Name = "HammerStem" |
| 271 | p.Size = Vector3.new(1.5, 0.2, 0.2) |
| 272 | p.CFrame = CFrame.new(0, 11, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 273 | p.BrickColor = BrickColor.new("Light stone grey") |
| 274 | p.Material = Enum.Material.Glacier |
| 275 | p.MaterialVariant = "2022 Glue" |
| 276 | p.Anchored = true |
| 277 | p.Parent = model |
| 278 | end |
| 279 | do |
| 280 | local p = Instance.new("Part") |
| 281 | p.Shape = Enum.PartType.Cylinder |
| 282 | p.Name = "HammerHead" |
| 283 | p.Size = Vector3.new(1.2, 0.6, 0.6) |
| 284 | p.CFrame = CFrame.new(0, 12, 0) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)) |
| 285 | p.BrickColor = BrickColor.new("Light stone grey") |
| 286 | p.Material = Enum.Material.Glacier |
| 287 | p.MaterialVariant = "2022 Glue" |
| 288 | p.Anchored = true |
| 289 | p.Parent = model |
| 290 | end |
| 291 | do |
| 292 | local p = Instance.new("Part") |
| 293 | p.Shape = Enum.PartType.Cylinder |
| 294 | p.Name = "HandleSeg_0" |
| 295 | p.Size = Vector3.new(1.802776, 0.25, 0.25) |
| 296 | p.CFrame = CFrame.new(-2.5, 13.75, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(56.309932)) |
| 297 | p.BrickColor = BrickColor.new("Dark stone grey") |
| 298 | p.Material = Enum.Material.Glacier |
| 299 | p.MaterialVariant = "2022 Stud" |
| 300 | p.Anchored = true |
| 301 | p.Parent = model |
| 302 | end |
| 303 | do |
| 304 | local p = Instance.new("Part") |
| 305 | p.Shape = Enum.PartType.Cylinder |
| 306 | p.Name = "HandleSeg_1" |
| 307 | p.Size = Vector3.new(2.061553, 0.25, 0.25) |
| 308 | p.CFrame = CFrame.new(-1, 14.75, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(14.036243)) |
| 309 | p.BrickColor = BrickColor.new("Dark stone grey") |
| 310 | p.Material = Enum.Material.Glacier |
| 311 | p.MaterialVariant = "2022 Stud" |
| 312 | p.Anchored = true |
| 313 | p.Parent = model |
| 314 | end |
| 315 | do |
| 316 | local p = Instance.new("Part") |
| 317 | p.Shape = Enum.PartType.Cylinder |
| 318 | p.Name = "HandleSeg_2" |
| 319 | p.Size = Vector3.new(2.061553, 0.25, 0.25) |
| 320 | p.CFrame = CFrame.new(1, 14.75, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-14.036243)) |
| 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.Shape = Enum.PartType.Cylinder |
| 330 | p.Name = "HandleSeg_3" |
| 331 | p.Size = Vector3.new(1.802776, 0.25, 0.25) |
| 332 | p.CFrame = CFrame.new(2.5, 13.75, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-56.309932)) |
| 333 | p.BrickColor = BrickColor.new("Dark stone grey") |
| 334 | p.Material = Enum.Material.Glacier |
| 335 | p.MaterialVariant = "2022 Stud" |
| 336 | p.Anchored = true |
| 337 | p.Parent = model |
| 338 | end |
| 339 | do |
| 340 | local p = Instance.new("WedgePart") |
| 341 | p.Name = "FootL" |
| 342 | p.Size = Vector3.new(1.2, 2.5, 1.2) |
| 343 | p.CFrame = CFrame.new(-3.5, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(25)) |
| 344 | p.BrickColor = BrickColor.new("Light stone grey") |
| 345 | p.Material = Enum.Material.Glacier |
| 346 | p.MaterialVariant = "2022 Glue" |
| 347 | p.Anchored = true |
| 348 | p.Parent = model |
| 349 | end |
| 350 | do |
| 351 | local p = Instance.new("WedgePart") |
| 352 | p.Name = "FootR" |
| 353 | p.Size = Vector3.new(1.2, 2.5, 1.2) |
| 354 | p.CFrame = CFrame.new(3.5, 1, 0) * CFrame.Angles(math.rad(0), math.rad(180), math.rad(-25)) |
| 355 | p.BrickColor = BrickColor.new("Light stone grey") |
| 356 | p.Material = Enum.Material.Glacier |
| 357 | p.MaterialVariant = "2022 Glue" |
| 358 | p.Anchored = true |
| 359 | p.Parent = model |
| 360 | end |
| 361 | do |
| 362 | local p = Instance.new("Part") |
| 363 | p.Shape = Enum.PartType.Cylinder |
| 364 | p.Name = "BackPlate" |
| 365 | p.Size = Vector3.new(0.2, 10.8, 10.8) |
| 366 | p.CFrame = CFrame.new(0, 7, 1.5) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)) |
| 367 | p.BrickColor = BrickColor.new("Bright red") |
| 368 | p.Material = Enum.Material.Glacier |
| 369 | p.MaterialVariant = "2022 Stud" |
| 370 | p.Anchored = true |
| 371 | p.Parent = model |
| 372 | end |
| 373 | do |
| 374 | local p = Instance.new("Part") |
| 375 | p.Shape = Enum.PartType.Cylinder |
| 376 | p.Name = "Winder1_Stem" |
| 377 | p.Size = Vector3.new(0.8, 0.3, 0.3) |
| 378 | p.CFrame = CFrame.new(1.5, 8, 1.9) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)) |
| 379 | p.BrickColor = BrickColor.new("Light stone grey") |
| 380 | p.Material = Enum.Material.Glacier |
| 381 | p.MaterialVariant = "2022 Glue" |
| 382 | p.Anchored = true |
| 383 | p.Parent = model |
| 384 | end |
| 385 | do |
| 386 | local p = Instance.new("Part") |
| 387 | p.Name = "Winder1_Key" |
| 388 | p.Size = Vector3.new(0.1, 1.5, 0.6) |
| 389 | p.CFrame = CFrame.new(1.5, 8, 2.3) |
| 390 | p.BrickColor = BrickColor.new("Light stone grey") |
| 391 | p.Material = Enum.Material.Glacier |
| 392 | p.MaterialVariant = "2022 Glue" |
| 393 | p.Anchored = true |
| 394 | p.Parent = model |
| 395 | end |
| 396 | do |
| 397 | local p = Instance.new("Part") |
| 398 | p.Shape = Enum.PartType.Cylinder |
| 399 | p.Name = "Winder2_Stem" |
| 400 | p.Size = Vector3.new(0.8, 0.3, 0.3) |
| 401 | p.CFrame = CFrame.new(-1.5, 6, 1.9) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)) |
| 402 | p.BrickColor = BrickColor.new("Light stone grey") |
| 403 | p.Material = Enum.Material.Glacier |
| 404 | p.MaterialVariant = "2022 Glue" |
| 405 | p.Anchored = true |
| 406 | p.Parent = model |
| 407 | end |
| 408 | do |
| 409 | local p = Instance.new("Part") |
| 410 | p.Name = "Winder2_Key" |
| 411 | p.Size = Vector3.new(0.1, 1.5, 0.6) |
| 412 | p.CFrame = CFrame.new(-1.5, 6, 2.3) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 413 | p.BrickColor = BrickColor.new("Light stone grey") |
| 414 | p.Material = Enum.Material.Glacier |
| 415 | p.MaterialVariant = "2022 Glue" |
| 416 | p.Anchored = true |
| 417 | p.Parent = model |
| 418 | end |
| 419 | do |
| 420 | local upV = Vector3.new(0.8,0.6,0).Unit |
| 421 | local rightV = (Vector3.new(1,0,0) - Vector3.new(1,0,0):Dot(upV)*upV).Unit |
| 422 | local forwardV = rightV:Cross(upV) |
| 423 | local pos = Vector3.new(-4.5, 12, 0) |
| 424 | local ball = Instance.new("Part") |
| 425 | ball.Shape = Enum.PartType.Ball |
| 426 | ball.Size = Vector3.new(5, 5, 5) |
| 427 | ball.CFrame = CFrame.new(pos) |
| 428 | ball.BrickColor = BrickColor.new("Dark stone grey") |
| 429 | ball.Material = Enum.Material.Glacier |
| 430 | ball.MaterialVariant = "2022 Stud" |
| 431 | ball.Anchored = true; ball.Parent = workspace |
| 432 | local cuts = {} |
| 433 | do |
| 434 | local h = 0 |
| 435 | local cut = Instance.new("Part") |
| 436 | cut.Size = Vector3.new(10, 10, 10) |
| 437 | cut.CFrame = CFrame.fromMatrix(pos + upV*(-5), rightV, upV) |
| 438 | cut.BrickColor = BrickColor.new("Dark stone grey") |
| 439 | cut.Material = Enum.Material.Glacier |
| 440 | cut.MaterialVariant = "2022 Stud" |
| 441 | cut.Anchored = true; cut.Parent = workspace |
| 442 | table.insert(cuts, cut) |
| 443 | end |
| 444 | if #cuts > 0 then |
| 445 | local ok, result = pcall(function() return ball:SubtractAsync(cuts) end) |
| 446 | for _, c in ipairs(cuts) do c:Destroy() end |
| 447 | if ok and result then |
| 448 | ball:Destroy() |
| 449 | result.Name = "BellLeft"; result.Anchored = true; result.Parent = model |
| 450 | else |
| 451 | ball.Name = "BellLeft"; ball.Parent = model |
| 452 | end |
| 453 | else |
| 454 | ball.Name = "BellLeft"; ball.Parent = model |
| 455 | end |
| 456 | end |
| 457 | do |
| 458 | local upV = Vector3.new(-0.8,0.6,0).Unit |
| 459 | local rightV = (Vector3.new(1,0,0) - Vector3.new(1,0,0):Dot(upV)*upV).Unit |
| 460 | local forwardV = rightV:Cross(upV) |
| 461 | local pos = Vector3.new(4.5, 12, 0) |
| 462 | local ball = Instance.new("Part") |
| 463 | ball.Shape = Enum.PartType.Ball |
| 464 | ball.Size = Vector3.new(5, 5, 5) |
| 465 | ball.CFrame = CFrame.new(pos) |
| 466 | ball.BrickColor = BrickColor.new("Dark stone grey") |
| 467 | ball.Material = Enum.Material.Glacier |
| 468 | ball.MaterialVariant = "2022 Stud" |
| 469 | ball.Anchored = true; ball.Parent = workspace |
| 470 | local cuts = {} |
| 471 | do |
| 472 | local h = 0 |
| 473 | local cut = Instance.new("Part") |
| 474 | cut.Size = Vector3.new(10, 10, 10) |
| 475 | cut.CFrame = CFrame.fromMatrix(pos + upV*(-5), rightV, upV) |
| 476 | cut.BrickColor = BrickColor.new("Dark stone grey") |
| 477 | cut.Material = Enum.Material.Glacier |
| 478 | cut.MaterialVariant = "2022 Stud" |
| 479 | cut.Anchored = true; cut.Parent = workspace |
| 480 | table.insert(cuts, cut) |
| 481 | end |
| 482 | if #cuts > 0 then |
| 483 | local ok, result = pcall(function() return ball:SubtractAsync(cuts) end) |
| 484 | for _, c in ipairs(cuts) do c:Destroy() end |
| 485 | if ok and result then |
| 486 | ball:Destroy() |
| 487 | result.Name = "BellRight"; result.Anchored = true; result.Parent = model |
| 488 | else |
| 489 | ball.Name = "BellRight"; ball.Parent = model |
| 490 | end |
| 491 | else |
| 492 | ball.Name = "BellRight"; ball.Parent = model |
| 493 | end |
| 494 | end |
| 495 | model.PrimaryPart = model:FindFirstChild("CasingMain") |
| 496 | print("RetroAlarmClock built: " .. #model:GetChildren() .. " parts") |
Loading comments...