Inside the tool, once they are done with the animation for eating it, add this code:
01 | local humanoid = script.Parent.Parent:FindFirstChild( "Humanoid" ) |
02 | local playerWidith = humanoid:FindFirstChild( "BodyWidithScale" ) |
03 | local playerHeight = humanoid:FindFirstChild( "BodyHeightScale" ) |
04 | local playerDepth = humanoid:FindFirstChild( "BodyDepthScale" ) |
05 | local playerHead = humanoid:FindFirstChild( "HeadScale" ) |
07 | if playerWidith and playerHeight and playerDepth and playerHead then |
08 | playerWidith.Value = playerWidith.Value + 1 |
09 | playerHeight.Value = playerHeight.Value + 1 |
10 | playerDepth.Value = playerDepth.Value + 1 |
11 | playerHead.Value = playerHead.Value + 1 |
13 | local player = script.Parent.Parent:GetPlayerFromCharacter() |
If you ever want to restore the character to the originial size, add:
01 | local humanoid = script.Parent.Parent:FindFirstChild( "Humanoid" ) |
02 | local playerWidith = humanoid:FindFirstChild( "BodyWidithScale" ) |
03 | local playerHeight = humanoid:FindFirstChild( "BodyHeightScale" ) |
04 | local playerDepth = humanoid:FindFirstChild( "BodyDepthScale" ) |
05 | local playerHead = humanoid:FindFirstChild( "HeadScale" ) |