Trying to get parts from table

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:

image

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)

As far as I can tell you’re just missing a comma after the LeftSide = {}

local bodyParts = {
		LeftSide = {		
			"LeftUpperArm";
			"LeftLowerArm";
			"LeftHand"
		},
		RightSide = {	
			"RightUpperArm";
			"RightLowerArm";
			"RightHand"
		}
1 Like

Print the table.find thingy cause it seems nothing wrong

Nice job,no script error,just minor mistakes

2 Likes

yes, oh for gods sake. simplest things are driving me crazy. tysm fusion. i appreciate ur help! :smiley:

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.