Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

how do i resize the r15 character with this script?


-- changes height when u respawn
game.Players.PlayerAdded:connect(function(p)
    p.CharacterAdded:connect(funtion(c)
        local bHeight = hum:WaitForChild('BodyHeightScale')
        local bDepth = hum:WaitForChild('BodyDepthScale')
        local bWidth = hum:WaitForChild('BodyWidthScale')
        bHeight.Value = --some value u want
        bDepth.Value = --some value u want
        bWidth.Value = --some value u want
    end)
end)

this script isn't working. tried everything. it's a local script in starter pack. what am i doing wrong?

1 answer

✓ Accepted answer

U forgot to set the Variable hum and put it in ServerScriptService

game.Players.PlayerAdded:connect(function(p)
    p.CharacterAdded:connect(function(c)
	local hum = p.Character:WaitForChild("Humanoid") -- U forgot that variable
        local bHeight = hum:WaitForChild('BodyHeightScale')
        local bDepth = hum:WaitForChild('BodyDepthScale')
        local bWidth = hum:WaitForChild('BodyWidthScale')
        bHeight.Value = 1.5 --some value u want
        bDepth.Value = 1.5 --some value u want
        bWidth.Value =  1.5 --some value u want
    end)
end)

Its working for me so it should work for you

This discussion is preserved as it was. New answers, comments, and votes are closed.