Invalid argument #2 (string expected, got Instance) -

problem lines with the property.value line in this block of code:

local Properties = {HeadScale,BodyDepthScale,BodyWidthScale,BodyHeightScale}
		repeat 
			wait(0.01)
			for _ , Property in pairs(Properties)do
			Humanoid[Property].Value = Humanoid[Property].Value + 0.2
			end
		until
		Humanoid.BodyWidthScale.Value >= 6
	```
What is causing the error?

The outliers are the contents of the table, they aren’t strings.

So can I solve it by using tostring()?

You probably meant { "HeadScale", "BodyDepthScale", "BodyWidthScale", "BodyHeightScale" } since those arethe property names.

1 Like