Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Decals in character not responding to change in transparency?

Hey everyone, I'm trying to change the Transparency property of some decals in my character but they don't seem to respond to the change in the transparency property. I've had this issue with other things several times but have got around it but I don't know how to get around this.

My function (all variables are accounted for):

function transparent(value)
	if player.Character:FindFirstChild("Chest") == nil then return end
	for i,v in pairs(player.Character.Chest.Middle:GetChildren()) do
		if v:IsA("Decal") then
			repeat v.Transparency = value until v.Transparency == value
		end
	end
end

How do I get decals in the character to respond to the change in the transparency property?

Any help is appreciated, thanks!

1 answer

Decals have a Transparency value of their own. In your script, be sure to access the decal's Transparency rather than a the transparency of the object they are embedded on.

This discussion is preserved as it was. New answers, comments, and votes are closed.