im trying to get the left side of the body for one loop and one for the right like this but idk what im doing wrong:
script text:
local bodyParts = {
LeftSide = {
"LeftUpperArm";
"LeftLowerArm";
"LeftHand"
}
RightSide = {
"RightUpperArm";
"RightLowerArm";
"RightHand"
}
}
connection = rs.RenderStepped:Connect(function()
for i, bodyPart:MeshPart in ipairs(char:GetChildren()) do
if table.find(bodyParts.LeftSide, bodyPart.Name) then
end
end
for i, bodyPart:MeshPart in ipairs(char:GetChildren()) do
if table.find(bodyParts.RightSide, bodyPart.Name) then
end
end
end)