Pants Template dont load [HELP]

I’m trying to create a function that changes the Template of a Dummy’s pants (contains humanoid), but the pants do not carry

Does anyone have any idea how to load?

[WARNING] I’m using the function by LocalScript

CalcaFind” is a name of the Pants in Table and the “[1]” is the Pants number

			if RoupasModule.CalcasMasculino[AmountMas+1] then
				AmountMas+=1
				local CalcaFind = RoupasModule.CalcasMasculino[AmountMas]
				CalcaName.Text = CalcaFind[2]
				ManequimPANTS.PantsTemplate = string.format("rbxassetid://",CalcaFind[1])
			end
1 Like

If you index ‘Value + 1’ it’s not going to return true, try this instead

if RoupasModule.CalcasMasculino[AmountMas] == 1 then

Yes my Value is returning True