Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Character Scaling with Strengh?

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

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

1 comment

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?

This discussion is preserved as it was. New answers, comments, and votes are closed.