I want to resize a player character in middle game.
I tried to change the Scale using SetScale(), but it seems that wasn’t enabled yet, so what other ways I can use to make it?
I tried searching here on devforum but didn’t found what I wanted.
I want to resize a player character in middle game.
I tried to change the Scale using SetScale(), but it seems that wasn’t enabled yet, so what other ways I can use to make it?
I tried searching here on devforum but didn’t found what I wanted.
I had this problem and found a script like this:
local percentage = 0.5
local Motors = {}
local NewMotors = {}
for i,v in pairs(character.Torso:GetChildren()) do
if v:IsA("Motor6D") then
table.insert(Motors, v)
end
end
table.insert(Motors, character.HumanoidRootPart.RootJoint)
for i,v in pairs(Motors) do
local X, Y, Z, R00, R01, R02, R10, R11, R12, R20, R21, R22 = v.C0:components()
X = X * percentage
Y = Y * percentage
Z = Z * percentage
R00 *= percentage
R01 *= percentage
R02 *= percentage
R10 *= percentage
R11 *= percentage
R12 *= percentage
R20 *= percentage
R21 *= percentage
R22 *= percentage
v.C0 = CFrame.new(X, Y, Z, R00, R01, R02, R10, R11, R12, R20, R21, R22)
local X, Y, Z, R00, R01, R02, R10, R11, R12, R20, R21, R22 = v.C1:components()
X *= percentage
Y *= percentage
Z *= percentage
R00 *= percentage
R01 *= percentage
R02 *= percentage
R10 *= percentage
R11 *= percentage
R12 *= percentage
R20 *= percentage
R21 *= percentage
R22 *= percentage
v.C1 = CFrame.new(X, Y, Z, R00, R01, R02, R10, R11, R12, R20, R21, R22)
table.insert(NewMotors, {v:Clone(), v.Parent})
v:Destroy()
end
for i,v in pairs(character:GetChildren()) do
if v:IsA("BasePart") then
v.Size *= percentage
end
end
for i,v in pairs(NewMotors) do
v[1].Parent = v[2]
end
It works on R6 characters but I havent tested it on R15 characters
Hope this helps!
It worked, thanks!
I didn’t found anything that could help me, where did you found it?
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.