I was trying this for a couple of hours and I still coulden't fix this bug, Maybe someone knows how? Here's my script:
local Player = game.Players.LocalPlayer
local Character = workspace:WaitForChild(Player.Name)
local humanoid = Character:WaitForChild('Humanoid')
local run = workspace.Run2
humanoid:GetPropertyChangedSignal("WalkSpeed"):Connect(function()
if humanoid.WalkSpeed == 0 then
run:Stop()
end
end)

8 comments
Sorry, but the script didn't work...
can you provide more of your first script? maybe you did something else wrong?
I edited the question
okay, i made an edit as well. let me know if it works.
Still doesn't work, and I think that on local humanoid you needed to replace player with plr because you named it that way.
what are you doing to change the humanoid's walkspeed? what are you trying to get from this script?
So, whenever he runs he makes a sound of him running (That's a diffrent script), but when he stops running, the sound doesn't stop.
you can stop the run sound on that same script