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

How To Change Leg size?

TL;tr making rpg races and I need to make drawfs. (leg size 1,1,1)


local player = workspace:FindFirstChild("Player") or nil
if player then

player["Left leg"].Size = Vector3.new(1,1,1) 

end

it makes the leg disappear... BUT I want the leg to still process animations.

:ANSWER

game.Players.PlayerAdded:connect(function(plyr)
    plyr.CharacterAdded:connect(function(char)
if char then
	local ver = Vector3.new(1,1.4,1) 
	char["Left Leg"].FormFactor ="Custom"
	char["Right Leg"].FormFactor ="Custom"
char["Left Leg"].Size =ver
char["Right Leg"].Size = ver
char.Torso["Left Hip"].C0 = CFrame.new(-1, char["Left Leg"].Size.Y* -0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
char.Torso["Right Hip"].C0 = CFrame.new(1, char["Left Leg"].Size.Y* -0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)

char:MakeJoints()

end
    end)
end)

Makes the player smaller thanks to LordDragonZord

2 answers

✓ Accepted answer
local player = workspace:FindFirstChild("Player") or nil
if player then

player["Left Leg"].Size = Vector3.new(1,1,1) 
player:MakeJoints()
end


This script will change the Players leg and weld it so it doesn't fall off.

game.Players.PlayerAdded:connect(function(plyr)
	plyr.CharacterAdded:connect(function(char)
if char then
char["Left Leg"].Size = Vector3.new(1,1,1) 
char:MakeJoints()
end
	end)
end)

This will change the players leg size as soon as they join the game. BTW it looks funny so you should find a way to move the leg up a bit.

1 comment

0

Thanks" char:MakeJoints()" was the bit I was looking for.

I'm not sure if you have to disable animation, but I would do that anyways. 1 - Disable animation script. 2 - Resize the leg 3 - Re weld the leg back to the torso 4 - Enable animation script.

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