alright so ive been building a boxing simulator type game when you life you get bigger but im having trouble with body scaling i can do it fine with just using the character parts i have that script worked out but what i forgot about was joints so i had to switch to body scaling i put some small research into it and came up with this but it doesnt print anything do anything or error
Script:
script.Parent.Lift.OnServerEvent:Connect(function(Player)
local Character = Player.Character
if Character then
local Humanoid = Character:FindFirstChild("Humanoid")
if Humanoid then
Humanoid.WalkSpeed = 0
Humanoid.JumpPower = 0
if Humanoid:FindFirstChild("BodyHeightScale") then --y
print(Humanoid.BodyHeightScale.Value)
Humanoid.BodyHeightScale.Value = Humanoid.BodyHeightScale.Value + .5
print(Humanoid.BodyWeightScale.Value)
end
if Humanoid:FindFirstChild("BodyWidthScale") then --x
Humanoid.BodyWidthScale.Value = Humanoid.BodyWidthScale.Value + .5
end
if Humanoid:FindFirstChild("BodyDepthScale") then --z
Humanoid.BodyDepthScale.Value = Humanoid.BodyDepthScale.Value + .5
end
if Humanoid:FindFirstChild("HeadScale") then
Humanoid.HeadScale.Value = Humanoid.HeadScale.Value + .5
end
Player.leaderstats.Strength.Value = Player.leaderstats.Strength.Value + 3
wait(.5)
Humanoid.WalkSpeed = 16
Humanoid.JumpPower = 50
end
end
end)
