I recommend reading through the link that I sent as it will help with the explanation tremendously.
https://cdn.discordapp.com/attachments/969321197894516817/1013605104894611576/28.08.2022_18.24.29_REC.mp4
its a download maybe like copy and paste the link into discord sorry lol
so what happens in the video is that the property changes to 11 - 15 when i crouch + reload my gun then uncrouch
So what I would do is create a variable of uncrouched walkspeed with armor and all and then whenever the player crouches, set the walkspeed to the uncrouched speed - whatever the amount youâre subtracting is. When the player uncrouches, set the walkspeed to the uncrouched walkspeed.
Im kind of confused, im very sorry man
Nah, youâre fine. What I mean is create a variable that is set to the player walkspeed when they are not crouching. Lets say the walkspeed is 16 and then armor weighs them down so its at 11 now. The variable should be equal to 11. Then whenever the player crouches, set the playerâs walkspeed to the variable MINUS 5 (or whatever value you want to subtract). When the player uncrouches, set the walkspeed back to the variable so that the walkspeed doesnât change, like this:
local normalSpeed = 11 -- whatever the walkspeed normally should be
if playerCrouched == true then -- however you check if the player is crouching
Player.Character.Humanoid.WalkSpeed = normalSpeed - 5 -- whatever you want to subtract
else
Player.Character.Humanoid.WalkSpeed = normalSpeed -- setting it back to the value it should be
end
can i maybe send you an example of the walkspeed toggle on the crouching script and you can change it?
I am kind of busy right now but I am sure you will figure it out. I must leave but I wish you luck.
okay thank you for the help! char