Drawing
Render3D
Draw lines, boxes, rings and glows in the world.
Render3D draws shapes at world positions. Call these every frame, for example from RunService.RenderStepped or mc.Events.Render. Nothing stays on screen between calls. Lowercase alias: render3d.
Position arguments can be a Vector3, a table with X/Y/Z or x/y/z, or an array {x, y, z}. Colors are Color3 values and default to white. alpha defaults to 1.
Render3D.Line(a, b, color, alpha)
A line from point a to point b.
Render3D.Box(center, size, color, alpha, filled)
A box centred on center.
sizeis the full width, height and depth. DefaultVector3.new(1, 1, 1).filled: passtruefor a solid box. Default is an outline.
Render3D.Ring(center, radius = 1, color, alpha)
A horizontal ring around center.
Render3D.Glow(center, size = 0.1, color, alpha)
A soft glowing point.
RunService.RenderStepped:Connect(function()
for _, e in ipairs(mc.getEntities({ range = 30 })) do
Render3D.Box(
Vector3.new(e.x, e.y + (e.height or 1.8) / 2, e.z),
Vector3.new(0.6, e.height or 1.8, 0.6),
Color3.fromRGB(255, 80, 80),
0.8
)
end
end)