(humanoid:GetPropertyChangedSignal("\070\108\111\111\114\077\097\116\101\114\105\097\108")):Connect(function()getFloorMaterial()getSoundProperties()update()if humanoid.MoveDirection.Magnitude>0 then currentSound.Playing=true end end)updateWalkspeedRemote.OnServerEvent:Connect(function(Q,i)Q.Character.Humanoid.WalkSpeed=i end)
-- Update the previous floor material, current floor material and sound data
humanoid:GetPropertyChangedSignal("FloorMaterial"):Connect(function()
	getFloorMaterial()
	getSoundProperties()
	update()

	if humanoid.MoveDirection.Magnitude > 0 then
		currentSound.Playing = true
	end
end)

updateWalkspeedRemote.OnServerEvent:Connect(function(player, walkspeed)
	player.Character.Humanoid.WalkSpeed = walkspeed
end)
