Loading model...
by asdsd sadsadasd · 5/16/2026
Lua Script
| 1 | -- Generated with StudForge.org | AI-powered 3D models for Roblox |
| 2 | -- Model: PurpleRocket |
| 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 = "PurpleRocket" |
| 21 | model.Parent = workspace |
| 22 | |
| 23 | local variants = { |
| 24 | ["Dark indigo"] = "2022 Stud", |
| 25 | ["Institutional white"] = "2022 Stud", |
| 26 | ["Medium lilac"] = "2022 Stud", |
| 27 | ["Really black"] = "2022 Universal", |
| 28 | ["Royal purple"] = "2022 Stud", |
| 29 | } |
| 30 | do |
| 31 | local p = Instance.new("Part") |
| 32 | p.Shape = Enum.PartType.Cylinder |
| 33 | p.Name = "Thruster" |
| 34 | p.Size = Vector3.new(2, 2.5, 2.5) |
| 35 | p.CFrame = CFrame.new(0, 0.88, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 36 | p.BrickColor = BrickColor.new("Really black") |
| 37 | p.Material = Enum.Material.Glacier |
| 38 | p.MaterialVariant = "2022 Universal" |
| 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 = "Body1" |
| 46 | p.Size = Vector3.new(2, 4, 4) |
| 47 | p.CFrame = CFrame.new(0, 2.92, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 48 | p.BrickColor = BrickColor.new("Dark indigo") |
| 49 | p.Material = Enum.Material.Glacier |
| 50 | p.MaterialVariant = "2022 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 = "Body2" |
| 58 | p.Size = Vector3.new(2, 4.5, 4.5) |
| 59 | p.CFrame = CFrame.new(0, 4.96, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 60 | p.BrickColor = BrickColor.new("Royal purple") |
| 61 | p.Material = Enum.Material.Glacier |
| 62 | p.MaterialVariant = "2022 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 = "Body3" |
| 70 | p.Size = Vector3.new(2, 4.5, 4.5) |
| 71 | p.CFrame = CFrame.new(0, 7, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 72 | p.BrickColor = BrickColor.new("Dark indigo") |
| 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.Cylinder |
| 81 | p.Name = "Body4" |
| 82 | p.Size = Vector3.new(2, 4.2, 4.2) |
| 83 | p.CFrame = CFrame.new(0, 9.04, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 84 | p.BrickColor = BrickColor.new("Royal purple") |
| 85 | p.Material = Enum.Material.Glacier |
| 86 | p.MaterialVariant = "2022 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 = "Body5" |
| 94 | p.Size = Vector3.new(2, 3.5, 3.5) |
| 95 | p.CFrame = CFrame.new(0, 11.08, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 96 | p.BrickColor = BrickColor.new("Dark indigo") |
| 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 = "Nose1" |
| 106 | p.Size = Vector3.new(1, 2.5, 2.5) |
| 107 | p.CFrame = CFrame.new(0, 12.62, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 108 | p.BrickColor = BrickColor.new("Royal purple") |
| 109 | p.Material = Enum.Material.Glacier |
| 110 | p.MaterialVariant = "2022 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 = "Nose2" |
| 118 | p.Size = Vector3.new(1, 1.5, 1.5) |
| 119 | p.CFrame = CFrame.new(0, 13.66, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 120 | p.BrickColor = BrickColor.new("Dark indigo") |
| 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("Part") |
| 128 | p.Shape = Enum.PartType.Cylinder |
| 129 | p.Name = "NoseTip" |
| 130 | p.Size = Vector3.new(0.5, 0.5, 0.5) |
| 131 | p.CFrame = CFrame.new(0, 14.45, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 132 | p.BrickColor = BrickColor.new("Royal purple") |
| 133 | p.Material = Enum.Material.Glacier |
| 134 | p.MaterialVariant = "2022 Stud" |
| 135 | p.Anchored = true |
| 136 | p.Parent = model |
| 137 | end |
| 138 | do |
| 139 | local p = Instance.new("Part") |
| 140 | p.Shape = Enum.PartType.Cylinder |
| 141 | p.Name = "WinFrame" |
| 142 | p.Size = Vector3.new(0.5, 2.5, 2.5) |
| 143 | p.CFrame = CFrame.new(0, 8, -2.1) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)) |
| 144 | p.BrickColor = BrickColor.new("Medium lilac") |
| 145 | p.Material = Enum.Material.Glacier |
| 146 | p.MaterialVariant = "2022 Stud" |
| 147 | p.Anchored = true |
| 148 | p.Parent = model |
| 149 | end |
| 150 | do |
| 151 | local p = Instance.new("Part") |
| 152 | p.Shape = Enum.PartType.Cylinder |
| 153 | p.Name = "WinGlass" |
| 154 | p.Size = Vector3.new(0.6, 1.8, 1.8) |
| 155 | p.CFrame = CFrame.new(0, 8, -2.2) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)) |
| 156 | p.BrickColor = BrickColor.new("Really black") |
| 157 | p.Material = Enum.Material.Glacier |
| 158 | p.MaterialVariant = "2022 Universal" |
| 159 | p.Anchored = true |
| 160 | p.Parent = model |
| 161 | end |
| 162 | do |
| 163 | local p = Instance.new("Part") |
| 164 | p.Shape = Enum.PartType.Cylinder |
| 165 | p.Name = "WinHigh" |
| 166 | p.Size = Vector3.new(0.2, 0.6, 0.6) |
| 167 | p.CFrame = CFrame.new(0.4, 8.4, -2.48) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)) |
| 168 | p.BrickColor = BrickColor.new("Institutional white") |
| 169 | p.Material = Enum.Material.Glacier |
| 170 | p.MaterialVariant = "2022 Stud" |
| 171 | p.Anchored = true |
| 172 | p.Parent = model |
| 173 | end |
| 174 | do |
| 175 | local p = Instance.new("Part") |
| 176 | p.Name = "FinRight" |
| 177 | p.Size = Vector3.new(1.5, 5, 0.5) |
| 178 | p.CFrame = CFrame.new(2.8, 2.5, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-15)) |
| 179 | p.BrickColor = BrickColor.new("Royal purple") |
| 180 | p.Material = Enum.Material.Glacier |
| 181 | p.MaterialVariant = "2022 Stud" |
| 182 | p.Anchored = true |
| 183 | p.Parent = model |
| 184 | end |
| 185 | do |
| 186 | local p = Instance.new("Part") |
| 187 | p.Name = "FinLeft" |
| 188 | p.Size = Vector3.new(1.5, 5, 0.5) |
| 189 | p.CFrame = CFrame.new(-2.8, 2.5, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(15)) |
| 190 | p.BrickColor = BrickColor.new("Royal purple") |
| 191 | p.Material = Enum.Material.Glacier |
| 192 | p.MaterialVariant = "2022 Stud" |
| 193 | p.Anchored = true |
| 194 | p.Parent = model |
| 195 | end |
| 196 | do |
| 197 | local p = Instance.new("Part") |
| 198 | p.Name = "FinBack" |
| 199 | p.Size = Vector3.new(0.5, 5, 1.5) |
| 200 | p.CFrame = CFrame.new(0, 2.5, 2.8) * CFrame.Angles(math.rad(-15), math.rad(0), math.rad(0)) |
| 201 | p.BrickColor = BrickColor.new("Royal purple") |
| 202 | p.Material = Enum.Material.Glacier |
| 203 | p.MaterialVariant = "2022 Stud" |
| 204 | p.Anchored = true |
| 205 | p.Parent = model |
| 206 | end |
| 207 | do |
| 208 | local p = Instance.new("Part") |
| 209 | p.Name = "FinFront" |
| 210 | p.Size = Vector3.new(0.5, 5, 1.5) |
| 211 | p.CFrame = CFrame.new(0, 2.5, -2.8) * CFrame.Angles(math.rad(15), math.rad(0), math.rad(0)) |
| 212 | p.BrickColor = BrickColor.new("Royal purple") |
| 213 | p.Material = Enum.Material.Glacier |
| 214 | p.MaterialVariant = "2022 Stud" |
| 215 | p.Anchored = true |
| 216 | p.Parent = model |
| 217 | end |
| 218 | do |
| 219 | local rightV = Vector3.new(1,0,0).Unit |
| 220 | local upV = (Vector3.new(0,0,-1) - Vector3.new(0,0,-1):Dot(rightV)*rightV).Unit |
| 221 | local normalV = upV:Cross(rightV) |
| 222 | local pos = Vector3.new(0, 6.54, 0.04) |
| 223 | local cyl = Instance.new("Part") |
| 224 | cyl.Shape = Enum.PartType.Cylinder |
| 225 | cyl.Size = Vector3.new(0.4, 9, 9) |
| 226 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 227 | cyl.BrickColor = BrickColor.new("Magenta") |
| 228 | cyl.Material = Enum.Material.Glacier |
| 229 | cyl.Anchored = true; cyl.Parent = workspace |
| 230 | local cuts = {} |
| 231 | local hole = Instance.new("Part") |
| 232 | hole.Shape = Enum.PartType.Cylinder |
| 233 | hole.Size = Vector3.new(0.6, 5, 5) |
| 234 | hole.CFrame = cyl.CFrame |
| 235 | hole.BrickColor = BrickColor.new("Magenta") |
| 236 | hole.Material = Enum.Material.Glacier |
| 237 | hole.Anchored = true; hole.Parent = workspace |
| 238 | table.insert(cuts, hole) |
| 239 | local angBoxes = {} |
| 240 | do |
| 241 | local edgeDir = 1*rightV + 0*upV |
| 242 | local edgePerp = 0*rightV + 1*upV |
| 243 | local cut = Instance.new("Part") |
| 244 | cut.Size = Vector3.new(18, 0.6, 18) |
| 245 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 9 * edgePerp, edgeDir, normalV) |
| 246 | cut.BrickColor = BrickColor.new("Magenta") |
| 247 | cut.Material = Enum.Material.Glacier |
| 248 | cut.Anchored = true; cut.Parent = workspace |
| 249 | table.insert(angBoxes, cut) |
| 250 | end |
| 251 | do |
| 252 | local edgeDir = -1*rightV + 0*upV |
| 253 | local edgePerp = 0*rightV + -1*upV |
| 254 | local cut = Instance.new("Part") |
| 255 | cut.Size = Vector3.new(18, 0.6, 18) |
| 256 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 9 * edgePerp, edgeDir, normalV) |
| 257 | cut.BrickColor = BrickColor.new("Magenta") |
| 258 | cut.Material = Enum.Material.Glacier |
| 259 | cut.Anchored = true; cut.Parent = workspace |
| 260 | table.insert(angBoxes, cut) |
| 261 | end |
| 262 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 263 | if #cuts > 0 then |
| 264 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 265 | for _, c in ipairs(cuts) do c:Destroy() end |
| 266 | if ok and result then |
| 267 | cyl:Destroy() |
| 268 | result.Name = "RingFront"; result.Anchored = true; result.Parent = model |
| 269 | else |
| 270 | cyl.Name = "RingFront"; cyl.Parent = model |
| 271 | end |
| 272 | else |
| 273 | cyl.Name = "RingFront"; cyl.Parent = model |
| 274 | end |
| 275 | end |
| 276 | do |
| 277 | local rightV = Vector3.new(1,0,0).Unit |
| 278 | local upV = (Vector3.new(0,0,-1) - Vector3.new(0,0,-1):Dot(rightV)*rightV).Unit |
| 279 | local normalV = upV:Cross(rightV) |
| 280 | local pos = Vector3.new(0, 6.5, 0) |
| 281 | local cyl = Instance.new("Part") |
| 282 | cyl.Shape = Enum.PartType.Cylinder |
| 283 | cyl.Size = Vector3.new(0.4, 9, 9) |
| 284 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 285 | cyl.BrickColor = BrickColor.new("Magenta") |
| 286 | cyl.Material = Enum.Material.Glacier |
| 287 | cyl.Anchored = true; cyl.Parent = workspace |
| 288 | local cuts = {} |
| 289 | local hole = Instance.new("Part") |
| 290 | hole.Shape = Enum.PartType.Cylinder |
| 291 | hole.Size = Vector3.new(0.6, 5, 5) |
| 292 | hole.CFrame = cyl.CFrame |
| 293 | hole.BrickColor = BrickColor.new("Magenta") |
| 294 | hole.Material = Enum.Material.Glacier |
| 295 | hole.Anchored = true; hole.Parent = workspace |
| 296 | table.insert(cuts, hole) |
| 297 | local angBoxes = {} |
| 298 | do |
| 299 | local edgeDir = -1*rightV + 0*upV |
| 300 | local edgePerp = 0*rightV + -1*upV |
| 301 | local cut = Instance.new("Part") |
| 302 | cut.Size = Vector3.new(18, 0.6, 18) |
| 303 | cut.CFrame = CFrame.fromMatrix(pos + -1 * 9 * edgePerp, edgeDir, normalV) |
| 304 | cut.BrickColor = BrickColor.new("Magenta") |
| 305 | cut.Material = Enum.Material.Glacier |
| 306 | cut.Anchored = true; cut.Parent = workspace |
| 307 | table.insert(angBoxes, cut) |
| 308 | end |
| 309 | do |
| 310 | local edgeDir = 1*rightV + 0*upV |
| 311 | local edgePerp = 0*rightV + 1*upV |
| 312 | local cut = Instance.new("Part") |
| 313 | cut.Size = Vector3.new(18, 0.6, 18) |
| 314 | cut.CFrame = CFrame.fromMatrix(pos + 1 * 9 * edgePerp, edgeDir, normalV) |
| 315 | cut.BrickColor = BrickColor.new("Magenta") |
| 316 | cut.Material = Enum.Material.Glacier |
| 317 | cut.Anchored = true; cut.Parent = workspace |
| 318 | table.insert(angBoxes, cut) |
| 319 | end |
| 320 | for _, b in ipairs(angBoxes) do table.insert(cuts, b) end |
| 321 | if #cuts > 0 then |
| 322 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 323 | for _, c in ipairs(cuts) do c:Destroy() end |
| 324 | if ok and result then |
| 325 | cyl:Destroy() |
| 326 | result.Name = "RingBack"; result.Anchored = true; result.Parent = model |
| 327 | else |
| 328 | cyl.Name = "RingBack"; cyl.Parent = model |
| 329 | end |
| 330 | else |
| 331 | cyl.Name = "RingBack"; cyl.Parent = model |
| 332 | end |
| 333 | end |
| 334 | model.PrimaryPart = model:FindFirstChild("Body3") |
| 335 | print("PurpleRocket built: " .. #model:GetChildren() .. " parts") |
Loading comments...