How to change every players width on clicking on a button?

Hello!
I am stuck because I don’t really know how to change the players’s witdh when you press a certain button. If someone could help that would be great.

1 Like

You can use a ClickDetector to detect when a player clicks a button, when you link the ClickDetector.mouseClick to a function, it also passes along the player that clicked the button.

You can access the Players Character from the Player, there are values in the characters Humanoid which can change the different size dimensions of the character for you, in your case you can use BodyWidthScale, which effects the width of the player. You can increase these values to make the character wider

1 Like

Okay but do you know how to affect this to every players ?

You can just loop through every player in the game, reference the character, then set the Value in each of their humanoids.

Okay. 30 charssssssssssssssssssssssssssss