Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

Player walk sound script not working, can't figure out why?

Asked by 2 years ago

I have a local script located in StarterCharacterScripts and it isn't working. I'm not sure why, but when I test it, no sound is played. It's just silent. There are no output errors either. Can somebody help me with this? The script is listed below.

local RootPart = script.Parent:WaitForChild("HumanoidRootPart")
local runSound = RootPart:WaitForChild("Running")
local DeathSound = RootPart:WaitForChild("Died")
local Humanoid = script.Parent:WaitForChild("Humanoid")

DeathSound:Destroy()
runSound.SoundId = "rbxassetid://6240702531"
runSound.PlaybackSpeed = 1.5
runSound.Volume = .5

workspace.CurrentCamera:ClearAllChildren()


game:GetService("Players").LocalPlayer:WaitForChild("PlayerGui"):SetTopbarTransparency(1)

1 answer

Log in to vote
0
Answered by
extrorobo 104
2 years ago

first of all in starter player do not keep your script in starter character scripts put it in starter player scripts. lol if that does ot work, i have a few other steps in mind go to the sound and put your walking noise there to.

Ad

Answer this question