filmov
tv
How to add Footstep Sounds & Effects | Roblox Studio

Показать описание
Here's how to change your player's footstep sounds in Roblox Studio...
👍 If you enjoyed the video, leave a like and subscribe, it helps the channel out a lot!
SCRIPT:
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
end
end)
Tags:
roblox,roblox studio,studio roblox,roblox studio help,roblox studio tutorial,roblox tutorial,roblox studio how to make a,the 4th gamer,the 4th gamer roblox,roblox how to script,roblox how to make a game,roblox studio how to script,roblox scripting,roblox studio footstep sounds,roblox studio how to change footstep sounds,roblox studio footstep,roblox studio character sounds,roblox studio how to change character sounds,roblox studio how to change footstep, foostep,footprint,material sounds,material footsteps,how to add custom footsteps,how to add footstep sounds,custom animation,snow effect,sand effect,roblox studio,gnomecode
👍 If you enjoyed the video, leave a like and subscribe, it helps the channel out a lot!
SCRIPT:
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
end
end)
Tags:
roblox,roblox studio,studio roblox,roblox studio help,roblox studio tutorial,roblox tutorial,roblox studio how to make a,the 4th gamer,the 4th gamer roblox,roblox how to script,roblox how to make a game,roblox studio how to script,roblox scripting,roblox studio footstep sounds,roblox studio how to change footstep sounds,roblox studio footstep,roblox studio character sounds,roblox studio how to change character sounds,roblox studio how to change footstep, foostep,footprint,material sounds,material footsteps,how to add custom footsteps,how to add footstep sounds,custom animation,snow effect,sand effect,roblox studio,gnomecode
Комментарии