local L=game:GetService("\082\117\110\083\101\114\118\105\099\101")local A=script.Parent local g=A:WaitForChild("\072\117\109\097\110\111\105\100")local E=require(script.SoundsData)local m local r=.1 local j=tick()local i=Instance.new("\083\111\117\110\100")i.MaxDistance=150 i.Looped=true i.Name="\077\097\116\101\114\105\097\108 \087\097\108\107\105\110\103 \083\111\117\110\100"i.Parent=A.HumanoidRootPart g.Running:Connect(function(L)if L>0 then if not i.IsPlaying then i:Play()end else i:Stop()end end);(g:GetPropertyChangedSignal("\070\108\111\111\114\077\097\116\101\114\105\097\108")):Connect(function()if E[g.FloorMaterial]then i.SoundId=E[g.FloorMaterial]end end)
--|| SERVICES ||--
local RunService = game:GetService("RunService")

local Character = script.Parent
local Humanoid = Character:WaitForChild("Humanoid")

local Database = require(script.SoundsData)

local soundConnection
local stepInterval = 0.1
local lastStep = tick()

local Sound = Instance.new("Sound")
Sound.MaxDistance = 150
Sound.Looped = true
Sound.Name = "Material Walking Sound"
Sound.Parent = Character.HumanoidRootPart

Humanoid.Running:Connect(function(Speed)
	if Speed > 0 then
		if not Sound.IsPlaying then
			Sound:Play()
		end
	else
		Sound:Stop()
	end
end)

Humanoid:GetPropertyChangedSignal("FloorMaterial"):Connect(function()
	if Database[Humanoid.FloorMaterial] then
		Sound.SoundId = Database[Humanoid.FloorMaterial]
	end
end)
