Hello!!! Today I need help making a characters size decrease after it has been increased. I do this by clicking a button to rebirth then it decreases your size. Here is my script. THANKS!
game.ReplicatedStorage.Rebirth.OnServerEvent:Connect(function(player)
print("Event fired")
local leaderstats = player:WaitForChild("leaderstats")
leaderstats.Bigness.Value = 0
leaderstats.Stomps.Value = 0
leaderstats.Rebirth.Value += 1
print(leaderstats.Rebirth.Value)
print("Finding humanoid")
local Humanoid = player.Character:WaitForChild("Humanoid", 3)
local HS = Humanoid.HeadScale
local BDS = Humanoid.BodyDepthScale
local BWS = Humanoid.BodyWidthScale
local BHS = Humanoid.BodyHeightScale
HS.Value = 1
BDS.Value = 1
BWS.Value = 1
BHS.Value = 1
print("Changed size back to default")
player.PlayerGui.Lots.Texts.Text = "Successfully Rebirthed"
wait(1.5)
player.PlayerGui.Lots.Texts.Text = ""
end)