Loading model...
by Chris · 3/26/2026
Lua Script
| 1 | -- Generated with StudForge.org | AI-powered 3D models for Roblox |
| 2 | -- Model: CampingTent |
| 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 = "CampingTent" |
| 21 | model.Parent = workspace |
| 22 | |
| 23 | local variants = { |
| 24 | ["Bright orange"] = "2022 Stud", |
| 25 | ["Light stone grey"] = "2022 Glue", |
| 26 | ["Medium stone grey"] = "2022 Inlet", |
| 27 | ["Really black"] = "2022 Universal", |
| 28 | ["Reddish brown"] = "2022 Small Stud", |
| 29 | } |
| 30 | do |
| 31 | local p = Instance.new("Part") |
| 32 | p.Name = "Floor_Main" |
| 33 | p.Size = Vector3.new(16, 0.4, 12) |
| 34 | p.CFrame = CFrame.new(0, 0.2, 0.04) |
| 35 | p.BrickColor = BrickColor.new("Reddish brown") |
| 36 | p.Material = Enum.Material.Glacier |
| 37 | p.MaterialVariant = "2022 Small Stud" |
| 38 | p.Anchored = true |
| 39 | p.Parent = model |
| 40 | end |
| 41 | do |
| 42 | local p = Instance.new("Part") |
| 43 | p.Name = "Floor_Awning" |
| 44 | p.Size = Vector3.new(8, 0.4, 6) |
| 45 | p.CFrame = CFrame.new(0, 0.2, -9.04) |
| 46 | p.BrickColor = BrickColor.new("Reddish brown") |
| 47 | p.Material = Enum.Material.Glacier |
| 48 | p.MaterialVariant = "2022 Small Stud" |
| 49 | p.Anchored = true |
| 50 | p.Parent = model |
| 51 | end |
| 52 | do |
| 53 | local p = Instance.new("Part") |
| 54 | p.Name = "Wall_Back" |
| 55 | p.Size = Vector3.new(16, 8, 0.4) |
| 56 | p.CFrame = CFrame.new(0.04, 3.96, 6) |
| 57 | p.BrickColor = BrickColor.new("Bright orange") |
| 58 | p.Material = Enum.Material.Glacier |
| 59 | p.MaterialVariant = "2022 Stud" |
| 60 | p.Anchored = true |
| 61 | p.Parent = model |
| 62 | end |
| 63 | do |
| 64 | local p = Instance.new("Part") |
| 65 | p.Name = "Wall_Left" |
| 66 | p.Size = Vector3.new(0.4, 8, 12) |
| 67 | p.CFrame = CFrame.new(-7.88, 3.92, 0.08) |
| 68 | p.BrickColor = BrickColor.new("Bright orange") |
| 69 | p.Material = Enum.Material.Glacier |
| 70 | p.MaterialVariant = "2022 Stud" |
| 71 | p.Anchored = true |
| 72 | p.Parent = model |
| 73 | end |
| 74 | do |
| 75 | local p = Instance.new("Part") |
| 76 | p.Name = "Wall_Right" |
| 77 | p.Size = Vector3.new(0.4, 8, 12) |
| 78 | p.CFrame = CFrame.new(7.88, 3.92, 0.08) |
| 79 | p.BrickColor = BrickColor.new("Bright orange") |
| 80 | p.Material = Enum.Material.Glacier |
| 81 | p.MaterialVariant = "2022 Stud" |
| 82 | p.Anchored = true |
| 83 | p.Parent = model |
| 84 | end |
| 85 | do |
| 86 | local p = Instance.new("Part") |
| 87 | p.Name = "Wall_Front_Left" |
| 88 | p.Size = Vector3.new(4, 8, 0.4) |
| 89 | p.CFrame = CFrame.new(-6.04, 3.96, -6) |
| 90 | p.BrickColor = BrickColor.new("Bright orange") |
| 91 | p.Material = Enum.Material.Glacier |
| 92 | p.MaterialVariant = "2022 Stud" |
| 93 | p.Anchored = true |
| 94 | p.Parent = model |
| 95 | end |
| 96 | do |
| 97 | local p = Instance.new("Part") |
| 98 | p.Name = "Wall_Front_Right" |
| 99 | p.Size = Vector3.new(4, 8, 0.4) |
| 100 | p.CFrame = CFrame.new(6.04, 3.96, -6) |
| 101 | p.BrickColor = BrickColor.new("Bright orange") |
| 102 | p.Material = Enum.Material.Glacier |
| 103 | p.MaterialVariant = "2022 Stud" |
| 104 | p.Anchored = true |
| 105 | p.Parent = model |
| 106 | end |
| 107 | do |
| 108 | local p = Instance.new("Part") |
| 109 | p.Name = "Awning_Roof" |
| 110 | p.Size = Vector3.new(8, 0.2, 6) |
| 111 | p.CFrame = CFrame.new(0, 7.5, -9) * CFrame.Angles(math.rad(-10), math.rad(0), math.rad(0)) |
| 112 | p.BrickColor = BrickColor.new("Bright orange") |
| 113 | p.Material = Enum.Material.Glacier |
| 114 | p.MaterialVariant = "2022 Stud" |
| 115 | p.Anchored = true |
| 116 | p.Parent = model |
| 117 | end |
| 118 | do |
| 119 | local p = Instance.new("Part") |
| 120 | p.Name = "Pole_Left" |
| 121 | p.Size = Vector3.new(8, 0.2, 0.2) |
| 122 | p.CFrame = CFrame.new(-3.8, 4.08, -11.8) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 123 | p.BrickColor = BrickColor.new("Light stone grey") |
| 124 | p.Material = Enum.Material.Glacier |
| 125 | p.MaterialVariant = "2022 Glue" |
| 126 | p.Anchored = true |
| 127 | p.Parent = model |
| 128 | end |
| 129 | do |
| 130 | local p = Instance.new("Part") |
| 131 | p.Name = "Pole_Right" |
| 132 | p.Size = Vector3.new(8, 0.2, 0.2) |
| 133 | p.CFrame = CFrame.new(3.8, 4.08, -11.8) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 134 | p.BrickColor = BrickColor.new("Light stone grey") |
| 135 | p.Material = Enum.Material.Glacier |
| 136 | p.MaterialVariant = "2022 Glue" |
| 137 | p.Anchored = true |
| 138 | p.Parent = model |
| 139 | end |
| 140 | do |
| 141 | local p = Instance.new("Part") |
| 142 | p.Name = "TentPole_FrontLeft" |
| 143 | p.Size = Vector3.new(0.2, 8, 0.2) |
| 144 | p.CFrame = CFrame.new(-4.5, 4, -5.5) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(15)) |
| 145 | p.BrickColor = BrickColor.new("Really black") |
| 146 | p.Material = Enum.Material.Glacier |
| 147 | p.MaterialVariant = "2022 Universal" |
| 148 | p.Anchored = true |
| 149 | p.Parent = model |
| 150 | end |
| 151 | do |
| 152 | local p = Instance.new("Part") |
| 153 | p.Name = "TentPole_FrontRight" |
| 154 | p.Size = Vector3.new(0.2, 8, 0.2) |
| 155 | p.CFrame = CFrame.new(4.5, 4, -5.5) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-15)) |
| 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.Name = "Flap_Left" |
| 165 | p.Size = Vector3.new(8, 4, 12) |
| 166 | p.CFrame = CFrame.new(-12, 2, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(30)) |
| 167 | p.BrickColor = BrickColor.new("Bright orange") |
| 168 | p.Material = Enum.Material.Glacier |
| 169 | p.MaterialVariant = "2022 Stud" |
| 170 | p.Anchored = true |
| 171 | p.Parent = model |
| 172 | end |
| 173 | do |
| 174 | local p = Instance.new("Part") |
| 175 | p.Name = "Flap_Right" |
| 176 | p.Size = Vector3.new(8, 4, 12) |
| 177 | p.CFrame = CFrame.new(12, 2, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-30)) |
| 178 | p.BrickColor = BrickColor.new("Bright orange") |
| 179 | p.Material = Enum.Material.Glacier |
| 180 | p.MaterialVariant = "2022 Stud" |
| 181 | p.Anchored = true |
| 182 | p.Parent = model |
| 183 | end |
| 184 | do |
| 185 | local upV = Vector3.new(0,1,0).Unit |
| 186 | local rightV = (Vector3.new(1,0,0) - Vector3.new(1,0,0):Dot(upV)*upV).Unit |
| 187 | local forwardV = rightV:Cross(upV) |
| 188 | local pos = Vector3.new(0, 8, 0) |
| 189 | local ball = Instance.new("Part") |
| 190 | ball.Shape = Enum.PartType.Ball |
| 191 | ball.Size = Vector3.new(16, 16, 16) |
| 192 | ball.CFrame = CFrame.new(pos) |
| 193 | ball.BrickColor = BrickColor.new("Medium stone grey") |
| 194 | ball.Material = Enum.Material.Glacier |
| 195 | ball.MaterialVariant = "2022 Inlet" |
| 196 | ball.Anchored = true; ball.Parent = workspace |
| 197 | local cuts = {} |
| 198 | do |
| 199 | local h = 0 |
| 200 | local cut = Instance.new("Part") |
| 201 | cut.Size = Vector3.new(32, 32, 32) |
| 202 | cut.CFrame = CFrame.fromMatrix(pos + upV*(-16), rightV, upV) |
| 203 | cut.BrickColor = BrickColor.new("Medium stone grey") |
| 204 | cut.Material = Enum.Material.Glacier |
| 205 | cut.MaterialVariant = "2022 Inlet" |
| 206 | cut.Anchored = true; cut.Parent = workspace |
| 207 | table.insert(cuts, cut) |
| 208 | end |
| 209 | if #cuts > 0 then |
| 210 | local ok, result = pcall(function() return ball:SubtractAsync(cuts) end) |
| 211 | for _, c in ipairs(cuts) do c:Destroy() end |
| 212 | if ok and result then |
| 213 | ball:Destroy() |
| 214 | result.Name = "Roof_Dome"; result.Anchored = true; result.Parent = model |
| 215 | else |
| 216 | ball.Name = "Roof_Dome"; ball.Parent = model |
| 217 | end |
| 218 | else |
| 219 | ball.Name = "Roof_Dome"; ball.Parent = model |
| 220 | end |
| 221 | end |
| 222 | model.PrimaryPart = model:FindFirstChild("Floor_Main") |
| 223 | print("CampingTent built: " .. #model:GetChildren() .. " parts") |
Loading comments...