Hello, I was making a game about liminal spaces and exploration and was developing a subtitle system when I created a trigger for some text and audio to pop up when I got the error message, Trigger1 is not a valid member of Folder “Workspace.The Yard” I was confused since it was working with 0 transparency so I changed the transparency back to 0 and found out it could not work if the trigger had a transparency of 1. Here’s the code
local Subtitle = script.Parent.Subtitle
local Trigger1 = workspace["The Yard"].Trigger1
local Inviswall = workspace["The Yard"].InvisibleWall
if game.Loaded then
task.wait(4)
Subtitle.Visible = true
Subtitle.Text = "Hello? Is the speaker working?"
task.wait(6)
Subtitle.Text = "Alright, Subject #55, You have been chosen to participate.."
task.wait(5)
Subtitle.Text = "In Project Dreamworld™, a place created from your memories.."
task.wait(3)
Subtitle.Text = "You have been assigned to your world, which is world number 55.."
task.wait(6)
Subtitle.Text = "You are currently in a section called The Yard. Please Continue through the hallway."
task.wait(5)
Subtitle.Text = ""
Inviswall:Destroy()
Trigger1.Touched:Connect(function()
Trigger1.BrickColor = BrickColor.new("Bright red")
Subtitle.Text = "You have successfully completed your first task!"
end)
end