Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Script to remove footstep sound?

I'm trying to remove footstep sounds in a game I'm working on but I have no idea how.

1 answer

✓ Accepted answer

This script will set the running sound to 0, it does not remove the sound.

Character sounds can be found in the character model under ->Head.

This is just an example script so pls just use it as a reference as I do not know your game design so there may be better ways.

function plrAdd(plr)
	print("player Added")
	plr.CharacterAdded:connect(charAdd) -- connects a character added event to the player
	
end

function charAdd(char)
	print("Character Added")
	setSoundvolume(char) -- function to set sound volume
end

function setSoundvolume(char)
	local sound = char:WaitForChild("Head"):WaitForChild("Running") -- waits for the characters running sounnd
	sound.Volume = 0 -- sets sound to 0 
end

game.Players.PlayerAdded:connect(plrAdd) --  connects a player added event to the players

Hope this helps.

This discussion is preserved as it was. New answers, comments, and votes are closed.