In todays video I show you how to change the walking sound effects in Roblox Studio, I will be showing you a variety of different ways you can make these work by either having the one which changes the default walk sound which plays whenever you walk or a system where depending what material you walk on will depend what walk sound effect plays. I Hope you enjoyed the video, Have a lovely rest of your day!
Script 1:
local MaterialSounds =
{
[Enum.Material.Grass] = "rbxassetid://507863105",
[Enum.Material.Metal] = "rbxassetid://944089664",
[Enum.Material.DiamondPlate] = "rbxassetid://944089664",
[Enum.Material.Pebble] = "rbxassetid://944090255",
[Enum.Material.Wood] = "rbxassetid://944075408",
[Enum.Material.WoodPlanks] = "rbxassetid://944075408",
[Enum.Material.Plastic] = "rbxassetid://944075408",
[Enum.Material.SmoothPlastic] = "rbxassetid://944075408",
[Enum.Material.Sand] = "rbxassetid://944090255",
[Enum.Material.Brick] = "rbxassetid://4981969796",
[Enum.Material.Cobblestone] = "rbxassetid://4981969796",
[Enum.Material.Concrete] = "rbxassetid://944075408",
[Enum.Material.CorrodedMetal] = "rbxassetid://4981969796",
[Enum.Material.Fabric] = "rbxassetid://4981969796",
[Enum.Material.Foil] = "rbxassetid://4981969796",
[Enum.Material.ForceField] = "rbxassetid://4981969796",
[Enum.Material.Glass] = "rbxassetid://944075408",
[Enum.Material.Granite] = "rbxassetid://944075408",
[Enum.Material.Ice] = "rbxassetid://4981969796",
[Enum.Material.Marble] = "rbxassetid://944075408",
[Enum.Material.Neon] = "rbxassetid://4981969796",
[Enum.Material.Slate] = "rbxassetid://944075408",
}
local Character = script.Parent
local Humanoid = Character:WaitForChild("Humanoid")
local HumanoidRootPart = Character:WaitForChild("HumanoidRootPart")
local FootStepsSound = HumanoidRootPart:WaitForChild("Running")
Humanoid:GetPropertyChangedSignal("FloorMaterial"):Connect(function()
local FloorMaterial = Humanoid.FloorMaterial
local Sound = MaterialSounds[FloorMaterial]
if Sound then
FootStepsSound.SoundId = Sound
else
FootStepsSound.SoundId = "rbxasset://sounds/action_footsteps_plastic.mp3"
end
end)
-- made by ReloadDev
----------------------------------
NEW! Free ugc event game the valk is its not released remember :)
join my group called Nikzuki then you can check out my game :)
Roblox Studio Tutorial
Roblox Studio
Studio Tutorials