I want the player to get larger and stretch on the Y axis. Since the player is a model, I have to change its scale but is there anyway to just scale the Y only?
1 Like
There are NumberValue objects inside of Humanoids that handles scaling for you. From a server script, you can set the one for height, which is called BodyHeightScale
-- In a server script:
local NEW_HEIGHT = 5
local OFFSET = 1
local SCALAR = 2
local humanoid = some.Path.To.Humanoid
local bodyHeightScaleObjectValue = humanoid:FindFirstChild("BodyHeightScale")
-- Setting the value
bodyHeightScaleObjectValue.Value = NEW_HEIGHT
-- Adding to the value
bodyHeightScaleObjectValue.Value += OFFSET
-- Scaling the value
bodyHeightScaleObjectValue.Value *= SCALAR
2 Likes
Using the explorer properties explorer, I see that the value changes but the player’s size doesn’t.
1 Like
You need to be in Server view in order for the changes to take effect. (Changing the value on the client doesn’t do anything)
Edited my previous post to call this out
1 Like
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.