Loading model...
by Julio Lopez · 7/23/2026
Lua Script
| 1 | -- Generated with StudForge.org | AI-powered 3D models for Roblox |
| 2 | -- Model: FloorLamp |
| 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 = "FloorLamp" |
| 21 | model.Parent = workspace |
| 22 | |
| 23 | local variants = { |
| 24 | ["Cashmere"] = "2022 Stud", |
| 25 | ["Gold"] = "2022 Stud", |
| 26 | } |
| 27 | do |
| 28 | local p = Instance.new("Part") |
| 29 | p.Shape = Enum.PartType.Cylinder |
| 30 | p.Name = "BaseBottom" |
| 31 | p.Size = Vector3.new(1, 4, 4) |
| 32 | p.CFrame = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 33 | p.BrickColor = BrickColor.new("Gold") |
| 34 | p.Material = Enum.Material.Glacier |
| 35 | p.MaterialVariant = "2022 Stud" |
| 36 | p.Anchored = true |
| 37 | p.Parent = model |
| 38 | end |
| 39 | do |
| 40 | local p = Instance.new("Part") |
| 41 | p.Shape = Enum.PartType.Cylinder |
| 42 | p.Name = "BaseTaper1" |
| 43 | p.Size = Vector3.new(1, 3.2, 3.2) |
| 44 | p.CFrame = CFrame.new(0, 1.54, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 45 | p.BrickColor = BrickColor.new("Gold") |
| 46 | p.Material = Enum.Material.Glacier |
| 47 | p.MaterialVariant = "2022 Stud" |
| 48 | p.Anchored = true |
| 49 | p.Parent = model |
| 50 | end |
| 51 | do |
| 52 | local p = Instance.new("Part") |
| 53 | p.Shape = Enum.PartType.Cylinder |
| 54 | p.Name = "BaseTaper2" |
| 55 | p.Size = Vector3.new(1, 2.4, 2.4) |
| 56 | p.CFrame = CFrame.new(0, 2.58, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 57 | p.BrickColor = BrickColor.new("Gold") |
| 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.Shape = Enum.PartType.Cylinder |
| 66 | p.Name = "BaseTaper3" |
| 67 | p.Size = Vector3.new(1, 1.8, 1.8) |
| 68 | p.CFrame = CFrame.new(0, 3.62, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 69 | p.BrickColor = BrickColor.new("Gold") |
| 70 | p.Material = Enum.Material.Glacier |
| 71 | p.MaterialVariant = "2022 Stud" |
| 72 | p.Anchored = true |
| 73 | p.Parent = model |
| 74 | end |
| 75 | do |
| 76 | local p = Instance.new("Part") |
| 77 | p.Shape = Enum.PartType.Cylinder |
| 78 | p.Name = "PoleLower" |
| 79 | p.Size = Vector3.new(3, 1, 1) |
| 80 | p.CFrame = CFrame.new(0, 5.66, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 81 | p.BrickColor = BrickColor.new("Gold") |
| 82 | p.Material = Enum.Material.Glacier |
| 83 | p.MaterialVariant = "2022 Stud" |
| 84 | p.Anchored = true |
| 85 | p.Parent = model |
| 86 | end |
| 87 | do |
| 88 | local p = Instance.new("Part") |
| 89 | p.Shape = Enum.PartType.Cylinder |
| 90 | p.Name = "MidDetailBottom" |
| 91 | p.Size = Vector3.new(0.5, 1.8, 1.8) |
| 92 | p.CFrame = CFrame.new(0, 7.21, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 93 | p.BrickColor = BrickColor.new("Gold") |
| 94 | p.Material = Enum.Material.Glacier |
| 95 | p.MaterialVariant = "2022 Stud" |
| 96 | p.Anchored = true |
| 97 | p.Parent = model |
| 98 | end |
| 99 | do |
| 100 | local p = Instance.new("Part") |
| 101 | p.Shape = Enum.PartType.Cylinder |
| 102 | p.Name = "MidDetailCore" |
| 103 | p.Size = Vector3.new(1, 1.4, 1.4) |
| 104 | p.CFrame = CFrame.new(0, 8, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 105 | p.BrickColor = BrickColor.new("Gold") |
| 106 | p.Material = Enum.Material.Glacier |
| 107 | p.MaterialVariant = "2022 Stud" |
| 108 | p.Anchored = true |
| 109 | p.Parent = model |
| 110 | end |
| 111 | do |
| 112 | local p = Instance.new("Part") |
| 113 | p.Shape = Enum.PartType.Cylinder |
| 114 | p.Name = "MidDetailTop" |
| 115 | p.Size = Vector3.new(0.5, 1.8, 1.8) |
| 116 | p.CFrame = CFrame.new(0, 8.79, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 117 | p.BrickColor = BrickColor.new("Gold") |
| 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.Shape = Enum.PartType.Cylinder |
| 126 | p.Name = "PoleUpper" |
| 127 | p.Size = Vector3.new(5, 1, 1) |
| 128 | p.CFrame = CFrame.new(0, 11.58, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 129 | p.BrickColor = BrickColor.new("Gold") |
| 130 | p.Material = Enum.Material.Glacier |
| 131 | p.MaterialVariant = "2022 Stud" |
| 132 | p.Anchored = true |
| 133 | p.Parent = model |
| 134 | end |
| 135 | do |
| 136 | local p = Instance.new("Part") |
| 137 | p.Shape = Enum.PartType.Cylinder |
| 138 | p.Name = "ShadeRing" |
| 139 | p.Size = Vector3.new(0.5, 6.2, 6.2) |
| 140 | p.CFrame = CFrame.new(0, 14.21, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
| 141 | p.BrickColor = BrickColor.new("Gold") |
| 142 | p.Material = Enum.Material.Glacier |
| 143 | p.MaterialVariant = "2022 Stud" |
| 144 | p.Anchored = true |
| 145 | p.Parent = model |
| 146 | end |
| 147 | do |
| 148 | local p = Instance.new("Part") |
| 149 | p.Shape = Enum.PartType.Ball |
| 150 | p.Name = "Bulb" |
| 151 | p.Size = Vector3.new(1.5, 1.5, 1.5) |
| 152 | p.CFrame = CFrame.new(0, 16, 0) |
| 153 | p.BrickColor = BrickColor.new("Cool yellow") |
| 154 | p.Material = Enum.Material.Neon |
| 155 | p.Anchored = true |
| 156 | p.Parent = model |
| 157 | end |
| 158 | do |
| 159 | local rightV = Vector3.new(1,0,0).Unit |
| 160 | local upV = (Vector3.new(0,0,-1) - Vector3.new(0,0,-1):Dot(rightV)*rightV).Unit |
| 161 | local normalV = upV:Cross(rightV) |
| 162 | local pos = Vector3.new(0, 17, 0) |
| 163 | local cyl = Instance.new("Part") |
| 164 | cyl.Shape = Enum.PartType.Cylinder |
| 165 | cyl.Size = Vector3.new(5, 12, 12) |
| 166 | cyl.CFrame = CFrame.fromMatrix(pos, normalV, rightV) |
| 167 | cyl.BrickColor = BrickColor.new("Cashmere") |
| 168 | cyl.Material = Enum.Material.Glacier |
| 169 | cyl.MaterialVariant = "2022 Stud" |
| 170 | cyl.Anchored = true; cyl.Parent = workspace |
| 171 | local cuts = {} |
| 172 | local hole = Instance.new("Part") |
| 173 | hole.Shape = Enum.PartType.Cylinder |
| 174 | hole.Size = Vector3.new(5.2, 11.2, 11.2) |
| 175 | hole.CFrame = cyl.CFrame |
| 176 | hole.BrickColor = BrickColor.new("Cashmere") |
| 177 | hole.Material = Enum.Material.Glacier |
| 178 | hole.MaterialVariant = "2022 Stud" |
| 179 | hole.Anchored = true; hole.Parent = workspace |
| 180 | table.insert(cuts, hole) |
| 181 | if #cuts > 0 then |
| 182 | local ok, result = pcall(function() return cyl:SubtractAsync(cuts) end) |
| 183 | for _, c in ipairs(cuts) do c:Destroy() end |
| 184 | if ok and result then |
| 185 | cyl:Destroy() |
| 186 | result.Name = "Shade"; result.Anchored = true; result.Parent = model |
| 187 | else |
| 188 | cyl.Name = "Shade"; cyl.Parent = model |
| 189 | end |
| 190 | else |
| 191 | cyl.Name = "Shade"; cyl.Parent = model |
| 192 | end |
| 193 | end |
| 194 | model.PrimaryPart = model:FindFirstChild("BaseBottom") |
| 195 | print("FloorLamp built: " .. #model:GetChildren() .. " parts") |
Loading comments...