local function k()for k,f in pairs(IDList)do if k==material then oldWalkSpeed=humanoid.WalkSpeed id=f.id volume=f.volume if isrunning.Value==false then if humanoid.WalkSpeed>40 then playbackSpeed=2.2 else playbackSpeed=(humanoid.WalkSpeed/14)*f.speed end else if humanoid.WalkSpeed>40 then playbackSpeed=2.2 else playbackSpeed=(humanoid.WalkSpeed/22)*f.speed end end break end end end
-- Get the correct sound from our sound list.
local function getSoundProperties()
	for name, data in pairs(IDList) do
		if name == material then
			oldWalkSpeed = humanoid.WalkSpeed
			id = data.id
			volume = data.volume

			if isrunning.Value == false then
				if humanoid.WalkSpeed > 40 then
					playbackSpeed = 2.2
				else
					playbackSpeed = (humanoid.WalkSpeed / 14) * data.speed
				end
			else
				if humanoid.WalkSpeed > 40 then
					playbackSpeed = 2.2
				else
					playbackSpeed = (humanoid.WalkSpeed / 22) * data.speed
				end
			end
			break
		end
	end
end
