Here is the code I am currently trying it with:
01 | local plr = game.Players.LocalPlayer.Character |
02 | script.Parent.MouseButton 1 Click:connect( function () |
03 | plr [ "Right Leg" ] .Size = Vector 3. new( 2.673 , 5.347 , 2.673 ) |
04 | plr [ "Left Leg" ] .Size = Vector 3. new( 2.673 , 5.347 , 2.673 ) |
05 | plr [ "Right Arm" ] .Size = Vector 3. new( 2.673 , 5.347 , 2.673 ) |
06 | plr [ "Left Arm" ] .Size = Vector 3. new( 2.673 , 5.347 , 2.673 ) |
07 | plr [ "ColorfulStrawHat" ] .Size = Vector 3. new( 3.743 , 1.604 , 5.347 ) |
08 | plr [ "Ultra-Fabulous Hair" ] .Size = Vector 3. new( 5.347 , 5.347 , 5.347 ) |
09 | plr [ "Right Leg" ] .Anchored = true |
10 | plr [ "Left Leg" ] .Anchored = true |
11 | plr [ "Right Arm" ] .Anchored = true |
12 | plr [ "Left Arm" ] .Anchored = true |
13 | end ) |
I am making a button that scales the player, but I need help.
If that original script was a server script then ... You should've used a local script But if you wanted to use it with a Server script then I would do
01 | local button = script.Parent |
02 | button.MouseButton 1 Click:Connect( function (hit) -- connect is depricated |
03 | local plr = game.Players:GetPlayerFromCharacter(hit.Parent) |
04 | local char = hit.Parent |
05 | char [ "Right Leg" ] .Size = Vector 3. new( 2.673 , 5.347 , 2.673 ) |
06 | char [ "Left Leg" ] .Size = Vector 3. new( 2.673 , 5.347 , 2.673 ) |
07 | char [ "Right Arm" ] .Size = Vector 3. new( 2.673 , 5.347 , 2.673 ) |
08 | char [ "Left Arm" ] .Size = Vector 3. new( 2.673 , 5.347 , 2.673 ) |
09 | char [ "ColorfulStrawHat" ] .Size = Vector 3. new( 3.743 , 1.604 , 5.347 ) |
10 | char [ "Ultra-Fabulous Hair" ] .Size = Vector 3. new( 5.347 , 5.347 , 5.347 ) |
11 | char [ "Right Leg" ] .Anchored = true |
12 | char [ "Left Leg" ] .Anchored = true |
13 | char [ "Right Arm" ] .Anchored = true |
14 | char [ "Left Arm" ] .Anchored = true |
15 | end ) |
Hopefully this fixes your problem :)