of     1   

NorbyN
#213353308Sunday, April 02, 2017 8:52 PM GMT

if script.Parent.Parent.LineBox.Text == "1" then -- if line 1 for _v in pairs(game.Workspace:GetChildren()) do if v.Name:find("DeparturesBoard") then if script.Parent.Parent.LineBox.Text == "1" then local DB = game.Workspace.DeparturesBoard local F1 = DB.Screen.InfoFrame.F1 F1.Visible = true F1.FlightNumber.Text = script.Parent.Parent.FlightNumberBox.Text F1.Destination.Text = script.Parent.Parent.DestBox.Text F1####e#Text = script.Parent.Parent.GateBox.Text F1.Time.Text = script.Parent.Parent.TimeBox.Text F1.Status.Text = script.Parent.Parent.StatusBox.Text end end end if script.Parent.Parent.LineBox.Text == "1" then -- if line 1 for _v in pairs(game.Workspace:GetChildren()) do if v.Name:find("DeparturesBoard") then if script.Parent.Parent.LineBox.Text == "1" then local DB = game.Workspace.DeparturesBoard local F1 = DB.Screen.InfoFrame.F1 F1.Visible = true F1.FlightNumber.Text = script.Parent.Parent.FlightNumberBox.Text F1.Destination.Text = script.Parent.Parent.DestBox.Text F1####e#Text = script.Parent.Parent.GateBox.Text F1.Time.Text = script.Parent.Parent.TimeBox.Text F1.Status.Text = script.Parent.Parent.StatusBox.Text end end end --- After script that, when I execute the script, it calls 'v' a nil value, the 2nd one, where it says: "if v.Name:find("DeparturesBoard") then" and doesn't work. How can I fix this?
NorbyN
#213353345Sunday, April 02, 2017 8:52 PM GMT

ROBLOX messed up the script a bit,sorry.
reavefulness
#213353502Sunday, April 02, 2017 8:54 PM GMT

if v.Name == "DeparturesBoard" then Im not a liker not a hater
NorbyN
#213444701Monday, April 03, 2017 12:57 PM GMT

Still. :/
Cyrakohl
#213444774Monday, April 03, 2017 12:58 PM GMT

What is "find" that isnt a inbuilt function try :FindFirstChild("DeparturesBoard") #code print(string.rep("Lit",5))
Cyrakohl
#213444791Monday, April 03, 2017 12:58 PM GMT

No wonder why it keeps returning nil #code print(string.rep("Lit",5))
NorbyN
#213444800Monday, April 03, 2017 12:58 PM GMT

prntscr site/ erw5uo
NorbyN
#213444824Monday, April 03, 2017 12:59 PM GMT

^Print of what's showing in studio.
JarodOfOrbiter
#213444852Monday, April 03, 2017 1:00 PM GMT

Yes, it is. That code wouldn't work Quantum since he is checking if someone's name contains DeparturesBoard. Unfortunately, it's less efficient than checking if it's equal, and it means that it would match ################## ## #####
Cyrakohl
#213444907Monday, April 03, 2017 1:01 PM GMT

Nvm i didnt think of string.find #code print(string.rep("Lit",5))
NorbyN
#213444977Monday, April 03, 2017 1:02 PM GMT

I tried do :FindFirstChild("DeparturesBoard"), but keeps the same problem. Studio is saying that the second "v" is a nil value.
NorbyN
#213445165Monday, April 03, 2017 1:05 PM GMT

I just re-wrote the script and worked, weirdly.

    of     1