Loading model...
by tooth · 3/25/2026
Lua Script
| 1 | -- Generated with StudForge.org | AI-powered 3D models for Roblox |
| 2 | -- Model: SuperWaterGun |
| 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 = "SuperWaterGun" |
| 21 | model.Parent = workspace |
| 22 | |
| 23 | local variants = { |
| 24 | ["Bright orange"] = "2022 Stud", |
| 25 | ["Institutional white"] = "2022 Stud", |
| 26 | ["Really black"] = "2022 Universal", |
| 27 | ["Teal"] = "2022 Stud", |
| 28 | } |
| 29 | do |
| 30 | local p = Instance.new("Part") |
| 31 | p.Shape = Enum.PartType.Cylinder |
| 32 | p.Name = "TankBody" |
| 33 | p.Size = Vector3.new(8, 4.2, 4.2) |
| 34 | p.CFrame = CFrame.new(0, 0, -8) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)) |
| 35 | p.BrickColor = BrickColor.new("Institutional white") |
| 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("Part") |
| 43 | p.Name = "BodyCore" |
| 44 | p.Size = Vector3.new(3, 4, 6) |
| 45 | p.CFrame = CFrame.new(0, 0, -2) |
| 46 | p.BrickColor = BrickColor.new("Teal") |
| 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 = "BodyWrapBack" |
| 56 | p.Size = Vector3.new(2, 4.4, 4.4) |
| 57 | p.CFrame = CFrame.new(0, 0, -4.04) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)) |
| 58 | p.BrickColor = BrickColor.new("Teal") |
| 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 = "BodyWrapMid" |
| 68 | p.Size = Vector3.new(2, 4.4, 4.4) |
| 69 | p.CFrame = CFrame.new(0, 0, -1.5) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)) |
| 70 | p.BrickColor = BrickColor.new("Teal") |
| 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 p = Instance.new("Part") |
| 78 | p.Shape = Enum.PartType.Cylinder |
| 79 | p.Name = "BodyWhiteRing" |
| 80 | p.Size = Vector3.new(0.8, 4.3, 4.3) |
| 81 | p.CFrame = CFrame.new(0, 0, -2.8) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)) |
| 82 | p.BrickColor = BrickColor.new("Institutional white") |
| 83 | p.Material = Enum.Material.Glacier |
| 84 | p.MaterialVariant = "2022 Stud" |
| 85 | p.Anchored = true |
| 86 | p.Parent = model |
| 87 | end |
| 88 | do |
| 89 | local p = Instance.new("Part") |
| 90 | p.Shape = Enum.PartType.Cylinder |
| 91 | p.Name = "SideDialL" |
| 92 | p.Size = Vector3.new(0.6, 2.2, 2.2) |
| 93 | p.CFrame = CFrame.new(-2, 0.2, -1.5) |
| 94 | p.BrickColor = BrickColor.new("Bright orange") |
| 95 | p.Material = Enum.Material.Glacier |
| 96 | p.MaterialVariant = "2022 Stud" |
| 97 | p.Anchored = true |
| 98 | p.Parent = model |
| 99 | end |
| 100 | do |
| 101 | local p = Instance.new("Part") |
| 102 | p.Shape = Enum.PartType.Cylinder |
| 103 | p.Name = "SideDialR" |
| 104 | p.Size = Vector3.new(0.6, 2.2, 2.2) |
| 105 | p.CFrame = CFrame.new(2, 0.2, -1.5) |
| 106 | p.BrickColor = BrickColor.new("Bright orange") |
| 107 | p.Material = Enum.Material.Glacier |
| 108 | p.MaterialVariant = "2022 Stud" |
| 109 | p.Anchored = true |
| 110 | p.Parent = model |
| 111 | end |
| 112 | do |
| 113 | local p = Instance.new("Part") |
| 114 | p.Name = "SideBlockL" |
| 115 | p.Size = Vector3.new(0.4, 1.2, 1.8) |
| 116 | p.CFrame = CFrame.new(-1.6, -1, -1.42) |
| 117 | p.BrickColor = BrickColor.new("Bright orange") |
| 118 | p.Material = Enum.Material.Glacier |
| 119 | p.MaterialVariant = "2022 Stud" |
| 120 | p.Anchored = true |
| 121 | p.Parent = model |
| 122 | end |
| 123 | do |
| 124 | local p = Instance.new("Part") |
| 125 | p.Name = "SideBlockR" |
| 126 | p.Size = Vector3.new(0.4, 1.2, 1.8) |
| 127 | p.CFrame = CFrame.new(1.6, -1, -1.42) |
| 128 | p.BrickColor = BrickColor.new("Bright orange") |
| 129 | p.Material = Enum.Material.Glacier |
| 130 | p.MaterialVariant = "2022 Stud" |
| 131 | p.Anchored = true |
| 132 | p.Parent = model |
| 133 | end |
| 134 | do |
| 135 | local p = Instance.new("Part") |
| 136 | p.Name = "GripMain" |
| 137 | p.Size = Vector3.new(1.2, 3.5, 1.6) |
| 138 | p.CFrame = CFrame.new(0, -3.5, -3.5) * CFrame.Angles(math.rad(12), math.rad(0), math.rad(0)) |
| 139 | p.BrickColor = BrickColor.new("Teal") |
| 140 | p.Material = Enum.Material.Glacier |
| 141 | p.MaterialVariant = "2022 Stud" |
| 142 | p.Anchored = true |
| 143 | p.Parent = model |
| 144 | end |
| 145 | do |
| 146 | local p = Instance.new("Part") |
| 147 | p.Name = "GripBase" |
| 148 | p.Size = Vector3.new(1.4, 0.5, 1.8) |
| 149 | p.CFrame = CFrame.new(0, -5.2, -3.9) * CFrame.Angles(math.rad(12), math.rad(0), math.rad(0)) |
| 150 | p.BrickColor = BrickColor.new("Teal") |
| 151 | p.Material = Enum.Material.Glacier |
| 152 | p.MaterialVariant = "2022 Stud" |
| 153 | p.Anchored = true |
| 154 | p.Parent = model |
| 155 | end |
| 156 | do |
| 157 | local p = Instance.new("Part") |
| 158 | p.Name = "GripDetail" |
| 159 | p.Size = Vector3.new(1, 2.5, 0.4) |
| 160 | p.CFrame = CFrame.new(0, -3.5, -4.2) * CFrame.Angles(math.rad(12), math.rad(0), math.rad(0)) |
| 161 | p.BrickColor = BrickColor.new("Teal") |
| 162 | p.Material = Enum.Material.Glacier |
| 163 | p.MaterialVariant = "2022 Stud" |
| 164 | p.Anchored = true |
| 165 | p.Parent = model |
| 166 | end |
| 167 | do |
| 168 | local p = Instance.new("Part") |
| 169 | p.Name = "TriggerGuardBottom" |
| 170 | p.Size = Vector3.new(1, 0.4, 2.5) |
| 171 | p.CFrame = CFrame.new(0, -2.6, -1.8) |
| 172 | p.BrickColor = BrickColor.new("Teal") |
| 173 | p.Material = Enum.Material.Glacier |
| 174 | p.MaterialVariant = "2022 Stud" |
| 175 | p.Anchored = true |
| 176 | p.Parent = model |
| 177 | end |
| 178 | do |
| 179 | local p = Instance.new("Part") |
| 180 | p.Name = "TriggerGuardFront" |
| 181 | p.Size = Vector3.new(1, 2, 0.4) |
| 182 | p.CFrame = CFrame.new(0.04, -1.6, -0.8) |
| 183 | p.BrickColor = BrickColor.new("Teal") |
| 184 | p.Material = Enum.Material.Glacier |
| 185 | p.MaterialVariant = "2022 Stud" |
| 186 | p.Anchored = true |
| 187 | p.Parent = model |
| 188 | end |
| 189 | do |
| 190 | local p = Instance.new("Part") |
| 191 | p.Name = "Trigger" |
| 192 | p.Size = Vector3.new(0.4, 1, 0.6) |
| 193 | p.CFrame = CFrame.new(0, -1.54, -2.24) |
| 194 | p.BrickColor = BrickColor.new("Really black") |
| 195 | p.Material = Enum.Material.Glacier |
| 196 | p.MaterialVariant = "2022 Universal" |
| 197 | p.Anchored = true |
| 198 | p.Parent = model |
| 199 | end |
| 200 | do |
| 201 | local p = Instance.new("Part") |
| 202 | p.Name = "HandlePostBack" |
| 203 | p.Size = Vector3.new(0.8, 1.8, 1.2) |
| 204 | p.CFrame = CFrame.new(0, 2.8, -3.5) |
| 205 | p.BrickColor = BrickColor.new("Bright orange") |
| 206 | p.Material = Enum.Material.Glacier |
| 207 | p.MaterialVariant = "2022 Stud" |
| 208 | p.Anchored = true |
| 209 | p.Parent = model |
| 210 | end |
| 211 | do |
| 212 | local p = Instance.new("Part") |
| 213 | p.Name = "HandlePostFront" |
| 214 | p.Size = Vector3.new(0.8, 1.8, 1.2) |
| 215 | p.CFrame = CFrame.new(0, 2.8, -0.5) |
| 216 | p.BrickColor = BrickColor.new("Bright orange") |
| 217 | p.Material = Enum.Material.Glacier |
| 218 | p.MaterialVariant = "2022 Stud" |
| 219 | p.Anchored = true |
| 220 | p.Parent = model |
| 221 | end |
| 222 | do |
| 223 | local p = Instance.new("Part") |
| 224 | p.Name = "HandleTopBar" |
| 225 | p.Size = Vector3.new(1, 0.6, 5) |
| 226 | p.CFrame = CFrame.new(0, 3.8, -2) |
| 227 | p.BrickColor = BrickColor.new("Bright orange") |
| 228 | p.Material = Enum.Material.Glacier |
| 229 | p.MaterialVariant = "2022 Stud" |
| 230 | p.Anchored = true |
| 231 | p.Parent = model |
| 232 | end |
| 233 | do |
| 234 | local p = Instance.new("Part") |
| 235 | p.Name = "HandleGrip" |
| 236 | p.Size = Vector3.new(1.2, 0.3, 3) |
| 237 | p.CFrame = CFrame.new(0, 4.1, -2) |
| 238 | p.BrickColor = BrickColor.new("Bright orange") |
| 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 = "BarrelCenter" |
| 248 | p.Size = Vector3.new(10, 1.2, 1.2) |
| 249 | p.CFrame = CFrame.new(0, 0, 5) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)) |
| 250 | p.BrickColor = BrickColor.new("Institutional white") |
| 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 = "BarrelTop" |
| 260 | p.Size = Vector3.new(10, 0.9, 0.9) |
| 261 | p.CFrame = CFrame.new(0, 1.3, 5) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)) |
| 262 | p.BrickColor = BrickColor.new("Institutional white") |
| 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.Shape = Enum.PartType.Cylinder |
| 271 | p.Name = "BarrelBot" |
| 272 | p.Size = Vector3.new(10, 0.9, 0.9) |
| 273 | p.CFrame = CFrame.new(0, -1.3, 5) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)) |
| 274 | p.BrickColor = BrickColor.new("Institutional white") |
| 275 | p.Material = Enum.Material.Glacier |
| 276 | p.MaterialVariant = "2022 Stud" |
| 277 | p.Anchored = true |
| 278 | p.Parent = model |
| 279 | end |
| 280 | do |
| 281 | local p = Instance.new("Part") |
| 282 | p.Shape = Enum.PartType.Cylinder |
| 283 | p.Name = "BarrelLeft" |
| 284 | p.Size = Vector3.new(10, 0.9, 0.9) |
| 285 | p.CFrame = CFrame.new(-1.3, 0, 5) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)) |
| 286 | p.BrickColor = BrickColor.new("Institutional white") |
| 287 | p.Material = Enum.Material.Glacier |
| 288 | p.MaterialVariant = "2022 Stud" |
| 289 | p.Anchored = true |
| 290 | p.Parent = model |
| 291 | end |
| 292 | do |
| 293 | local p = Instance.new("Part") |
| 294 | p.Shape = Enum.PartType.Cylinder |
| 295 | p.Name = "BarrelRight" |
| 296 | p.Size = Vector3.new(10, 0.9, 0.9) |
| 297 | p.CFrame = CFrame.new(1.3, 0, 5) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)) |
| 298 | p.BrickColor = BrickColor.new("Institutional white") |
| 299 | p.Material = Enum.Material.Glacier |
| 300 | p.MaterialVariant = "2022 Stud" |
| 301 | p.Anchored = true |
| 302 | p.Parent = model |
| 303 | end |
| 304 | do |
| 305 | local p = Instance.new("Part") |
| 306 | p.Shape = Enum.PartType.Cylinder |
| 307 | p.Name = "SupportRing1" |
| 308 | p.Size = Vector3.new(1.2, 3.8, 3.8) |
| 309 | p.CFrame = CFrame.new(0, 0, 1) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)) |
| 310 | p.BrickColor = BrickColor.new("Teal") |
| 311 | p.Material = Enum.Material.Glacier |
| 312 | p.MaterialVariant = "2022 Stud" |
| 313 | p.Anchored = true |
| 314 | p.Parent = model |
| 315 | end |
| 316 | do |
| 317 | local p = Instance.new("Part") |
| 318 | p.Shape = Enum.PartType.Cylinder |
| 319 | p.Name = "SupportRing2" |
| 320 | p.Size = Vector3.new(1, 3.6, 3.6) |
| 321 | p.CFrame = CFrame.new(0, 0, 5) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)) |
| 322 | p.BrickColor = BrickColor.new("Teal") |
| 323 | p.Material = Enum.Material.Glacier |
| 324 | p.MaterialVariant = "2022 Stud" |
| 325 | p.Anchored = true |
| 326 | p.Parent = model |
| 327 | end |
| 328 | do |
| 329 | local p = Instance.new("Part") |
| 330 | p.Name = "PumpMain" |
| 331 | p.Size = Vector3.new(2.2, 1.6, 4.5) |
| 332 | p.CFrame = CFrame.new(0, -2.4, 4) |
| 333 | p.BrickColor = BrickColor.new("Bright orange") |
| 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("Part") |
| 341 | p.Name = "PumpGripBottom" |
| 342 | p.Size = Vector3.new(2.4, 0.4, 4) |
| 343 | p.CFrame = CFrame.new(0, -3.2, 4) |
| 344 | p.BrickColor = BrickColor.new("Bright orange") |
| 345 | p.Material = Enum.Material.Glacier |
| 346 | p.MaterialVariant = "2022 Stud" |
| 347 | p.Anchored = true |
| 348 | p.Parent = model |
| 349 | end |
| 350 | do |
| 351 | local p = Instance.new("Part") |
| 352 | p.Name = "PumpDetailL" |
| 353 | p.Size = Vector3.new(0.3, 1, 3.5) |
| 354 | p.CFrame = CFrame.new(-1.2, -2.4, 4) |
| 355 | p.BrickColor = BrickColor.new("Bright orange") |
| 356 | p.Material = Enum.Material.Glacier |
| 357 | p.MaterialVariant = "2022 Stud" |
| 358 | p.Anchored = true |
| 359 | p.Parent = model |
| 360 | end |
| 361 | do |
| 362 | local p = Instance.new("Part") |
| 363 | p.Name = "PumpDetailR" |
| 364 | p.Size = Vector3.new(0.3, 1, 3.5) |
| 365 | p.CFrame = CFrame.new(1.2, -2.4, 4) |
| 366 | p.BrickColor = BrickColor.new("Bright orange") |
| 367 | p.Material = Enum.Material.Glacier |
| 368 | p.MaterialVariant = "2022 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 = "FrontCap" |
| 376 | p.Size = Vector3.new(1.5, 3.5, 3.5) |
| 377 | p.CFrame = CFrame.new(0, 0, 10.5) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)) |
| 378 | p.BrickColor = BrickColor.new("Bright orange") |
| 379 | p.Material = Enum.Material.Glacier |
| 380 | p.MaterialVariant = "2022 Stud" |
| 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 = "FrontCapDetail" |
| 388 | p.Size = Vector3.new(1.6, 3, 3) |
| 389 | p.CFrame = CFrame.new(0, 0, 10.5) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)) |
| 390 | p.BrickColor = BrickColor.new("Bright orange") |
| 391 | p.Material = Enum.Material.Glacier |
| 392 | p.MaterialVariant = "2022 Stud" |
| 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 = "NozzleTop" |
| 400 | p.Size = Vector3.new(1, 0.4, 0.4) |
| 401 | p.CFrame = CFrame.new(0, 1.3, 11.5) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)) |
| 402 | p.BrickColor = BrickColor.new("Institutional white") |
| 403 | p.Material = Enum.Material.Glacier |
| 404 | p.MaterialVariant = "2022 Stud" |
| 405 | p.Anchored = true |
| 406 | p.Parent = model |
| 407 | end |
| 408 | do |
| 409 | local p = Instance.new("Part") |
| 410 | p.Shape = Enum.PartType.Cylinder |
| 411 | p.Name = "NozzleBot" |
| 412 | p.Size = Vector3.new(1, 0.4, 0.4) |
| 413 | p.CFrame = CFrame.new(0, -1.3, 11.5) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)) |
| 414 | p.BrickColor = BrickColor.new("Institutional white") |
| 415 | p.Material = Enum.Material.Glacier |
| 416 | p.MaterialVariant = "2022 Stud" |
| 417 | p.Anchored = true |
| 418 | p.Parent = model |
| 419 | end |
| 420 | do |
| 421 | local p = Instance.new("Part") |
| 422 | p.Shape = Enum.PartType.Cylinder |
| 423 | p.Name = "NozzleLeft" |
| 424 | p.Size = Vector3.new(1, 0.4, 0.4) |
| 425 | p.CFrame = CFrame.new(-1.3, 0, 11.5) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)) |
| 426 | p.BrickColor = BrickColor.new("Institutional white") |
| 427 | p.Material = Enum.Material.Glacier |
| 428 | p.MaterialVariant = "2022 Stud" |
| 429 | p.Anchored = true |
| 430 | p.Parent = model |
| 431 | end |
| 432 | do |
| 433 | local p = Instance.new("Part") |
| 434 | p.Shape = Enum.PartType.Cylinder |
| 435 | p.Name = "NozzleRight" |
| 436 | p.Size = Vector3.new(1, 0.4, 0.4) |
| 437 | p.CFrame = CFrame.new(1.3, 0, 11.5) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)) |
| 438 | p.BrickColor = BrickColor.new("Institutional white") |
| 439 | p.Material = Enum.Material.Glacier |
| 440 | p.MaterialVariant = "2022 Stud" |
| 441 | p.Anchored = true |
| 442 | p.Parent = model |
| 443 | end |
| 444 | do |
| 445 | local p = Instance.new("Part") |
| 446 | p.Shape = Enum.PartType.Cylinder |
| 447 | p.Name = "NozzleCenter" |
| 448 | p.Size = Vector3.new(1, 0.6, 0.6) |
| 449 | p.CFrame = CFrame.new(0, 0, 11.5) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)) |
| 450 | p.BrickColor = BrickColor.new("Institutional white") |
| 451 | p.Material = Enum.Material.Glacier |
| 452 | p.MaterialVariant = "2022 Stud" |
| 453 | p.Anchored = true |
| 454 | p.Parent = model |
| 455 | end |
| 456 | do |
| 457 | local upV = Vector3.new(0,0,-1).Unit |
| 458 | local rightV = (Vector3.new(1,0,0) - Vector3.new(1,0,0):Dot(upV)*upV).Unit |
| 459 | local forwardV = rightV:Cross(upV) |
| 460 | local pos = Vector3.new(0, 0, -12.04) |
| 461 | local ball = Instance.new("Part") |
| 462 | ball.Shape = Enum.PartType.Ball |
| 463 | ball.Size = Vector3.new(4.2, 4.2, 4.2) |
| 464 | ball.CFrame = CFrame.new(pos) |
| 465 | ball.BrickColor = BrickColor.new("Institutional white") |
| 466 | ball.Material = Enum.Material.Glacier |
| 467 | ball.MaterialVariant = "2022 Stud" |
| 468 | ball.Anchored = true; ball.Parent = workspace |
| 469 | local cuts = {} |
| 470 | do |
| 471 | local h = 0 |
| 472 | local cut = Instance.new("Part") |
| 473 | cut.Size = Vector3.new(8.4, 8.4, 8.4) |
| 474 | cut.CFrame = CFrame.fromMatrix(pos + upV*(-4.2), rightV, upV) |
| 475 | cut.BrickColor = BrickColor.new("Institutional white") |
| 476 | cut.Material = Enum.Material.Glacier |
| 477 | cut.MaterialVariant = "2022 Stud" |
| 478 | cut.Anchored = true; cut.Parent = workspace |
| 479 | table.insert(cuts, cut) |
| 480 | end |
| 481 | if #cuts > 0 then |
| 482 | local ok, result = pcall(function() return ball:SubtractAsync(cuts) end) |
| 483 | for _, c in ipairs(cuts) do c:Destroy() end |
| 484 | if ok and result then |
| 485 | ball:Destroy() |
| 486 | result.Name = "TankDome"; result.Anchored = true; result.Parent = model |
| 487 | else |
| 488 | ball.Name = "TankDome"; ball.Parent = model |
| 489 | end |
| 490 | else |
| 491 | ball.Name = "TankDome"; ball.Parent = model |
| 492 | end |
| 493 | end |
| 494 | model.PrimaryPart = model:FindFirstChild("BodyCore") |
| 495 | print("SuperWaterGun built: " .. #model:GetChildren() .. " parts") |
Loading comments...