I have tried to make a part so where when you hit it you get size, your character gets larger, but I am trying to figure out how can I get a size leaderstat, so I get +1 size per hit.
Here is the script so far:
local button = script.Parent
button.Touched:Connect(function(hit)
game.Players.PlayerAdded:Connect(function(plr)
local humanoid = hit.Parent:FindFirstChildWhichIsA("Humanoid")
if humanoid then
humanoid.BodyWidthScale.Value = humanoid.BodyWidthScale.Value + 0.1
humanoid.BodyDepthScale.Value = humanoid.BodyDepthScale.Value + 0.1
humanoid.BodyHeightScale.Value = humanoid.BodyHeightScale.Value + 0.1
humanoid.HeadScale.Value = humanoid.HeadScale.Value + 0.1
end
end)
Help is appreciated! Thanks :)
