very easy to solve, i just got back into lua.
local Findit = (script.Parent.Parent:FindFirstChild("LegTrue")),(script.Parent.Parent:FindFirstChild"TorsoTrue")
Just store them in two separate variables:
local Leg = script.Parent.Parent:FindFirstChild("LegTrue") local Torso = script.Parent.Parent:FindFirstChild("TorsoTrue")
If you truly need them in one place, you can store them in a table, like so:
local Parts = {} local Leg = script.Parent.Parent:FindFirstChild("LegTrue") local Torso = script.Parent.Parent:FindFirstChild("TorsoTrue") if Leg and Torso then table.insert(Parts,Leg) table.insert(Parts,Torso) end
Also note that parentheses do not have to wrap statements, like in Javascript and similar languages. For example, in if
statements, you do not have to wrap the conditions.
in lua
if condition then end
in Javascript
if (condition) { }