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)
