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

How would i be able to scale a roblox character on Roblox studio?

I would love to know how to scale a roblox character on roblox studios

1 comment

0

please someone

1 answer

Hey davedude121,

You can simply scale the Character by accessing 4 specific children in the Humanoid. They are called "BodyDepthScale", "BodyHeightScale", "BodyWidthScale", and "HeadScale". The only issue with this is that it's only available for the R15 Characters and not the R6 but, that's one way of doing it. Below, I'll show you a script that scales those objects as the Character is added.

local players = game:GetService("Players"); -- Players Service

players.PlayerAdded:Connect(function(plr) -- PlayerAdded anonymous function with the player as the parameter.
	plr.CharacterAdded:Connect(function(char) -- CharacterAdded anonymous function with the Character as the parameter.
		local scale_to_be = 5; -- How many studs you want the parts to scale by.
		
		local hum = char:WaitForChild("Humanoid"); -- The Humanoid of the Character.
		
		local scales = { -- Table with all of the Scales under the Humanoid.
			hum:WaitForChild("BodyHeightScale"), 
			hum:WaitForChild("BodyDepthScale"), 
			hum:WaitForChild("BodyWidthScale"), 
			hum:WaitForChild("HeadScale")
			}
		
		for _, scale in next, scales do -- For each iteration that iterates through all of the scales.
			scale.Value = scale_to_be; -- Sets the value of each scale under the Humanoid.
		end -- end for the for each iteration.
		
	end) -- end for the CharacterAdded function.
end) -- end for the PlayerAdded function.

##Well, I hope I helped and have a great nice/day.

~~ KingLoneCat

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