Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Character Scaling with Strengh?

Asked by 4 years ago

I've been trying to make a code where as my strength increases, my size increases which is seen in the code below:


player.CharacterAppearanceLoaded:Connect(function(character) local humanoid = character.Humanoid humanoid:WaitForChild('BodyDepthScale').Value = 1 + (Strength.Value/250) humanoid:WaitForChild('BodyHeightScale').Value = 1 + (Strength.Value/250) humanoid:WaitForChild('BodyWidthScale').Value = 1 + (Strength.Value/250) humanoid:WaitForChild('HeadScale').Value = 1 + (Strength.Value/250) humanoid.WalkSpeed = 16 * (Strength.Value/250) Strength:GetPropertyChangedSignal('Value'):Connect(function() humanoid:WaitForChild('BodyDepthScale').Value = 1 + (Strength.Value/250) humanoid:WaitForChild('BodyHeightScale').Value = 1 + (Strength.Value/250) humanoid:WaitForChild('BodyWidthScale').Value = 1 + (Strength.Value/250) humanoid:WaitForChild('HeadScale').Value = 1 + (Strength.Value/250) humanoid.WalkSpeed = 16 * (Strength.Value/250) end) end)

However, no scaling occurs and my size remains the same. I've even set my strength to be 10,000 to confirm whether the increase might be too small to notice but still no change has occurred. Any help would be appreciated, thank you.

1 answer

Log in to vote
0
Answered by 4 years ago

ok so for line 4 u need to add the "humanoid:WaitForChild('BodyDepthScale').Value" part after the equal sign so it would look like this

humanoid:WaitForChild('BodyDepthScale').Value = 
humanoid:WaitForChild('BodyDepthScale').Value + 1 + (Strength.Value/250)

then u just have to add that for all of them idk if that makes any sense

0
Nope it doesn't work. I've been looking around and found that some people have been having problems with using 'CharacterAppearanceLoaded' as it isn't firing when the character is loading which is a pain. Any other work arounds? bledzcool 0 — 4y
Ad

Answer this question