Script not working, no errors

local uc = game:GetService("ReplicatedStorage").events.updateChar
uc.OnServerEvent:Connect(function(plr)

plr.leaderstats.Weight.Value = plr.leaderstats.Weight.Value + 1
local hum = plr.Character.Humanoid
local hd = hum.HumanoidDescription

hd.DepthScale = hd.DepthScale + 1
hd.WidthScale = hd.WidthScale + 1
hd.HeightScale = hd.HeightScale + 1
hd.HeadScale = hd.HeadScale + 1

end)

This changed the HumanoidDescription, but it doesn’t show up in-game? There aren’t any errors, and hum:ApplyDescription() doesn’t work.

1 Like

Another script could be interfering with the current one. Also it could have an effect depending on if your using a local or regular script

I am using a ServerScript, and also, this is being triggered by a local script.

I’m assuming you are using R15, so I suggest using the Number Values under Humanoid to resize the Player’s body.

   local uc = game:GetService("ReplicatedStorage").events.updateChar
uc.OnServerEvent:Connect(function(plr)

plr.leaderstats.Weight.Value = plr.leaderstats.Weight.Value + 1
local hum = plr.Character.Humanoid

for _,v in pairs(hum:GetChildren()) do
   if v:IsA("NumberValue") then
      v.Value = v.Value + 1
  end
  end)

If you have any errors, I probably did a typo, but please reply back what error you got so I can help you fix this! If this worked, please mark this answer as the solution!

What is the local script firing this?

As well as @m3o0n’s solution, if for whatever reason you wish to continue using the HumanoidDescription System, it can still used for changing a Character’s scale(s).

The Roblox Developer Hub has a full article on the HumanoidDescription System, which includes an example of how to Change an Existing Character’s Scale.

When I changed the script there were no errors but no difference, this is what I did.

local uc = game:GetService("ReplicatedStorage").events.updateChar
uc.OnServerEvent:Connect(function(plr)

plr.leaderstats.Weight.Value = plr.leaderstats.Weight.Value + 1
local hum = plr.Character.Humanoid

if (hum) then
	
	local dc = hum:GetAppliedDescription()
	dc.HeightScale = dc.HeightScale+1
	dc.WidthScale = dc.WidthScale+1
	dc.DepthScale = dc.DepthScale+1
	dc.HeadScale = dc.HeadScale+1
	
	hum:ApplyDescription(dc)
	
end

end)

Every time a tool is clicked an event fires the server onto this script. The localscript works.

I fixed some of the wrong things, and still doesn’t work…

Did you get any errors when you tried my solution?

No. I think that my beta program enrollment might have something to do with this? Probably not.

Hmmm. I’m not sure, because this actually should work, and worked with me when I did a few tweaks.

I think I may have a solution. Could you please show the local script in which the remote event is fired?

Wait I just needed to use R15…

Oof. Well, at least you found your solution! Just mark my original answer to help other people with the same issue!

Try this I often use () the least in If statements lead to errors:
``
local uc = game:GetService(“ReplicatedStorage”).events.updateChar
uc.OnServerEvent:Connect(function(plr)

plr.leaderstats.Weight.Value = plr.leaderstats.Weight.Value + 1
local hum = plr.Character.Humanoid

if hum then

local dc = hum:GetAppliedDescription()
dc.HeightScale = dc.HeightScale+1
dc.WidthScale = dc.WidthScale+1
dc.DepthScale = dc.DepthScale+1
dc.HeadScale = dc.HeadScale+1

hum:ApplyDescription(dc)

end

end)`
``