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

How can i script quiz door that becomes transparent wit full picture?

So im new to scripting and i want to make a Guess the anime roblox game. i want to script a quiz door with anime picture and then u write the anime and Then the door and picture are transparent and u can walk through the door. But thats the problem, only the door becomes transparent and not the picture, so when I put a full picture the door is not transparent at all. and i searched on youtube and google for hours and i found nothing. pls help.

that's the script that i use for the quiz door:

door = script.Parent --this is the door

function onChatted(msg, recipient, speaker)

-- convert to all lower case 

local source = string.lower(speaker.Name) 
msg = string.lower(msg) 

if (msg == "Dragon ball")or (msg == "db")or (msg == "DB")or (msg == "dragon ball")or (msg == "Dragon Ball")or (msg == "dragon Ball")then
    door.CanCollide = false 
    door.Transparency = 0.7 
    wait(5) 
    door.CanCollide = true 
    door.Transparency = 0 
end 

end

function onPlayerEntered(newPlayer) newPlayer.Chatted:connect(function(msg, recipient) onChatted(msg, recipient, newPlayer) end) end

game.Players.ChildAdded:connect(onPlayerEntered)

1 answer

✓ Accepted answer

Hello! So, if I am correct, you want the picture to turn invisible while the door turns invisible. To do that, all you have to do is turn the door's decal's transparency to 1. For example:

 door.CanCollide = false 
    door.Transparency = 0.7 
door.Decal.Transparency = 1 --You can change the decal to whatever the decal is named.
    wait(5) 
    door.CanCollide = true 
    door.Transparency = 0 
door.Decal.Transparency = 0

I hope this helps!

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