Custom NPC walkspeed

How’d I go about making a custom NPC walkspeed, it’s a humanoid? Any ideas or suggestions, thanks! (Sorry for not being too specific, I’m pretty new to scripting, although thanks for those who had the patience)

1 Like

do you mean for the players walkspeed?? (NVM you mean an NPC)

In the humanoid you can just set the walk speed to whatever you want.

Is that what you mean?

Edit: Please make your post more clear and easier to understand, simply saying “how do I make a custom walk speed?” is not enough information for us. There has been a problem with people making small posts, it is not really appropriate and I would really like it to stop.

3 Likes

im pretty sure thats what he means ok problem solved

1 Like

This question is very vague and not specific. This would depend on what you’re doing to move your NPCS as well as how you want to.

If you were moving your NPCS via ROBLOX humanoid object then walkspeed can be changed in the humanoid.

If you were moving NPCS using tweenservice or lerp and the NPC is anchored, you’d want use distance formula.

Speed = Distance / Time

Figure out how far you want to travel in how much time.

5 Likes

You would just change the WalkSpeed in the NPC’s Humanoid.

Sorry, I’m pretty new to the whole programming world and I try to make it as clear as possible. It’s a humanoid.

local walkspeed = 24

workspace.NPCNAME:FindFirstChild('Humanoid').WalkSpeed = walkspeed

Maybe you should first add a variable so you can first change it, and then in a server script try find the model then get the child FindFirstChild so you can then get the Humanoid, then look for the property ‘WalkSpeed’. change the property ‘WalkSpeed’ to whatever you want.

3 Likes

you no need any script. just go to the npc model and select “humanoid” after that scroll down and you will see the walkspeed after you see the walkspeed select that and change the value to the speed.