in roblox studio, I have a part with stud, how can I make the part transparent but the…
- User
in roblox studio, I have a part with stud, how can I make the part transparent but the studs still showing
Assistant
To make a part transparent while keeping the studs visible in Roblox Studio, you need to separate the stud visualization from the part itself. Since studs are part of the material's texture, they become transparent along with the part. Here's a step-by-step solution using thin overlay parts:
Step-by-Step Solution
-
Create Thin Plastic Overlays
For each face of the part, create a new thin part with thePlasticmaterial. These overlays will display the studs. -
Position and Weld Overlays
Position each overlay slightly offset from the original part's surface to avoid z-fighting. Weld them to the original part so they move together. -
Make Original Part Transparent
Set the original part'sTransparencyto your desired value (e.g.,0.5). Its studs will disappear, but the overlay studs remain visible.
Complete Code
local part = script.Parent -- Replace with your part reference part.Transparency = 0.5 -- Set desired transparency (0-1) -- Directions and face offsets local directions = { Enum.NormalId.Top, Enum.NormalId.Bottom, Enum.NormalId.Front, Enum.NormalId.Back, Enum.NormalId.Left, Enum.NormalId.Right } for _, dir in ipairs(directions) do -- Create thin overlay part local overlay = Instance.new("Part") overlay.Size = getOverlaySize(part.Size, dir) overlay.Material = Enum.Material.Plastic -- Shows studs overlay.Transparency = 0 -- Opaque overlay.Color = part.Color -- Match base color overlay.Anchored = false overlay.CanCollide = false overlay.Parent = part.Parent -- Position overlay slightly offset from the original surface local offset = calculateOffset(part.Size, dir) overlay.CFrame = part.CFrame * CFrame.new(offset) -- Weld overlay to the original part local weld = Instance.new("Weld") weld.Part0 = part weld.Part1 = overlay weld.C0 = CFrame.new(offset) -- Position relative to part weld.Parent = overlay end -- Helper: Calculate overlay size based on direction function getOverlaySize(size, dir) if dir == Enum.NormalId.Top or dir == Enum.NormalId.Bottom then return Vector3.new(size.X, 0.01, size.Z) -- Flat horizontal elseif dir == Enum.NormalId.Front or dir == Enum.NormalId.Back then return Vector3.new(size.X, size.Y, 0.01) -- Flat vertical (depth) else return Vector3.new(0.01, size.Y, size.Z) -- Flat vertical (sides) end end -- Helper: Calculate position offset from part center function calculateOffset(size, dir) local half = size / 2 + Vector3.new(0.005) -- Slight offset return Vector3.new( (dir == Enum.NormalId.Right and half.X) or (dir == Enum.NormalId.Left and -half.X) or 0, (dir == Enum.NormalId.Top and half.Y) or (dir == Enum.NormalId.Bottom and -half.Y) or 0, (dir == Enum.NormalId.Front and half.Z) or (dir == Enum.NormalId.Back and -half.Z) or 0 ) endKey Points
- Overlay Thickness:
0.01studs ensures the overlays are minimally visible. - Offset: Positions overlays
0.005studs away from the surface to prevent flickering (z-fighting). - Welding: Ensures overlays move/rotate with the original part.
- Performance: Uses lightweight parts and welds. Avoid for high-frequency use (e.g., rapidly spawning parts).
Alternative Method: SurfaceGui (Single Face Only)
If you only need studs on one face (e.g., the top), use a
SurfaceGui:local part = script.Parent part.Transparency = 0.5 -- Apply stud texture to top face local surfaceGui = Instance.new("SurfaceGui") surfaceGui.Face = Enum.NormalId.Top surfaceGui.LightInfluence = 0 -- Always fully lit surfaceGui.Parent = part local image = Instance.new("ImageLabel") image.Size = UDim2.new(1, 0, 1, 0) image.BackgroundTransparency = 1 image.Image = "rbxassetid://156663387" -- Roblox stud texture image.ScaleType = Enum.ScaleType.Tile image.TileSize = UDim2.new(2, 0, 2, 0) -- Adjust based on stud density image.Parent = surfaceGuiNote: The
SurfaceGuimethod only works for one face and may not align perfectly with the part's material.Result
- The original part becomes transparent.
- Studs remain visible via the thin plastic overlays on all faces.
- Overlays inherit the part's color and move with it.
-
- User
function LightingPresets:applyHotReddishAtmosphere() local Lighting = game:GetService("Lighting")
-- Ambient Lighting.Ambient = Color3.new(0.5, 0.2, 0.1) -- ColorCorrection local colorCorrection = Instance.new("ColorCorrectionEffect") colorCorrection.Parent = Lighting colorCorrection.Brightness = 0.5 colorCorrection.Contrast = 1.2 colorCorrection.Saturation = 0.6 colorCorrection.TintColor = Color3.new(1, 0.5, 0) -- SunRays local sunRays = Instance.new("SunRaysEffect") sunRays.Parent = Lighting sunRays.Intensity = 0.8 sunRays.Spread = 0.5 -- Atmosphere local atmosphere = Instance.new("Atmosphere") atmosphere.Parent = Lighting atmosphere.Density = 0.1 atmosphere.Offset = 0 atmosphere.Color = Color3.new(0.8, 0.4, 0.2) -- Bloom local bloom = Instance.new("BloomEffect") bloom.Parent = Lighting bloom.Intensity = 0 bloom.Size = 8 bloom.Threshold = 0.5 -- Sky (optional: upload your own skybox textures) local sky = Instance.new("Sky") sky.Parent = Lighting sky.SkyboxBk = "http://www.roblox.com/asset/?id=157093602" sky.SkyboxDn = "http://www.roblox.com/asset/?id=157093602" sky.SkyboxFt = "http://www.roblox.com/asset/?id=157093620" sky.SkyboxLf = "http://www.roblox.com/asset/?id=157093633" sky.SkyboxRt = "http://www.roblox.com/asset/?id=157093641" sky.SkyboxUp = "http://www.roblox.com/asset/?id=157093647" sky.SunTextureId = "rbxasset://sky/sun.jpg" sky.StarCount = 3000 sky.SunAngularSize = 21 sky.MoonAngularSize = 11 sky.MoonTextureId = "rbxasset://sky/moon.jpg" sky.CelestialBodiesShown = trueend
this preset function is too reddish, I just want a warm look
Assistant
Here's a modified version of your lighting preset that creates a warm, less intense reddish atmosphere with a more balanced golden-orange tone:
function LightingPresets:applyWarmAtmosphere() local Lighting = game:GetService("Lighting") -- Reset previous effects Lighting:ClearAllChildren() -- Ambient lighting (softer golden tone) Lighting.Ambient = Color3.new(0.4, 0.3, 0.2) Lighting.OutdoorAmbient = Color3.new(0.5, 0.45, 0.35) -- Color correction (warmer but less intense) local colorCorrection = Instance.new("ColorCorrectionEffect") colorCorrection.Parent = Lighting colorCorrection.Brightness = 0.05 colorCorrection.Contrast = 0.1 colorCorrection.Saturation = 0.2 colorCorrection.TintColor = Color3.new(1, 0.8, 0.6) -- Soft golden tint -- Sun rays (softer and more natural) local sunRays = Instance.new("SunRaysEffect") sunRays.Parent = Lighting sunRays.Intensity = 0.15 sunRays.Spread = 0.25 -- Atmosphere (warmer but less intense) local atmosphere = Instance.new("Atmosphere") atmosphere.Parent = Lighting atmosphere.Density = 0.2 atmosphere.Offset = 0.25 atmosphere.Decay = Color3.new(1, 0.9, 0.8) atmosphere.Glare = 0.2 atmosphere.Haze = 2 -- Bloom (subtle glow) local bloom = Instance.new("BloomEffect") bloom.Parent = Lighting bloom.Intensity = 0.2 bloom.Size = 24 bloom.Threshold = 0.7 -- Sky (golden hour skybox) local sky = Instance.new("Sky") sky.Parent = Lighting sky.SkyboxBk = "rbxassetid://6016553403" -- Golden sunset back sky.SkyboxDn = "rbxassetid://6016554274" -- Golden sunset down sky.SkyboxFt = "rbxassetid://6016554662" -- Golden sunset front sky.SkyboxLf = "rbxassetid://6016555188" -- Golden sunset left sky.SkyboxRt = "rbxassetid://6016555593" -- Golden sunset right sky.SkyboxUp = "rbxassetid://6016555866" -- Golden sunset up sky.SunTextureId = "rbxassetid://6196665106" -- Soft sun sky.SunAngularSize = 5 sky.MoonTextureId = "" sky.StarCount = 2000 -- Additional warm touches Lighting.Brightness = 2.5 Lighting.ExposureCompensation = 0.25 Lighting.GlobalShadows = true Lighting.ClockTime = 18 -- Golden hour time endKey changes made for a warmer, less aggressive look:
-
Reduced Red Dominance:
- Ambient: Changed from (0.5,0.2,0.1) to (0.4,0.3,0.2)
- TintColor: Changed from (1,0.5,0) to (1,0.8,0.6)
- Atmosphere: Removed red-heavy color parameter
-
Softer Effects:
- SunRays intensity reduced from 0.8 to 0.15
- Bloom intensity reduced and size increased for subtle glow
- Added Atmosphere decay/haze for natural light scattering
-
Golden Hour Skybox:
- Replaced with golden sunset textures (less intense than lava-like originals)
- Softer sun texture with smaller angular size
-
Natural Lighting Touches:
- Added OutdoorAmbient for more natural shadows
- Set time to golden hour (18:00)
- Added ExposureCompensation for better dynamic range
- Enabled GlobalShadows for depth
-
Balanced Color Correction:
- Reduced saturation boost (0.6 → 0.2)
- Minimal brightness/contrast adjustments
- Golden tint instead of orange-red
To use this:
- Call
LightingPresets:applyWarmAtmosphere() - Adjust to taste:
- Increase
colorCorrection.Saturation(0.3-0.4) for more vibrancy - Increase
sunRays.Intensity(0.2-0.3) for stronger god rays - Adjust
Lighting.ClockTime(17-19) for different golden hour effects
- Increase
This creates a warm, sunset-like atmosphere without the overwhelming reddish tones, giving you a natural golden hour look.
-
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.