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

My script can't find the Transparency of the Parent Decal?

Why can't this script find and change the transparency for the Decal. It works with a part or Union.

script.Disabled = false

local Image = script.Parent.Texture.Transparency

while true do
	Image = 0.7
	wait(0.2)
	Image = 0.65
	wait(0.2)
	Image = 0.6
	wait(0.2)
	Image = 0.55
	wait(0.3)
	Image = 0.6
	wait(0.1)
	Image = 0.65
	wait(0.1)
	Image = 0.7
	wait(0.1)
end

1 answer

✓ Accepted answer

Image is simply a number.

local partTransparency = part.Transparency

print(partTransparency) -- number

So, to make the transparency change you have to change the property.

part.Transparency = number

Fixed code:

script.Disabled = false

local Image = script.Parent.Texture

while true do
    ImageTransparency = 0.7
    wait(0.2)
    ImageTransparency = 0.65
    wait(0.2)
    ImageTransparency = 0.6
    wait(0.2)
    ImageTransparency = 0.55
    wait(0.3)
    ImageTransparency = 0.6
    wait(0.1)
    ImageTransparency = 0.65
    wait(0.1)
    ImageTransparency = 0.7
    wait(0.1)
end

1 comment

0

"Image us simply"

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