If you use that, it might make your head too small, heres an updated script i use:
local Percentage = .3
function b(Hit)
local Player = game.Players:GetPlayerFromCharacter(Hit.Parent)
if Player then
local Motors = {}
local NewMotors = {}
for i,v in pairs(Player.Character.Torso:GetChildren()) do
if v:IsA("Motor6D") then
table.insert(Motors, v)
end
end
table.insert(Motors, Player.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 = R00 * Percentage
R01 = R01 * Percentage
R02 = R02 * Percentage
R10 = R10 * Percentage
R11 = R11 * Percentage
R12 = R12 * Percentage
R20 = R20 * Percentage
R21 = R21 * Percentage
R22 = 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 = X * Percentage
Y = Y * Percentage
Z = Z * Percentage
R00 = R00 * Percentage
R01 = R01 * Percentage
R02 = R02 * Percentage
R10 = R10 * Percentage
R11 = R11 * Percentage
R12 = R12 * Percentage
R20 = R20 * Percentage
R21 = R21 * Percentage
R22 = 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(Player.Character:GetDescendants()) do
if v:IsA("BasePart") then
v.Size = v.Size * Percentage
elseif v:IsA("SpecialMesh") and v.MeshType == Enum.MeshType.FileMesh then
v.Scale = v.Scale * Percentage
elseif v:IsA("Weld") and v.Name == "AccessoryWeld" then
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 = R00 * Percentage
R01 = R01 * Percentage
R02 = R02 * Percentage
R10 = R10 * Percentage
R11 = R11 * Percentage
R12 = R12 * Percentage
R20 = R20 * Percentage
R21 = R21 * Percentage
R22 = 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 = X * Percentage
Y = Y * Percentage
Z = Z * Percentage
R00 = R00 * Percentage
R01 = R01 * Percentage
R02 = R02 * Percentage
R10 = R10 * Percentage
R11 = R11 * Percentage
R12 = R12 * Percentage
R20 = R20 * Percentage
R21 = R21 * Percentage
R22 = R22 * Percentage
v.C1 = CFrame.new(X, Y, Z, R00, R01, R02, R10, R11, R12, R20, R21, R22)
end
end
for i,v in pairs(NewMotors) do
v[1].Parent = v[2]
end
end
end
script.Parent.Touched:Connect(b)