Ad
Still have questions? Join our Discord server and get real time help.
Log in to vote
0

how do i resize the r15 character with this script?

Asked by
Aeike 9
2 years ago

-- 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

Log in to vote
1
Answered by
Simnico99 196 Donator
2 years ago

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

Ad

Answer this question