Attempt to index number with value on size changing?
Asked by
3 years ago Edited 3 years ago
I have a custom starter character and wanted it so if you touch an object, it changes sizes. I noticed there was no bodyscale properties in the regular Humanoid, so I added a humanoid description, but trying to change the scale shows an error. I've seen an error like this before, but can't get a good solution for it since I want the size to be a set size of 0.75. The code is here:
03 | script.Parent.Touched:Connect( function (hit) |
04 | local humparent = hit.Parent:FindFirstChild( "Humanoid" ) |
06 | local hum = humparent:FindFirstChild( "HumanoidDescription" ) |
09 | hum.WidthScale.Value = 0.75 |
10 | hum.DepthScale.Value = 0.75 |
11 | hum.HeightScale.Value = 0.75 |