-
What do you want to achieve? I wanna change the size of a R6 character
-
What is the issue? A R6 character doesn’t have BodyHeightScale, BodyDepthScale etc. values
-
What solutions have you tried so far? I tried setting the HumanoidDescription HeightScale, DepthScale etc. properties and reloading the HumanoidDescription
Try using Model:ScaleTo(--number)
where Model is the character you want to change
I wanna scale seperate parts like HeadScale, BodyHeightScale, BodyWidthScale and BodyDepthScale
Try using this piece of code:
-- 0.5 is half size, 2 is double size
local BodyWidthScale = 1.5
local BodyHeightScale = 1.5
local BodyDepthScale = 1.5
local Vector = Vector3.new(BodyWidthScale, BodyHeightScale, BodyDepthScale)
local debounce = false
-- Inside a part
script.Parent.Touched:Connect(function(hit)
if hit.Parent:FindFirstChild("Humanoid") and debounce == false then
local character = hit.Parent
local player = game.Players:GetPlayerFromCharacter(character)
local Humanoid: Humanoid = character.Humanoid
if player then
debounce = true
local Motors = {}
table.insert(Motors, character.HumanoidRootPart.RootJoint)
for i,Motor in pairs(character.Torso:GetChildren()) do
if Motor:IsA("Motor6D") == false then continue end
table.insert(Motors, Motor)
end
for i,v in pairs(Motors) do
v.C0 = CFrame.new((v.C0.Position * Vector)) * (v.C0 - v.C0.Position)
v.C1 = CFrame.new((v.C1.Position * Vector)) * (v.C1 - v.C1.Position)
end
for i,Part in pairs(character:GetChildren()) do
if Part:IsA("BasePart") == false then continue end
Part.Size *= Vector
end
if character.Head.Mesh.MeshId ~= "" then
character.Head.Mesh.Scale *= Vector
end
for i,Accessory in pairs(character:GetChildren()) do
if Accessory:IsA("Accessory") == false then continue end
Accessory.Handle.AccessoryWeld.C0 = CFrame.new((Accessory.Handle.AccessoryWeld.C0.Position * Vector)) * (Accessory.Handle.AccessoryWeld.C0 - Accessory.Handle.AccessoryWeld.C0.Position)
Accessory.Handle.AccessoryWeld.C1 = CFrame.new((Accessory.Handle.AccessoryWeld.C1.Position * Vector)) * (Accessory.Handle.AccessoryWeld.C1 - Accessory.Handle.AccessoryWeld.C1.Position)
Accessory.Handle:FindFirstChildOfClass("SpecialMesh").Scale *= Vector
end
task.wait(1)
debounce = false
end
end
end)
The first variables are exactly what you are asking. It has an equitable growth but you can edit it as you wish.