Help with walk speed stat

Hello how could i change the players walk speed when they are a certain size for example:
If the player is scaled 1.5x the normal size the players walk speed would be 2x slower.

I would appreciate the help since I am not very good at scripting and I do not know how to do this

1 Like

In what way are they getting scaled? Is it the character model that is getting changed (through :ScaleTo())?

If so, you should be able to do:

local Character = ... -- set this through some other means
Character:GetPropertyChangedSignal("Scale"):Connect(function()
    Character.Humanoid.WalkSpeed = (1/Character.Scale) * 16
end)

This isn’t quite 2x slower when they are 1.5x size, but it’s pretty close and it would become complicated to try and make it match the 2x slower

2 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.