Loading model...
by Callums World · 3/26/2026
Lua Script
| 1 | -- Generated with StudForge.org | AI-powered 3D models for Roblox |
| 2 | -- Model: Eye |
| 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 = "Eye" |
| 21 | model.Parent = workspace |
| 22 | |
| 23 | local variants = { |
| 24 | ["Bright red"] = "2022 Stud", |
| 25 | ["Institutional white"] = "2022 Stud", |
| 26 | ["Maroon"] = "2022 Stud", |
| 27 | ["Really black"] = "2022 Universal", |
| 28 | ["Really red"] = "2022 Stud", |
| 29 | } |
| 30 | do |
| 31 | local p = Instance.new("Part") |
| 32 | p.Shape = Enum.PartType.Ball |
| 33 | p.Name = "Highlight1" |
| 34 | p.Size = Vector3.new(1.2, 1.2, 1.2) |
| 35 | p.CFrame = CFrame.new(-1.5, 1.5, 9.8) |
| 36 | p.BrickColor = BrickColor.new("Institutional white") |
| 37 | p.Material = Enum.Material.Glacier |
| 38 | p.MaterialVariant = "2022 Stud" |
| 39 | p.Anchored = true |
| 40 | p.Parent = model |
| 41 | end |
| 42 | do |
| 43 | local p = Instance.new("Part") |
| 44 | p.Shape = Enum.PartType.Ball |
| 45 | p.Name = "Highlight2" |
| 46 | p.Size = Vector3.new(0.8, 0.8, 0.8) |
| 47 | p.CFrame = CFrame.new(-2.5, 2.5, 9.5) |
| 48 | p.BrickColor = BrickColor.new("Institutional white") |
| 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 = "Vein_0" |
| 58 | p.Size = Vector3.new(3, 0.1, 0.1) |
| 59 | p.CFrame = CFrame.new(8, 0, 4) * CFrame.Angles(math.rad(0), math.rad(63.4349), math.rad(0)) |
| 60 | p.BrickColor = BrickColor.new("Bright red") |
| 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 = "Vein_1" |
| 70 | p.Size = Vector3.new(3, 0.1, 0.1) |
| 71 | p.CFrame = CFrame.new(5.65685, 5.65685, 4) * CFrame.Angles(math.rad(-39.2315), math.rad(54.7356), math.rad(0)) |
| 72 | p.BrickColor = BrickColor.new("Bright red") |
| 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 = "Vein_2" |
| 82 | p.Size = Vector3.new(3, 0.1, 0.1) |
| 83 | p.CFrame = CFrame.new(0, 8, 4) * CFrame.Angles(math.rad(-63.4349), math.rad(0), math.rad(0)) |
| 84 | p.BrickColor = BrickColor.new("Bright red") |
| 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 = "Vein_3" |
| 94 | p.Size = Vector3.new(3, 0.1, 0.1) |
| 95 | p.CFrame = CFrame.new(-5.65685, 5.65685, 4) * CFrame.Angles(math.rad(-39.2315), math.rad(-54.7356), math.rad(0)) |
| 96 | p.BrickColor = BrickColor.new("Bright red") |
| 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 = "Vein_4" |
| 106 | p.Size = Vector3.new(3, 0.1, 0.1) |
| 107 | p.CFrame = CFrame.new(-8, 0, 4) * CFrame.Angles(math.rad(0), math.rad(-63.4349), math.rad(0)) |
| 108 | p.BrickColor = BrickColor.new("Bright red") |
| 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 = "Vein_5" |
| 118 | p.Size = Vector3.new(3, 0.1, 0.1) |
| 119 | p.CFrame = CFrame.new(-5.65685, -5.65685, 4) * CFrame.Angles(math.rad(39.2315), math.rad(-54.7356), math.rad(0)) |
| 120 | p.BrickColor = BrickColor.new("Bright red") |
| 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 = "Vein_6" |
| 130 | p.Size = Vector3.new(3, 0.1, 0.1) |
| 131 | p.CFrame = CFrame.new(0, -8, 4) * CFrame.Angles(math.rad(63.4349), math.rad(0), math.rad(0)) |
| 132 | p.BrickColor = BrickColor.new("Bright red") |
| 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 = "Vein_7" |
| 142 | p.Size = Vector3.new(3, 0.1, 0.1) |
| 143 | p.CFrame = CFrame.new(5.65685, -5.65685, 4) * CFrame.Angles(math.rad(39.2315), math.rad(54.7356), math.rad(0)) |
| 144 | p.BrickColor = BrickColor.new("Bright red") |
| 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 upV = Vector3.new(0,1,0).Unit |
| 152 | local rightV = (Vector3.new(1,0,0) - Vector3.new(1,0,0):Dot(upV)*upV).Unit |
| 153 | local forwardV = rightV:Cross(upV) |
| 154 | local pos = Vector3.new(0, 0, 0) |
| 155 | local ball = Instance.new("Part") |
| 156 | ball.Shape = Enum.PartType.Ball |
| 157 | ball.Size = Vector3.new(20, 20, 20) |
| 158 | ball.CFrame = CFrame.new(pos) |
| 159 | ball.BrickColor = BrickColor.new("Institutional white") |
| 160 | ball.Material = Enum.Material.Glacier |
| 161 | ball.MaterialVariant = "2022 Stud" |
| 162 | ball.Anchored = true; ball.Parent = workspace |
| 163 | local cuts = {} |
| 164 | if #cuts > 0 then |
| 165 | local ok, result = pcall(function() return ball:SubtractAsync(cuts) end) |
| 166 | for _, c in ipairs(cuts) do c:Destroy() end |
| 167 | if ok and result then |
| 168 | ball:Destroy() |
| 169 | result.Name = "Sclera"; result.Anchored = true; result.Parent = model |
| 170 | else |
| 171 | ball.Name = "Sclera"; ball.Parent = model |
| 172 | end |
| 173 | else |
| 174 | ball.Name = "Sclera"; ball.Parent = model |
| 175 | end |
| 176 | end |
| 177 | do |
| 178 | local upV = Vector3.new(0,0,1).Unit |
| 179 | local rightV = (Vector3.new(1,0,0) - Vector3.new(1,0,0):Dot(upV)*upV).Unit |
| 180 | local forwardV = rightV:Cross(upV) |
| 181 | local pos = Vector3.new(0, 0, 0) |
| 182 | local ball = Instance.new("Part") |
| 183 | ball.Shape = Enum.PartType.Ball |
| 184 | ball.Size = Vector3.new(20.2, 20.2, 20.2) |
| 185 | ball.CFrame = CFrame.new(pos) |
| 186 | ball.BrickColor = BrickColor.new("Bright red") |
| 187 | ball.Material = Enum.Material.Glacier |
| 188 | ball.MaterialVariant = "2022 Stud" |
| 189 | ball.Anchored = true; ball.Parent = workspace |
| 190 | local cuts = {} |
| 191 | do |
| 192 | local h = 9.490895 |
| 193 | local cut = Instance.new("Part") |
| 194 | cut.Size = Vector3.new(40.4, 40.4, 40.4) |
| 195 | cut.CFrame = CFrame.fromMatrix(pos + upV*(-10.709105), rightV, upV) |
| 196 | cut.BrickColor = BrickColor.new("Bright red") |
| 197 | cut.Material = Enum.Material.Glacier |
| 198 | cut.MaterialVariant = "2022 Stud" |
| 199 | cut.Anchored = true; cut.Parent = workspace |
| 200 | table.insert(cuts, cut) |
| 201 | end |
| 202 | if #cuts > 0 then |
| 203 | local ok, result = pcall(function() return ball:SubtractAsync(cuts) end) |
| 204 | for _, c in ipairs(cuts) do c:Destroy() end |
| 205 | if ok and result then |
| 206 | ball:Destroy() |
| 207 | result.Name = "Iris_Base"; result.Anchored = true; result.Parent = model |
| 208 | else |
| 209 | ball.Name = "Iris_Base"; ball.Parent = model |
| 210 | end |
| 211 | else |
| 212 | ball.Name = "Iris_Base"; ball.Parent = model |
| 213 | end |
| 214 | end |
| 215 | do |
| 216 | local upV = Vector3.new(0,0,1).Unit |
| 217 | local rightV = (Vector3.new(1,0,0) - Vector3.new(1,0,0):Dot(upV)*upV).Unit |
| 218 | local forwardV = rightV:Cross(upV) |
| 219 | local pos = Vector3.new(0, 0, 0) |
| 220 | local ball = Instance.new("Part") |
| 221 | ball.Shape = Enum.PartType.Ball |
| 222 | ball.Size = Vector3.new(20.3, 20.3, 20.3) |
| 223 | ball.CFrame = CFrame.new(pos) |
| 224 | ball.BrickColor = BrickColor.new("Maroon") |
| 225 | ball.Material = Enum.Material.Glacier |
| 226 | ball.MaterialVariant = "2022 Stud" |
| 227 | ball.Anchored = true; ball.Parent = workspace |
| 228 | local cuts = {} |
| 229 | do |
| 230 | local h = 9.804147 |
| 231 | local cut = Instance.new("Part") |
| 232 | cut.Size = Vector3.new(40.6, 40.6, 40.6) |
| 233 | cut.CFrame = CFrame.fromMatrix(pos + upV*(-10.495853), rightV, upV) |
| 234 | cut.BrickColor = BrickColor.new("Maroon") |
| 235 | cut.Material = Enum.Material.Glacier |
| 236 | cut.MaterialVariant = "2022 Stud" |
| 237 | cut.Anchored = true; cut.Parent = workspace |
| 238 | table.insert(cuts, cut) |
| 239 | end |
| 240 | if #cuts > 0 then |
| 241 | local ok, result = pcall(function() return ball:SubtractAsync(cuts) end) |
| 242 | for _, c in ipairs(cuts) do c:Destroy() end |
| 243 | if ok and result then |
| 244 | ball:Destroy() |
| 245 | result.Name = "Iris_Mid"; result.Anchored = true; result.Parent = model |
| 246 | else |
| 247 | ball.Name = "Iris_Mid"; ball.Parent = model |
| 248 | end |
| 249 | else |
| 250 | ball.Name = "Iris_Mid"; ball.Parent = model |
| 251 | end |
| 252 | end |
| 253 | do |
| 254 | local upV = Vector3.new(0,0,1).Unit |
| 255 | local rightV = (Vector3.new(1,0,0) - Vector3.new(1,0,0):Dot(upV)*upV).Unit |
| 256 | local forwardV = rightV:Cross(upV) |
| 257 | local pos = Vector3.new(0, 0, 0) |
| 258 | local ball = Instance.new("Part") |
| 259 | ball.Shape = Enum.PartType.Ball |
| 260 | ball.Size = Vector3.new(20.4, 20.4, 20.4) |
| 261 | ball.CFrame = CFrame.new(pos) |
| 262 | ball.BrickColor = BrickColor.new("Really red") |
| 263 | ball.Material = Enum.Material.Glacier |
| 264 | ball.MaterialVariant = "2022 Stud" |
| 265 | ball.Anchored = true; ball.Parent = workspace |
| 266 | local cuts = {} |
| 267 | do |
| 268 | local h = 10.045039 |
| 269 | local cut = Instance.new("Part") |
| 270 | cut.Size = Vector3.new(40.8, 40.8, 40.8) |
| 271 | cut.CFrame = CFrame.fromMatrix(pos + upV*(-10.354961), rightV, upV) |
| 272 | cut.BrickColor = BrickColor.new("Really red") |
| 273 | cut.Material = Enum.Material.Glacier |
| 274 | cut.MaterialVariant = "2022 Stud" |
| 275 | cut.Anchored = true; cut.Parent = workspace |
| 276 | table.insert(cuts, cut) |
| 277 | end |
| 278 | if #cuts > 0 then |
| 279 | local ok, result = pcall(function() return ball:SubtractAsync(cuts) end) |
| 280 | for _, c in ipairs(cuts) do c:Destroy() end |
| 281 | if ok and result then |
| 282 | ball:Destroy() |
| 283 | result.Name = "Iris_Inner"; result.Anchored = true; result.Parent = model |
| 284 | else |
| 285 | ball.Name = "Iris_Inner"; ball.Parent = model |
| 286 | end |
| 287 | else |
| 288 | ball.Name = "Iris_Inner"; ball.Parent = model |
| 289 | end |
| 290 | end |
| 291 | do |
| 292 | local upV = Vector3.new(0,0,1).Unit |
| 293 | local rightV = (Vector3.new(1,0,0) - Vector3.new(1,0,0):Dot(upV)*upV).Unit |
| 294 | local forwardV = rightV:Cross(upV) |
| 295 | local pos = Vector3.new(0, 0, 0) |
| 296 | local ball = Instance.new("Part") |
| 297 | ball.Shape = Enum.PartType.Ball |
| 298 | ball.Size = Vector3.new(20.5, 20.5, 20.5) |
| 299 | ball.CFrame = CFrame.new(pos) |
| 300 | ball.BrickColor = BrickColor.new("Really black") |
| 301 | ball.Material = Enum.Material.Glacier |
| 302 | ball.MaterialVariant = "2022 Universal" |
| 303 | ball.Anchored = true; ball.Parent = workspace |
| 304 | local cuts = {} |
| 305 | do |
| 306 | local h = 10.193849 |
| 307 | local cut = Instance.new("Part") |
| 308 | cut.Size = Vector3.new(41, 41, 41) |
| 309 | cut.CFrame = CFrame.fromMatrix(pos + upV*(-10.306151), rightV, upV) |
| 310 | cut.BrickColor = BrickColor.new("Really black") |
| 311 | cut.Material = Enum.Material.Glacier |
| 312 | cut.MaterialVariant = "2022 Universal" |
| 313 | cut.Anchored = true; cut.Parent = workspace |
| 314 | table.insert(cuts, cut) |
| 315 | end |
| 316 | if #cuts > 0 then |
| 317 | local ok, result = pcall(function() return ball:SubtractAsync(cuts) end) |
| 318 | for _, c in ipairs(cuts) do c:Destroy() end |
| 319 | if ok and result then |
| 320 | ball:Destroy() |
| 321 | result.Name = "Pupil"; result.Anchored = true; result.Parent = model |
| 322 | else |
| 323 | ball.Name = "Pupil"; ball.Parent = model |
| 324 | end |
| 325 | else |
| 326 | ball.Name = "Pupil"; ball.Parent = model |
| 327 | end |
| 328 | end |
| 329 | model.PrimaryPart = model:FindFirstChild("Sclera") |
| 330 | print("Eye built: " .. #model:GetChildren() .. " parts") |
Loading comments...