Collapse Sidebar




Determines the transparency of the Decal with 0 being completely opaque and 1 completely transparent.

Note, Decals also respect the transparency of the original image file uploaded to Roblox. This means transparency can be changed prior to uploading to Roblox, and without the need to use the Transparency property.

Decal/LocalTransparencyModifier acts as a multiplier for the Decal’s transparency and should be used when the transparency of the decal is likely to be changed by another script, as is the case with player Characters.

For BaseParts, see BasePart/Transparency.

Code Samples

Fading Decal

The code below will create a transparent Part with a decal that will fade in and out using TweenService and Decal/Transparency.

local TweenService = game:GetService("TweenService")

-- create part 
local part = Instance.new("Part")
part.Size = Vector3.new(10, 10, 1)
part.Position = Vector3.new(0, 5, 0)
part.Anchored = true
part.Transparency = 1

-- create decal
local decal = Instance.new("Decal", part)
decal.Face = Enum.NormalId.Front
decal.Texture = "http://www.roblox.com/asset/?id=699259085" -- roblox logo

-- add to workspace
part.Parent = workspace

-- create tween
local tween = TweenService:Create(decal,
	TweenInfo.new(1, Enum.EasingStyle.Linear, Enum.EasingDirection.Out, -1, true),
	{Transparency = 1}

-- play tween