TL;tr making rpg races and I need to make drawfs. (leg size 1,1,1)
1 | local player = workspace:FindFirstChild( "Player" ) or nil |
2 | if player then |
3 |
4 | player [ "Left leg" ] .Size = Vector 3. new( 1 , 1 , 1 ) |
5 |
6 | end |
it makes the leg disappear... BUT I want the leg to still process animations.
:ANSWER
01 | game.Players.PlayerAdded:connect( function (plyr) |
02 | plyr.CharacterAdded:connect( function (char) |
03 | if char then |
04 | local ver = Vector 3. new( 1 , 1.4 , 1 ) |
05 | char [ "Left Leg" ] .FormFactor = "Custom" |
06 | char [ "Right Leg" ] .FormFactor = "Custom" |
07 | char [ "Left Leg" ] .Size = ver |
08 | char [ "Right Leg" ] .Size = ver |
09 | char.Torso [ "Left Hip" ] .C 0 = CFrame.new(- 1 , char [ "Left Leg" ] .Size.Y* - 0.5 , 0 , - 0 , - 0 , - 1 , 0 , 1 , 0 , 1 , 0 , 0 ) |
10 | char.Torso [ "Right Hip" ] .C 0 = CFrame.new( 1 , char [ "Left Leg" ] .Size.Y* - 0.5 , 0 , 0 , 0 , 1 , 0 , 1 , 0 , - 1 , - 0 , - 0 ) |
11 |
12 | char:MakeJoints() |
13 |
14 | end |
15 | end ) |
16 | end ) |
Makes the player smaller thanks to LordDragonZord
1 | local player = workspace:FindFirstChild( "Player" ) or nil |
2 | if player then |
3 |
4 | player [ "Left Leg" ] .Size = Vector 3. new( 1 , 1 , 1 ) |
5 | player:MakeJoints() |
6 | end |
This script will change the Players leg and weld it so it doesn't fall off.
1 | game.Players.PlayerAdded:connect( function (plyr) |
2 | plyr.CharacterAdded:connect( function (char) |
3 | if char then |
4 | char [ "Left Leg" ] .Size = Vector 3. new( 1 , 1 , 1 ) |
5 | char:MakeJoints() |
6 | end |
7 | end ) |
8 | 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.
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.
Locked by EzraNehemiah_TF2, Redbullusa, and BlueTaslem
This question has been locked to preserve its current state and prevent spam and unwanted comments and answers.
Why was this question closed?