The below code is supposed to find the BodyWidthScale, BodyHeightScale and BodyDepthScale inside the R15 Character's Humanoid. It does work in Studio, however, if I run this in a server, None of these Values are a child of Humanoid, in fact, they aren't even a descendant of the Character.
Did ROBLOX remove these Values? If they did, are there any other way to get the Scale properties of R15 Character bodies?
The script is being ran in a Server-Script.
local plrs = game:GetService("Players") plrs.PlayerAdded:connect(function(plr) plr.CharacterAdded:connect(function(char) local hum = char:WaitForChild("Humanoid") local BW = hum:WaitForChild("BodyWidthScale") local BH = hum:WaitForChild("BodyHeightScale") local BD = hum:WaitForChild("BodyDepthScale") end) end)
Output:
-- Infinite yield possible on [character].Humanoid:WaitForChild("BodyWidthScale")
Humanoid
, and that output message is just a warning, it will always be there when you use WaitForChild
. It does not break scripts. The message is just saying the script could yield indefinitely if the child were to not be found. It is nothing to worry about, because the script didn't wait too long for the child.On a side note, :connect()
is deprecated, use :Connect()
instead.