of     1   

JoeRaptorisBack
#221180726Thursday, July 13, 2017 2:58 AM GMT

Why is this script not running in game?! local humanoid = script.Parent local LeftFoot = humanoid.Parent:WaitForChild("Sole1") local RightFoot = humanoid.Parent:WaitForChild("Sole3") local sound = script:WaitForChild("Sound") humanoid.Running:Connect(function() if humanoid.Walkspeed > 1 and LeftFoot.Orientation == ############################# then sound:Play() end end) humanoid.Running:Connect(function() if humanoid.WalkSpeed > 1 and RightFoot.Orientation == Vector3.new(-43.46,-168.17,-177.96) then sound:Play() end end)
JoeRaptorisBack
#221181009Thursday, July 13, 2017 3:03 AM GMT

local humanoid = script.Parent local LeftFoot = humanoid.Parent:WaitForChild("Sole1") local RightFoot = humanoid.Parent:WaitForChild("Sole3") local sound = script:WaitForChild("Sound") humanoid.Running:Connect(function() if humanoid.Walkspeed > 1and LeftFoot.Orientation == --a number then sound:Play() end end) humanoid.Running:Connect(function() if humanoid.WalkSpeed > 1 and RightFoot.Orientation == --a number then sound:Play() end end)
JoeRaptorisBack
#221181223Thursday, July 13, 2017 3:06 AM GMT

excuse me, can I get some help here please?
masterblokz
#221181345Thursday, July 13, 2017 3:08 AM GMT

waitforchilds may not be going through, check if sole1/sole3 really exist in another way if that's an issue. such as repeat wait() until humanoid.Parent:FindFirstChild("Sole1") and humanoid.Parent:FindFirstChild("Sole3")
JoeRaptorisBack
#221182185Thursday, July 13, 2017 3:21 AM GMT

Yeah, strangely, that's not the problem. I tried making this script without WaitForChild and the same result occurred. Can you find anymore ideas for me to solve my problem???
JoeRaptorisBack
#221183283Thursday, July 13, 2017 3:36 AM GMT

Help! I still need help!
Hydrogyn
#221183696Thursday, July 13, 2017 3:43 AM GMT

On the first If statement it says ' if humanoid.Walkspeed >1 ' Walkspeed should be WalkSpeed. -- Hydrogynz is da bestz --
nullfeels
#221184021Thursday, July 13, 2017 3:48 AM GMT

^^ Correct. I wonder though if you could just swap out the default step sound on character load, and not have to write any code. This is assuming you're not doing anything other than replacing the sound of course.
xXLegendarySoldierXx
#221196074Thursday, July 13, 2017 7:05 AM GMT

Yeah, why not just replace ROBLOX's already implemented footsteps/walking sound? I did in my game and works like a charm!
TheeDeathCaster
#221197207Thursday, July 13, 2017 7:28 AM GMT

Why do you need two functions? It doesn't seem necessary. How you could combine them is like how I get the character: local character = game.Players.LocalPlayer and (game.Players.LocalPlayer.Character or game.Players.LocalPlayer.CharacterAdded:Wait()) But only you could implement it into your script: if hum.WalkSpeed > 1 and (LeftRoot.Orientation >= num or RightFoot.Orientation >= num) then -- code end Instead of usin two separate functions. Other than that, I don't see your problem; Although, if you're trying to check if the player is runnin (or walkin), the `Running` function has an argument. Running:Connect(function(speed) if speed > 1 then -- code end end)

    of     1