Loading model...
by Jesus Ruiz · 8/7/2026
Lua Script
| 1 | -- Generated with StudForge.org | AI-powered 3D models for Roblox |
| 2 | -- Model: RoyalScepter |
| 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 = "RoyalScepter" |
| 21 | model.Parent = workspace |
| 22 | |
| 23 | local variants = { |
| 24 | ["Bright red"] = "2022 Stud", |
| 25 | ["Bright yellow"] = "2022 Big Stud", |
| 26 | ["Gold"] = "2022 Stud", |
| 27 | ["Really black"] = "2022 Universal", |
| 28 | ["White"] = "2022 Stud", |
| 29 | } |
| 30 | do |
| 31 | local p = Instance.new("Part") |
| 32 | p.Shape = Enum.PartType.Ball |
| 33 | p.Name = "BottomKnob" |
| 34 | p.Size = Vector3.new(1.2, 1.2, 1.2) |
| 35 | p.CFrame = CFrame.new(0, 0, 0) |
| 36 | p.BrickColor = BrickColor.new("Bright yellow") |
| 37 | p.Material = Enum.Material.Glacier |
| 38 | p.MaterialVariant = "2022 Big Stud" |
| 39 | p.Anchored = true |
| 40 | p.Parent = model |
| 41 | end |
| 42 | do |
| 43 | local p = Instance.new("Part") |
| 44 | p.Shape = Enum.PartType.Cylinder |
| 45 | p.Name = "HandleLower" |
| 46 | p.Size = Vector3.new(3.6, 0.8, 0.8) |
| 47 | p.CFrame = CFrame.new(0, 2.16, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 48 | p.BrickColor = BrickColor.new("Bright yellow") |
| 49 | p.Material = Enum.Material.Glacier |
| 50 | p.MaterialVariant = "2022 Big Stud" |
| 51 | p.Anchored = true |
| 52 | p.Parent = model |
| 53 | end |
| 54 | do |
| 55 | local p = Instance.new("Part") |
| 56 | p.Shape = Enum.PartType.Cylinder |
| 57 | p.Name = "HandleTaper" |
| 58 | p.Size = Vector3.new(3, 1.4, 1.4) |
| 59 | p.CFrame = CFrame.new(0, 5.5, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 60 | p.BrickColor = BrickColor.new("Bright yellow") |
| 61 | p.Material = Enum.Material.Glacier |
| 62 | p.MaterialVariant = "2022 Big Stud" |
| 63 | p.Anchored = true |
| 64 | p.Parent = model |
| 65 | end |
| 66 | do |
| 67 | local p = Instance.new("Part") |
| 68 | p.Shape = Enum.PartType.Cylinder |
| 69 | p.Name = "GripRing1" |
| 70 | p.Size = Vector3.new(0.3, 1.6, 1.6) |
| 71 | p.CFrame = CFrame.new(0, 7.2, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 72 | p.BrickColor = BrickColor.new("Gold") |
| 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.Shape = Enum.PartType.Ball |
| 81 | p.Name = "GripBulb" |
| 82 | p.Size = Vector3.new(2, 2, 2) |
| 83 | p.CFrame = CFrame.new(0, 8.2, 0) |
| 84 | p.BrickColor = BrickColor.new("Bright yellow") |
| 85 | p.Material = Enum.Material.Glacier |
| 86 | p.MaterialVariant = "2022 Big Stud" |
| 87 | p.Anchored = true |
| 88 | p.Parent = model |
| 89 | end |
| 90 | do |
| 91 | local p = Instance.new("Part") |
| 92 | p.Shape = Enum.PartType.Cylinder |
| 93 | p.Name = "GripRing2" |
| 94 | p.Size = Vector3.new(0.3, 1.6, 1.6) |
| 95 | p.CFrame = CFrame.new(0, 9.2, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 96 | p.BrickColor = BrickColor.new("Gold") |
| 97 | p.Material = Enum.Material.Glacier |
| 98 | p.MaterialVariant = "2022 Stud" |
| 99 | p.Anchored = true |
| 100 | p.Parent = model |
| 101 | end |
| 102 | do |
| 103 | local p = Instance.new("Part") |
| 104 | p.Shape = Enum.PartType.Cylinder |
| 105 | p.Name = "ShaftUpper" |
| 106 | p.Size = Vector3.new(2.6, 0.9, 0.9) |
| 107 | p.CFrame = CFrame.new(0, 10.7, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 108 | p.BrickColor = BrickColor.new("Bright yellow") |
| 109 | p.Material = Enum.Material.Glacier |
| 110 | p.MaterialVariant = "2022 Big Stud" |
| 111 | p.Anchored = true |
| 112 | p.Parent = model |
| 113 | end |
| 114 | do |
| 115 | local p = Instance.new("Part") |
| 116 | p.Shape = Enum.PartType.Cylinder |
| 117 | p.Name = "CrownBaseDisc" |
| 118 | p.Size = Vector3.new(0.5, 2.2, 2.2) |
| 119 | p.CFrame = CFrame.new(0, 12.2, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 120 | p.BrickColor = BrickColor.new("Gold") |
| 121 | p.Material = Enum.Material.Glacier |
| 122 | p.MaterialVariant = "2022 Stud" |
| 123 | p.Anchored = true |
| 124 | p.Parent = model |
| 125 | end |
| 126 | do |
| 127 | local p = Instance.new("WedgePart") |
| 128 | p.Name = "Petal_0" |
| 129 | p.Size = Vector3.new(1.2, 0.8, 0.6) |
| 130 | p.CFrame = CFrame.new(1.2, 12.8, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(30)) |
| 131 | p.BrickColor = BrickColor.new("Bright yellow") |
| 132 | p.Material = Enum.Material.Glacier |
| 133 | p.MaterialVariant = "2022 Big Stud" |
| 134 | p.Anchored = true |
| 135 | p.Parent = model |
| 136 | end |
| 137 | do |
| 138 | local p = Instance.new("WedgePart") |
| 139 | p.Name = "Petal_1" |
| 140 | p.Size = Vector3.new(1.2, 0.8, 0.6) |
| 141 | p.CFrame = CFrame.new(0.6, 12.8, 1.03923) * CFrame.Angles(math.rad(0), math.rad(-60), math.rad(30)) |
| 142 | p.BrickColor = BrickColor.new("Bright yellow") |
| 143 | p.Material = Enum.Material.Glacier |
| 144 | p.MaterialVariant = "2022 Big Stud" |
| 145 | p.Anchored = true |
| 146 | p.Parent = model |
| 147 | end |
| 148 | do |
| 149 | local p = Instance.new("WedgePart") |
| 150 | p.Name = "Petal_2" |
| 151 | p.Size = Vector3.new(1.2, 0.8, 0.6) |
| 152 | p.CFrame = CFrame.new(-0.6, 12.8, 1.03923) * CFrame.Angles(math.rad(0), math.rad(-120), math.rad(30)) |
| 153 | p.BrickColor = BrickColor.new("Bright yellow") |
| 154 | p.Material = Enum.Material.Glacier |
| 155 | p.MaterialVariant = "2022 Big Stud" |
| 156 | p.Anchored = true |
| 157 | p.Parent = model |
| 158 | end |
| 159 | do |
| 160 | local p = Instance.new("WedgePart") |
| 161 | p.Name = "Petal_3" |
| 162 | p.Size = Vector3.new(1.2, 0.8, 0.6) |
| 163 | p.CFrame = CFrame.new(-1.2, 12.8, 0) * CFrame.Angles(math.rad(0), math.rad(-180), math.rad(30)) |
| 164 | p.BrickColor = BrickColor.new("Bright yellow") |
| 165 | p.Material = Enum.Material.Glacier |
| 166 | p.MaterialVariant = "2022 Big Stud" |
| 167 | p.Anchored = true |
| 168 | p.Parent = model |
| 169 | end |
| 170 | do |
| 171 | local p = Instance.new("WedgePart") |
| 172 | p.Name = "Petal_4" |
| 173 | p.Size = Vector3.new(1.2, 0.8, 0.6) |
| 174 | p.CFrame = CFrame.new(-0.6, 12.8, -1.03923) * CFrame.Angles(math.rad(0), math.rad(-240), math.rad(30)) |
| 175 | p.BrickColor = BrickColor.new("Bright yellow") |
| 176 | p.Material = Enum.Material.Glacier |
| 177 | p.MaterialVariant = "2022 Big Stud" |
| 178 | p.Anchored = true |
| 179 | p.Parent = model |
| 180 | end |
| 181 | do |
| 182 | local p = Instance.new("WedgePart") |
| 183 | p.Name = "Petal_5" |
| 184 | p.Size = Vector3.new(1.2, 0.8, 0.6) |
| 185 | p.CFrame = CFrame.new(0.6, 12.8, -1.03923) * CFrame.Angles(math.rad(0), math.rad(-300), math.rad(30)) |
| 186 | p.BrickColor = BrickColor.new("Bright yellow") |
| 187 | p.Material = Enum.Material.Glacier |
| 188 | p.MaterialVariant = "2022 Big Stud" |
| 189 | p.Anchored = true |
| 190 | p.Parent = model |
| 191 | end |
| 192 | do |
| 193 | local p = Instance.new("Part") |
| 194 | p.Shape = Enum.PartType.Ball |
| 195 | p.Name = "Fur_0" |
| 196 | p.Size = Vector3.new(0.96, 0.96, 0.96) |
| 197 | p.CFrame = CFrame.new(1.8, 13.8, 0) |
| 198 | p.BrickColor = BrickColor.new("White") |
| 199 | p.Material = Enum.Material.Glacier |
| 200 | p.MaterialVariant = "2022 Stud" |
| 201 | p.Anchored = true |
| 202 | p.Parent = model |
| 203 | end |
| 204 | do |
| 205 | local p = Instance.new("Part") |
| 206 | p.Shape = Enum.PartType.Ball |
| 207 | p.Name = "Fur_1" |
| 208 | p.Size = Vector3.new(0.92, 0.92, 0.92) |
| 209 | p.CFrame = CFrame.new(1.55885, 13.8, 0.9) |
| 210 | p.BrickColor = BrickColor.new("White") |
| 211 | p.Material = Enum.Material.Glacier |
| 212 | p.MaterialVariant = "2022 Stud" |
| 213 | p.Anchored = true |
| 214 | p.Parent = model |
| 215 | end |
| 216 | do |
| 217 | local p = Instance.new("Part") |
| 218 | p.Shape = Enum.PartType.Ball |
| 219 | p.Name = "Fur_2" |
| 220 | p.Size = Vector3.new(0.88, 0.88, 0.88) |
| 221 | p.CFrame = CFrame.new(0.9, 13.8, 1.55885) |
| 222 | p.BrickColor = BrickColor.new("White") |
| 223 | p.Material = Enum.Material.Glacier |
| 224 | p.MaterialVariant = "2022 Stud" |
| 225 | p.Anchored = true |
| 226 | p.Parent = model |
| 227 | end |
| 228 | do |
| 229 | local p = Instance.new("Part") |
| 230 | p.Shape = Enum.PartType.Ball |
| 231 | p.Name = "Fur_3" |
| 232 | p.Size = Vector3.new(0.88, 0.88, 0.88) |
| 233 | p.CFrame = CFrame.new(0, 13.8, 1.8) |
| 234 | p.BrickColor = BrickColor.new("White") |
| 235 | p.Material = Enum.Material.Glacier |
| 236 | p.MaterialVariant = "2022 Stud" |
| 237 | p.Anchored = true |
| 238 | p.Parent = model |
| 239 | end |
| 240 | do |
| 241 | local p = Instance.new("Part") |
| 242 | p.Shape = Enum.PartType.Ball |
| 243 | p.Name = "Fur_4" |
| 244 | p.Size = Vector3.new(0.84, 0.84, 0.84) |
| 245 | p.CFrame = CFrame.new(-0.9, 13.8, 1.55885) |
| 246 | p.BrickColor = BrickColor.new("White") |
| 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.Shape = Enum.PartType.Ball |
| 255 | p.Name = "Fur_5" |
| 256 | p.Size = Vector3.new(0.88, 0.88, 0.88) |
| 257 | p.CFrame = CFrame.new(-1.55885, 13.8, 0.9) |
| 258 | p.BrickColor = BrickColor.new("White") |
| 259 | p.Material = Enum.Material.Glacier |
| 260 | p.MaterialVariant = "2022 Stud" |
| 261 | p.Anchored = true |
| 262 | p.Parent = model |
| 263 | end |
| 264 | do |
| 265 | local p = Instance.new("Part") |
| 266 | p.Shape = Enum.PartType.Ball |
| 267 | p.Name = "Fur_6" |
| 268 | p.Size = Vector3.new(0.88, 0.88, 0.88) |
| 269 | p.CFrame = CFrame.new(-1.8, 13.8, 0) |
| 270 | p.BrickColor = BrickColor.new("White") |
| 271 | p.Material = Enum.Material.Glacier |
| 272 | p.MaterialVariant = "2022 Stud" |
| 273 | p.Anchored = true |
| 274 | p.Parent = model |
| 275 | end |
| 276 | do |
| 277 | local p = Instance.new("Part") |
| 278 | p.Shape = Enum.PartType.Ball |
| 279 | p.Name = "Fur_7" |
| 280 | p.Size = Vector3.new(0.84, 0.84, 0.84) |
| 281 | p.CFrame = CFrame.new(-1.55885, 13.8, -0.9) |
| 282 | p.BrickColor = BrickColor.new("White") |
| 283 | p.Material = Enum.Material.Glacier |
| 284 | p.MaterialVariant = "2022 Stud" |
| 285 | p.Anchored = true |
| 286 | p.Parent = model |
| 287 | end |
| 288 | do |
| 289 | local p = Instance.new("Part") |
| 290 | p.Shape = Enum.PartType.Ball |
| 291 | p.Name = "Fur_8" |
| 292 | p.Size = Vector3.new(0.88, 0.88, 0.88) |
| 293 | p.CFrame = CFrame.new(-0.9, 13.8, -1.55885) |
| 294 | p.BrickColor = BrickColor.new("White") |
| 295 | p.Material = Enum.Material.Glacier |
| 296 | p.MaterialVariant = "2022 Stud" |
| 297 | p.Anchored = true |
| 298 | p.Parent = model |
| 299 | end |
| 300 | do |
| 301 | local p = Instance.new("Part") |
| 302 | p.Shape = Enum.PartType.Ball |
| 303 | p.Name = "Fur_9" |
| 304 | p.Size = Vector3.new(0.92, 0.92, 0.92) |
| 305 | p.CFrame = CFrame.new(0, 13.8, -1.8) |
| 306 | p.BrickColor = BrickColor.new("White") |
| 307 | p.Material = Enum.Material.Glacier |
| 308 | p.MaterialVariant = "2022 Stud" |
| 309 | p.Anchored = true |
| 310 | p.Parent = model |
| 311 | end |
| 312 | do |
| 313 | local p = Instance.new("Part") |
| 314 | p.Shape = Enum.PartType.Ball |
| 315 | p.Name = "Fur_10" |
| 316 | p.Size = Vector3.new(0.96, 0.96, 0.96) |
| 317 | p.CFrame = CFrame.new(0.9, 13.8, -1.55885) |
| 318 | p.BrickColor = BrickColor.new("White") |
| 319 | p.Material = Enum.Material.Glacier |
| 320 | p.MaterialVariant = "2022 Stud" |
| 321 | p.Anchored = true |
| 322 | p.Parent = model |
| 323 | end |
| 324 | do |
| 325 | local p = Instance.new("Part") |
| 326 | p.Shape = Enum.PartType.Ball |
| 327 | p.Name = "Fur_11" |
| 328 | p.Size = Vector3.new(1, 1, 1) |
| 329 | p.CFrame = CFrame.new(1.55885, 13.8, -0.9) |
| 330 | p.BrickColor = BrickColor.new("White") |
| 331 | p.Material = Enum.Material.Glacier |
| 332 | p.MaterialVariant = "2022 Stud" |
| 333 | p.Anchored = true |
| 334 | p.Parent = model |
| 335 | end |
| 336 | do |
| 337 | local p = Instance.new("Part") |
| 338 | p.Shape = Enum.PartType.Cylinder |
| 339 | p.Name = "FurCore" |
| 340 | p.Size = Vector3.new(0.8, 3.2, 3.2) |
| 341 | p.CFrame = CFrame.new(0, 13.8, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 342 | p.BrickColor = BrickColor.new("White") |
| 343 | p.Material = Enum.Material.Glacier |
| 344 | p.MaterialVariant = "2022 Stud" |
| 345 | p.Anchored = true |
| 346 | p.Parent = model |
| 347 | end |
| 348 | do |
| 349 | local p = Instance.new("Part") |
| 350 | p.Shape = Enum.PartType.Cylinder |
| 351 | p.Name = "FinialStem" |
| 352 | p.Size = Vector3.new(0.8, 0.6, 0.6) |
| 353 | p.CFrame = CFrame.new(0, 16.2, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 354 | p.BrickColor = BrickColor.new("Bright yellow") |
| 355 | p.Material = Enum.Material.Glacier |
| 356 | p.MaterialVariant = "2022 Big Stud" |
| 357 | p.Anchored = true |
| 358 | p.Parent = model |
| 359 | end |
| 360 | do |
| 361 | local p = Instance.new("Part") |
| 362 | p.Shape = Enum.PartType.Ball |
| 363 | p.Name = "FinialHead" |
| 364 | p.Size = Vector3.new(1.2, 1.2, 1.2) |
| 365 | p.CFrame = CFrame.new(0, 17, 0) |
| 366 | p.BrickColor = BrickColor.new("Bright yellow") |
| 367 | p.Material = Enum.Material.Glacier |
| 368 | p.MaterialVariant = "2022 Big Stud" |
| 369 | p.Anchored = true |
| 370 | p.Parent = model |
| 371 | end |
| 372 | do |
| 373 | local p = Instance.new("Part") |
| 374 | p.Shape = Enum.PartType.Cylinder |
| 375 | p.Name = "EyeL" |
| 376 | p.Size = Vector3.new(0.2, 0.3, 0.3) |
| 377 | p.CFrame = CFrame.new(0.25, 17.2, -0.5) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)) |
| 378 | p.BrickColor = BrickColor.new("Really black") |
| 379 | p.Material = Enum.Material.Glacier |
| 380 | p.MaterialVariant = "2022 Universal" |
| 381 | p.Anchored = true |
| 382 | p.Parent = model |
| 383 | end |
| 384 | do |
| 385 | local p = Instance.new("Part") |
| 386 | p.Shape = Enum.PartType.Cylinder |
| 387 | p.Name = "EyeR" |
| 388 | p.Size = Vector3.new(0.2, 0.3, 0.3) |
| 389 | p.CFrame = CFrame.new(-0.25, 17.2, -0.5) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)) |
| 390 | p.BrickColor = BrickColor.new("Really black") |
| 391 | p.Material = Enum.Material.Glacier |
| 392 | p.MaterialVariant = "2022 Universal" |
| 393 | p.Anchored = true |
| 394 | p.Parent = model |
| 395 | end |
| 396 | do |
| 397 | local p = Instance.new("Part") |
| 398 | p.Name = "Smile" |
| 399 | p.Size = Vector3.new(0.1, 0.4, 0.1) |
| 400 | p.CFrame = CFrame.new(0, 16.8, -0.5) |
| 401 | p.BrickColor = BrickColor.new("Really black") |
| 402 | p.Material = Enum.Material.Glacier |
| 403 | p.MaterialVariant = "2022 Universal" |
| 404 | p.Anchored = true |
| 405 | p.Parent = model |
| 406 | end |
| 407 | do |
| 408 | local rightV = Vector3.new(1,0,0).Unit |
| 409 | local upV = (Vector3.new(0,1,0) - Vector3.new(0,1,0):Dot(rightV)*rightV).Unit |
| 410 | local normalV = upV:Cross(rightV) |
| 411 | local pos = Vector3.new(0, 14.04, 0) |
| 412 | local cyl = Instance.new("Part") |
| 413 | cyl.Shape = Enum.PartType.Cylinder |
| 414 | cyl.Size = Vector3.new(0.4, 4.6, 4.6) |
| 415 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 416 | cyl.BrickColor = BrickColor.new("Bright yellow") |
| 417 | cyl.Material = Enum.Material.Glacier |
| 418 | cyl.MaterialVariant = "2022 Big Stud" |
| 419 | cyl.Anchored = true; cyl.Parent = workspace |
| 420 | local cuts = {} |
| 421 | local hole = Instance.new("Part") |
| 422 | hole.Shape = Enum.PartType.Cylinder |
| 423 | hole.Size = Vector3.new(0.6, 4.2, 4.2) |
| 424 | hole.CFrame = cyl.CFrame |
| 425 | hole.BrickColor = BrickColor.new("Bright yellow") |
| 426 | hole.Material = Enum.Material.Glacier |
| 427 | hole.MaterialVariant = "2022 Big Stud" |
| 428 | hole.Anchored = true; hole.Parent = workspace |
| 429 | table.insert(cuts, hole) |
| 430 | local angBoxes = {} |
| 431 | do |
| 432 | local edgeDir = 1*rightV + 0*upV |
| 433 | local edgePerp = 0*rightV + 1*upV |
| 434 | local cut = Instance.new("Part") |
| 435 | cut.Size = Vector3.new(9.2, 0.6, 9.2) |
| 436 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 4.6 * edgePerp, edgeDir, normalV) |
| 437 | cut.BrickColor = BrickColor.new("Bright yellow") |
| 438 | cut.Material = Enum.Material.Glacier |
| 439 | cut.MaterialVariant = "2022 Big Stud" |
| 440 | cut.Anchored = true; cut.Parent = workspace |
| 441 | table.insert(angBoxes, cut) |
| 442 | end |
| 443 | do |
| 444 | local edgeDir = 0*rightV + 1*upV |
| 445 | local edgePerp = -1*rightV + 0*upV |
| 446 | local cut = Instance.new("Part") |
| 447 | cut.Size = Vector3.new(9.2, 0.6, 9.2) |
| 448 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 4.6 * edgePerp, edgeDir, normalV) |
| 449 | cut.BrickColor = BrickColor.new("Bright yellow") |
| 450 | cut.Material = Enum.Material.Glacier |
| 451 | cut.MaterialVariant = "2022 Big Stud" |
| 452 | cut.Anchored = true; cut.Parent = workspace |
| 453 | table.insert(angBoxes, cut) |
| 454 | end |
| 455 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 456 | if #cuts > 0 then |
| 457 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 458 | for _, c in ipairs(cuts) do c:Destroy() end |
| 459 | if ok and result then |
| 460 | cyl:Destroy() |
| 461 | result.Name = "Rib_0"; result.Anchored = true; result.Parent = model |
| 462 | else |
| 463 | cyl.Name = "Rib_0"; cyl.Parent = model |
| 464 | end |
| 465 | else |
| 466 | cyl.Name = "Rib_0"; cyl.Parent = model |
| 467 | end |
| 468 | end |
| 469 | do |
| 470 | local rightV = Vector3.new(0,0,1).Unit |
| 471 | local upV = (Vector3.new(0,1,0) - Vector3.new(0,1,0):Dot(rightV)*rightV).Unit |
| 472 | local normalV = upV:Cross(rightV) |
| 473 | local pos = Vector3.new(0, 14.04, 0) |
| 474 | local cyl = Instance.new("Part") |
| 475 | cyl.Shape = Enum.PartType.Cylinder |
| 476 | cyl.Size = Vector3.new(0.4, 4.6, 4.6) |
| 477 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 478 | cyl.BrickColor = BrickColor.new("Bright yellow") |
| 479 | cyl.Material = Enum.Material.Glacier |
| 480 | cyl.MaterialVariant = "2022 Big Stud" |
| 481 | cyl.Anchored = true; cyl.Parent = workspace |
| 482 | local cuts = {} |
| 483 | local hole = Instance.new("Part") |
| 484 | hole.Shape = Enum.PartType.Cylinder |
| 485 | hole.Size = Vector3.new(0.6, 4.2, 4.2) |
| 486 | hole.CFrame = cyl.CFrame |
| 487 | hole.BrickColor = BrickColor.new("Bright yellow") |
| 488 | hole.Material = Enum.Material.Glacier |
| 489 | hole.MaterialVariant = "2022 Big Stud" |
| 490 | hole.Anchored = true; hole.Parent = workspace |
| 491 | table.insert(cuts, hole) |
| 492 | local angBoxes = {} |
| 493 | do |
| 494 | local edgeDir = 1*rightV + 0*upV |
| 495 | local edgePerp = 0*rightV + 1*upV |
| 496 | local cut = Instance.new("Part") |
| 497 | cut.Size = Vector3.new(9.2, 0.6, 9.2) |
| 498 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 4.6 * edgePerp, edgeDir, normalV) |
| 499 | cut.BrickColor = BrickColor.new("Bright yellow") |
| 500 | cut.Material = Enum.Material.Glacier |
| 501 | cut.MaterialVariant = "2022 Big Stud" |
| 502 | cut.Anchored = true; cut.Parent = workspace |
| 503 | table.insert(angBoxes, cut) |
| 504 | end |
| 505 | do |
| 506 | local edgeDir = 0*rightV + 1*upV |
| 507 | local edgePerp = -1*rightV + 0*upV |
| 508 | local cut = Instance.new("Part") |
| 509 | cut.Size = Vector3.new(9.2, 0.6, 9.2) |
| 510 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 4.6 * edgePerp, edgeDir, normalV) |
| 511 | cut.BrickColor = BrickColor.new("Bright yellow") |
| 512 | cut.Material = Enum.Material.Glacier |
| 513 | cut.MaterialVariant = "2022 Big Stud" |
| 514 | cut.Anchored = true; cut.Parent = workspace |
| 515 | table.insert(angBoxes, cut) |
| 516 | end |
| 517 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 518 | if #cuts > 0 then |
| 519 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 520 | for _, c in ipairs(cuts) do c:Destroy() end |
| 521 | if ok and result then |
| 522 | cyl:Destroy() |
| 523 | result.Name = "Rib_1"; result.Anchored = true; result.Parent = model |
| 524 | else |
| 525 | cyl.Name = "Rib_1"; cyl.Parent = model |
| 526 | end |
| 527 | else |
| 528 | cyl.Name = "Rib_1"; cyl.Parent = model |
| 529 | end |
| 530 | end |
| 531 | do |
| 532 | local rightV = Vector3.new(-1,0,0).Unit |
| 533 | local upV = (Vector3.new(0,1,0) - Vector3.new(0,1,0):Dot(rightV)*rightV).Unit |
| 534 | local normalV = upV:Cross(rightV) |
| 535 | local pos = Vector3.new(0, 14.04, 0) |
| 536 | local cyl = Instance.new("Part") |
| 537 | cyl.Shape = Enum.PartType.Cylinder |
| 538 | cyl.Size = Vector3.new(0.4, 4.6, 4.6) |
| 539 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 540 | cyl.BrickColor = BrickColor.new("Bright yellow") |
| 541 | cyl.Material = Enum.Material.Glacier |
| 542 | cyl.MaterialVariant = "2022 Big Stud" |
| 543 | cyl.Anchored = true; cyl.Parent = workspace |
| 544 | local cuts = {} |
| 545 | local hole = Instance.new("Part") |
| 546 | hole.Shape = Enum.PartType.Cylinder |
| 547 | hole.Size = Vector3.new(0.6, 4.2, 4.2) |
| 548 | hole.CFrame = cyl.CFrame |
| 549 | hole.BrickColor = BrickColor.new("Bright yellow") |
| 550 | hole.Material = Enum.Material.Glacier |
| 551 | hole.MaterialVariant = "2022 Big Stud" |
| 552 | hole.Anchored = true; hole.Parent = workspace |
| 553 | table.insert(cuts, hole) |
| 554 | local angBoxes = {} |
| 555 | do |
| 556 | local edgeDir = 1*rightV + 0*upV |
| 557 | local edgePerp = 0*rightV + 1*upV |
| 558 | local cut = Instance.new("Part") |
| 559 | cut.Size = Vector3.new(9.2, 0.6, 9.2) |
| 560 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 4.6 * edgePerp, edgeDir, normalV) |
| 561 | cut.BrickColor = BrickColor.new("Bright yellow") |
| 562 | cut.Material = Enum.Material.Glacier |
| 563 | cut.MaterialVariant = "2022 Big Stud" |
| 564 | cut.Anchored = true; cut.Parent = workspace |
| 565 | table.insert(angBoxes, cut) |
| 566 | end |
| 567 | do |
| 568 | local edgeDir = 0*rightV + 1*upV |
| 569 | local edgePerp = -1*rightV + 0*upV |
| 570 | local cut = Instance.new("Part") |
| 571 | cut.Size = Vector3.new(9.2, 0.6, 9.2) |
| 572 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 4.6 * edgePerp, edgeDir, normalV) |
| 573 | cut.BrickColor = BrickColor.new("Bright yellow") |
| 574 | cut.Material = Enum.Material.Glacier |
| 575 | cut.MaterialVariant = "2022 Big Stud" |
| 576 | cut.Anchored = true; cut.Parent = workspace |
| 577 | table.insert(angBoxes, cut) |
| 578 | end |
| 579 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 580 | if #cuts > 0 then |
| 581 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 582 | for _, c in ipairs(cuts) do c:Destroy() end |
| 583 | if ok and result then |
| 584 | cyl:Destroy() |
| 585 | result.Name = "Rib_2"; result.Anchored = true; result.Parent = model |
| 586 | else |
| 587 | cyl.Name = "Rib_2"; cyl.Parent = model |
| 588 | end |
| 589 | else |
| 590 | cyl.Name = "Rib_2"; cyl.Parent = model |
| 591 | end |
| 592 | end |
| 593 | do |
| 594 | local rightV = Vector3.new(0,0,-1).Unit |
| 595 | local upV = (Vector3.new(0,1,0) - Vector3.new(0,1,0):Dot(rightV)*rightV).Unit |
| 596 | local normalV = upV:Cross(rightV) |
| 597 | local pos = Vector3.new(0, 14.04, 0) |
| 598 | local cyl = Instance.new("Part") |
| 599 | cyl.Shape = Enum.PartType.Cylinder |
| 600 | cyl.Size = Vector3.new(0.4, 4.6, 4.6) |
| 601 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 602 | cyl.BrickColor = BrickColor.new("Bright yellow") |
| 603 | cyl.Material = Enum.Material.Glacier |
| 604 | cyl.MaterialVariant = "2022 Big Stud" |
| 605 | cyl.Anchored = true; cyl.Parent = workspace |
| 606 | local cuts = {} |
| 607 | local hole = Instance.new("Part") |
| 608 | hole.Shape = Enum.PartType.Cylinder |
| 609 | hole.Size = Vector3.new(0.6, 4.2, 4.2) |
| 610 | hole.CFrame = cyl.CFrame |
| 611 | hole.BrickColor = BrickColor.new("Bright yellow") |
| 612 | hole.Material = Enum.Material.Glacier |
| 613 | hole.MaterialVariant = "2022 Big Stud" |
| 614 | hole.Anchored = true; hole.Parent = workspace |
| 615 | table.insert(cuts, hole) |
| 616 | local angBoxes = {} |
| 617 | do |
| 618 | local edgeDir = 1*rightV + 0*upV |
| 619 | local edgePerp = 0*rightV + 1*upV |
| 620 | local cut = Instance.new("Part") |
| 621 | cut.Size = Vector3.new(9.2, 0.6, 9.2) |
| 622 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 4.6 * edgePerp, edgeDir, normalV) |
| 623 | cut.BrickColor = BrickColor.new("Bright yellow") |
| 624 | cut.Material = Enum.Material.Glacier |
| 625 | cut.MaterialVariant = "2022 Big Stud" |
| 626 | cut.Anchored = true; cut.Parent = workspace |
| 627 | table.insert(angBoxes, cut) |
| 628 | end |
| 629 | do |
| 630 | local edgeDir = 0*rightV + 1*upV |
| 631 | local edgePerp = -1*rightV + 0*upV |
| 632 | local cut = Instance.new("Part") |
| 633 | cut.Size = Vector3.new(9.2, 0.6, 9.2) |
| 634 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 4.6 * edgePerp, edgeDir, normalV) |
| 635 | cut.BrickColor = BrickColor.new("Bright yellow") |
| 636 | cut.Material = Enum.Material.Glacier |
| 637 | cut.MaterialVariant = "2022 Big Stud" |
| 638 | cut.Anchored = true; cut.Parent = workspace |
| 639 | table.insert(angBoxes, cut) |
| 640 | end |
| 641 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 642 | if #cuts > 0 then |
| 643 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 644 | for _, c in ipairs(cuts) do c:Destroy() end |
| 645 | if ok and result then |
| 646 | cyl:Destroy() |
| 647 | result.Name = "Rib_3"; result.Anchored = true; result.Parent = model |
| 648 | else |
| 649 | cyl.Name = "Rib_3"; cyl.Parent = model |
| 650 | end |
| 651 | else |
| 652 | cyl.Name = "Rib_3"; cyl.Parent = model |
| 653 | end |
| 654 | end |
| 655 | do |
| 656 | local upV = Vector3.new(0,1,0).Unit |
| 657 | local rightV = (Vector3.new(1,0,0) - Vector3.new(1,0,0):Dot(upV)*upV).Unit |
| 658 | local forwardV = rightV:Cross(upV) |
| 659 | local pos = Vector3.new(0, 14, 0) |
| 660 | local ball = Instance.new("Part") |
| 661 | ball.Shape = Enum.PartType.Ball |
| 662 | ball.Size = Vector3.new(4.4, 4.4, 4.4) |
| 663 | ball.CFrame = CFrame.new(pos) |
| 664 | ball.BrickColor = BrickColor.new("Bright red") |
| 665 | ball.Material = Enum.Material.Glacier |
| 666 | ball.MaterialVariant = "2022 Stud" |
| 667 | ball.Anchored = true; ball.Parent = workspace |
| 668 | local cuts = {} |
| 669 | do |
| 670 | local h = 0 |
| 671 | local cut = Instance.new("Part") |
| 672 | cut.Size = Vector3.new(8.8, 8.8, 8.8) |
| 673 | cut.CFrame = CFrame.fromMatrix(pos + upV*(-4.4), rightV, upV) |
| 674 | cut.BrickColor = BrickColor.new("Bright red") |
| 675 | cut.Material = Enum.Material.Glacier |
| 676 | cut.MaterialVariant = "2022 Stud" |
| 677 | cut.Anchored = true; cut.Parent = workspace |
| 678 | table.insert(cuts, cut) |
| 679 | end |
| 680 | if #cuts > 0 then |
| 681 | local ok, result = pcall(function() return ball:SubtractAsync(cuts) end) |
| 682 | for _, c in ipairs(cuts) do c:Destroy() end |
| 683 | if ok and result then |
| 684 | ball:Destroy() |
| 685 | result.Name = "CrownDome"; result.Anchored = true; result.Parent = model |
| 686 | else |
| 687 | ball.Name = "CrownDome"; ball.Parent = model |
| 688 | end |
| 689 | else |
| 690 | ball.Name = "CrownDome"; ball.Parent = model |
| 691 | end |
| 692 | end |
| 693 | model.PrimaryPart = model:FindFirstChild("HandleLower") |
| 694 | print("RoyalScepter built: " .. #model:GetChildren() .. " parts") |
Loading comments...