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

Why doesn't this Transparency script work?

I am trying to get it so that when the Player steps on the brick, it turns a different set of bricks invisible (transparency = 1)

here is the script

function onTouched()
	wait(0.5)
	script.Parent.Transparency = 0
end

script.Parent.Parent.Parent.Touched:connect(onTouched)

thanks

2 answers

✓ Accepted answer

It's because you are setting it to 0 in line 3, if you want it to be invisible then set transparency to 1.

2 comments

0

Thank you so much, I was really tired, last night, I probably wouldn't have figured it out! Merry Christmas

0

Thanks, merry Christmas to you as well. ^.^

Try This One.

local Part = Game.Workspace.Part

function onTouch(Part)
Part.Transparency = 1
wait(1)
Part.Transparency = 0

end
Part.Touched:connect(onTouch)

1 comment

0

Just leave it out dont put it in the part

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