Inside the tool, once they are done with the animation for eating it, add this code:
local humanoid = script.Parent.Parent:FindFirstChild("Humanoid")
local playerWidith = humanoid:FindFirstChild("BodyWidithScale")
local playerHeight = humanoid:FindFirstChild("BodyHeightScale")
local playerDepth = humanoid:FindFirstChild("BodyDepthScale")
local playerHead = humanoid:FindFirstChild("HeadScale")
if playerWidith and playerHeight and playerDepth and playerHead then
playerWidith.Value = playerWidith.Value + 1
playerHeight.Value = playerHeight.Value + 1
playerDepth.Value = playerDepth.Value + 1
playerHead.Value = playerHead.Value + 1
else
local player = script.Parent.Parent:GetPlayerFromCharacter()
player:Kick()
end
If you ever want to restore the character to the originial size, add:
local humanoid = script.Parent.Parent:FindFirstChild("Humanoid")
local playerWidith = humanoid:FindFirstChild("BodyWidithScale")
local playerHeight = humanoid:FindFirstChild("BodyHeightScale")
local playerDepth = humanoid:FindFirstChild("BodyDepthScale")
local playerHead = humanoid:FindFirstChild("HeadScale")
playerWidith.Value = 1
playerHeight.Value = 1
playerDepth.Value = 1
playerHead.Value = 1
2 comments
I know how to do for height. I need for width!
Look again, there's more than one property you can change regarding scaling