Okay, I realized the “)” part right when I made the post. But now there’s two red lines underneath both waits.
local textLabel = script.Parent:WaitForChild("Main"):WaitForChild("Text")
script.Parent.TextLabel.TextTransparency = 0
script.Parent.ImageLabel.ImageTransparency = 0
wait()
local function typewrite(object,text)
for i = 1,#text,1 do
object.Text = string.sub(text,1,i)
wait(0.05)
end
end
typewrite(textLabel,("Alright agent. I see that you have arrived. So first, you must get into the factory.")
wait(2)
typewrite(textLabel,("Something tells me that the front door won't work. Find another way to get in.")
wait(2)
script.Parent.Enabled = false
script.Parent.Main.Text.BackgroundTransparency = 1
game.Workspace.Door5:Destroy()
typewrite(textLabel,"Alright agent. I see that you have arrived. So first, you must get into the factory.")
wait(2)
typewrite(textLabel,"Something tells me that the front door won’t work. Find another way to get in.")
wait(2)
You added another arbitrary opening parenthesis, just remove it again.
- typewrite(textLabel,("Alright agent. I see that you have arrived. So first, you must get into the factory.")
+ typewrite(textLabel, "Alright agent. I see that you have arrived. So first, you must get into the factory.")
wait(2)
- typewrite(textLabel,("Something tells me that the front door won’t work. Find another way to get in.")
+ typewrite(textLabel, "Something tells me that the front door won’t work. Find another way to get in.")
wait(2)